Add an AppData file for the software center
This commit is contained in:
parent
c517f0ac99
commit
574c7a3eda
31
avahi.spec
31
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@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@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@redhat.com> - 0.6.31-31
|
||||
- Add an AppData file for the software center
|
||||
|
||||
* Thu Nov 27 2014 Peter Lemenkov <lemenkov@gmail.com> - 0.6.31-30
|
||||
- Drop post-stage dependency on initscripts (rhbz #1168566). See also rhbz #182462.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user