Add an AppData file for the software center

This commit is contained in:
Richard Hughes 2015-03-26 16:06:22 +00:00
parent 9f06b7f329
commit dc326bd218

View File

@ -2,7 +2,7 @@
Summary: A panoramic photo stitcher and more
Name: hugin
Version: 2014.0.0
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2+
Group: Applications/Multimedia
Source: http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
@ -67,6 +67,19 @@ desktop-file-install --vendor="" --delete-original \
%{buildroot}/%{_datadir}/applications/pto_gen.desktop
%find_lang %{name}
# Merge applications into one software center item
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/calibrate_lens_gui.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>calibrate_lens_gui.desktop</id>
<metadata>
<value key="X-Merge-With-Parent">hugin.desktop</value>
</metadata>
</component>
EOF
%post
update-desktop-database &> /dev/null ||:
@ -100,6 +113,7 @@ fi
%{_libdir}/%{name}/libhuginbasewx.so*
%{_libdir}/%{name}/libicpfindlib.so*
%{_datadir}/%{name}/xrc
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/PTBatcherGUI.desktop
%{_datadir}/applications/calibrate_lens_gui.desktop
@ -190,6 +204,9 @@ fi
%{_mandir}/man1/pto_template.*
%changelog
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 2014.0.0-4
- Add an AppData file for the software center
* Tue Feb 03 2015 Petr Machata <pmachata@redhat.com> - 2014.0.0-3
- Rebuild for boost 1.57.0
- Apply an upstream patch that ports expression parser to