[audacious] Following Fedora Packaging:AppData guidelines and validate the appdata
Michael Schwendt
mschwendt at fedoraproject.org
Wed Mar 4 17:56:40 UTC 2015
commit 4677aa0ada3f94c7b9d759f33953e83639c9f856
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date: Wed Mar 4 18:56:35 2015 +0100
Following Fedora Packaging:AppData guidelines and validate the appdata
file in %install. No (re)build just for this change.
audacious.spec | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
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 <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 23, build with gtk2 and Qt.
Run "audacious --qt" once to switch to Qt user-interface.
More information about the scm-commits
mailing list