From 4677aa0ada3f94c7b9d759f33953e83639c9f856 Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Mar 04 2015 17:56:35 +0000 Subject: Following Fedora Packaging:AppData guidelines and validate the appdata file in %install. No (re)build just for this change. --- diff --git a/audacious.spec b/audacious.spec index b10a8b4..e4b1bbe 100644 --- a/audacious.spec +++ b/audacious.spec @@ -7,7 +7,7 @@ Name: audacious Version: 3.6 -Release: 3%{?dist} +Release: 4%{?dist} %if %{with gtk2} %global tar_ver %{version} @@ -27,8 +27,13 @@ Group: Applications/Multimedia Source0: http://distfiles.audacious-media-player.org/%{name}-%{tar_ver}.tar.bz2 # validated: 2013-11-03 / screenshot commented out for now +# Audacious 3.6 contains an appdata file in contrib dir, but it doesn't +# validate yet Source1: audacious.appdata.xml +# for /usr/bin/appstream-util +BuildRequires: libappstream-glib + BuildRequires: gettext %if %{with gtk2} BuildRequires: pkgconfig(gtk+-2.0) @@ -148,6 +153,7 @@ desktop-file-install \ ${RPM_BUILD_ROOT}%{_datadir}/applications/audacious.desktop install -D -m0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{name}.appdata.xml +appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{name}.appdata.xml %post @@ -197,6 +203,10 @@ fi %changelog +* Wed Mar 4 2015 Michael Schwendt - 3.6-4 +- Following Fedora Packaging:AppData guidelines and validate the appdata + file in %%install. No (re)build just for this change. + * Tue Mar 3 2015 Michael Schwendt - 3.6-3 - For Fedora 23, build with gtk2 and Qt. Run "audacious --qt" once to switch to Qt user-interface.