[audacious/f22] Following Fedora Packaging:AppData guidelines and validate the appdata

Michael Schwendt mschwendt at fedoraproject.org
Wed Mar 4 17:57:48 UTC 2015


commit 898729dad53b4107ee0a3615b628d364da4ad2e8
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Wed Mar 4 18:57:45 2015 +0100

    Following Fedora Packaging:AppData guidelines and validate the appdata
    
      file in %install. No (re)build just for this change.

 audacious.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/audacious.spec b/audacious.spec
index 650523f..5a8bdb0 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}
@@ -29,6 +29,9 @@ Source0: http://distfiles.audacious-media-player.org/%{name}-%{tar_ver}.tar.bz2
 # validated: 2013-11-03 / screenshot commented out for now
 Source1: audacious.appdata.xml
 
+# for /usr/bin/appstream-util
+BuildRequires: libappstream-glib
+
 BuildRequires: gettext
 %if %{with gtk2}
 BuildRequires: pkgconfig(gtk+-2.0)
@@ -148,6 +151,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 +201,10 @@ fi
 
 
 %changelog
+* Wed Mar  4 2015 Michael Schwendt <mschwendt at fedoraproject.org> - 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 <mschwendt at fedoraproject.org> - 3.6-3
 - For Fedora 22, build with gtk2 and without Qt by default.
 - Switch some BuildRequires to pkgconfig-style, but don't do the same


More information about the scm-commits mailing list