rhughes pushed to avahi (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:18:32 UTC 2015
>From 574c7a3eda437051aed4bc1a6ed69546215cf394 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:06:03 +0000
Subject: Add an AppData file for the software center
diff --git a/avahi.spec b/avahi.spec
index 3578a9d..0d05c5a 100644
--- a/avahi.spec
+++ b/avahi.spec
@@ -18,7 +18,7 @@
Name: avahi
Version: 0.6.31
-Release: 30%{?dist}
+Release: 31%{?dist}
Summary: Local network service discovery
License: LGPLv2+
URL: http://avahi.org
@@ -387,6 +387,31 @@ ln -s avahi-compat-libdns_sd/dns_sd.h %{buildroot}/%{_includedir}/
rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-daemon
rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-dnsconfd
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/bssh.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+ <metadata_license>CC0-1.0</metadata_license>
+ <id>bssh.desktop</id>
+ <metadata>
+ <value key="X-Merge-With-Parent">avahi-discover.desktop</value>
+ </metadata>
+</component>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/bvnc.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+ <metadata_license>CC0-1.0</metadata_license>
+ <id>bvnc.desktop</id>
+ <metadata>
+ <value key="X-Merge-With-Parent">avahi-discover.desktop</value>
+ </metadata>
+</component>
+EOF
+
%find_lang %{name}
%pre
@@ -528,6 +553,7 @@ exit 0
%{_mandir}/man1/avahi-discover*
%{_mandir}/man1/avahi-bookmarks*
%{_datadir}/applications/b*.desktop
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/avahi-discover.desktop
# These are .py files only, so they don't go in lib64
%{_prefix}/lib/python?.?/site-packages/*
@@ -637,6 +663,9 @@ exit 0
%endif
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.6.31-31
+- Add an AppData file for the software center
+
* Thu Nov 27 2014 Peter Lemenkov <lemenkov at gmail.com> - 0.6.31-30
- Drop post-stage dependency on initscripts (rhbz #1168566). See also rhbz #182462.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/avahi.git/commit/?h=master&id=574c7a3eda437051aed4bc1a6ed69546215cf394
More information about the scm-commits
mailing list