diff --git a/synthv1.spec b/synthv1.spec index d130b80..41dabd4 100644 --- a/synthv1.spec +++ b/synthv1.spec @@ -1,7 +1,7 @@ Summary: A 4-oscillator subtractive polyphonic synthesizer Name: synthv1 Version: 0.9.13 -Release: 1%{?dist} +Release: 2%{?dist} URL: https://%{name}.sourceforge.io/ Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # Do not strip executables @@ -18,6 +18,7 @@ BuildRequires: lv2-devel >= 1.2.0 BuildRequires: desktop-file-utils BuildRequires: libsndfile-devel BuildRequires: liblo-devel +BuildRequires: libappstream-glib %description %{name} is a 4-oscillator subtractive polyphonic synthesizer with stereo fx. @@ -32,6 +33,12 @@ An LV2 plugin of the synthv1 subtractive synthesizer %prep %autosetup -p1 +# Remove cruft from appdata file +pushd src/appdata +iconv -f utf-8 -t ascii//IGNORE -o tmpfile %{name}.appdata.xml 2>/dev/null || : +mv -f tmpfile %{name}.appdata.xml +popd + %build %configure %make_build @@ -39,10 +46,10 @@ An LV2 plugin of the synthv1 subtractive synthesizer %install %make_install chmod +x %{buildroot}%{_libdir}/lv2/%{name}.lv2/%{name}.so -install -m 0644 src/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml %files %doc AUTHORS README @@ -52,7 +59,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %{_bindir}/%{name}_jack %{_datadir}/mime/packages/%{name}.xml %{_datadir}/man/man1/%{name}* -%{_datadir}/metainfo/%{name}.appdata.xml +%{_metainfodir}/%{name}.appdata.xml %files -n lv2-%{name} %doc AUTHORS README @@ -60,6 +67,10 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %{_libdir}/lv2/%{name}.lv2/ %changelog +* Mon Apr 20 2020 Guido Aulisi - 0.9.13-2 +- Validate AppData +- Add missing BR for g++ + * Sat Apr 18 2020 Guido Aulisi - 0.9.13-1 - Update to 0.9.13 - Some spec cleanup