Add an AppData file for the software center

This commit is contained in:
Richard Hughes 2015-03-26 16:41:53 +00:00
parent bdead963a5
commit 69f8f4eaf9
1 changed files with 40 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Summary: A viewer for comic book archives
Name: qcomicbook
Version: 0.9.0
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
URL: http://qcomicbook.org/
@ -57,6 +57,41 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR="$RPM_BUILD_ROOT" -C %{_target_platform}
# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
<!--
EmailAddress: stolowski@gmail.com
SentUpstream: 2014-09-18
-->
<application>
<id type="desktop">qcomicbook.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<summary>Read comics</summary>
<description>
<p>
QComicBook is an application for reading comics and supports a wide
range of formats, including CBZ, CBR and CBT.
QComicBook has a wide range of features to enhance your comic reading,
including page preview, a thumbnails view, bookmarks, and a specific
mode for reading manga.
</p>
</description>
<url type="homepage">http://qcomicbook.org/</url>
<screenshots>
<screenshot type="default">http://qcomicbook.org/screenshots/qcomicbook072-os2.png</screenshot>
</screenshots>
</application>
EOF
%find_lang qcomicbook --without-mo --with-qt
@ -76,6 +111,7 @@ fi
%doc AUTHORS README ChangeLog COPYING THANKS TODO
%{_bindir}/qcomicbook
%{_mandir}/man1/qcomicbook.1*
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/qcomicbook.desktop
%{_datadir}/pixmaps/qcomicbook.png
%dir %{_datadir}/qcomicbook/
@ -83,6 +119,9 @@ fi
%changelog
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.9.0-6
- Add an AppData file for the software center
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild