summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-03-26 16:04:17 (GMT)
committerRichard Hughes <richard@hughsie.com>2015-03-26 16:04:17 (GMT)
commite72baa35fb35891e60c8616c04cbaa065aa57f54 (patch)
tree2d1553644572c13d634d461d0d106edfb692fd39
parent3f8d97df41c484b9d04059a3aab49974fadf6e70 (diff)
downloadalexandria-master.zip
alexandria-master.tar.gz
alexandria-master.tar.xz
Add an AppData file for the software centerHEADmaster
-rw-r--r--alexandria.spec48
1 files changed, 47 insertions, 1 deletions
diff --git a/alexandria.spec b/alexandria.spec
index e2c4b72..8dbd677 100644
--- a/alexandria.spec
+++ b/alexandria.spec
@@ -15,7 +15,7 @@
Name: alexandria
Version: %{majorver}
-Release: %{rel}%{?dist}
+Release: %{rel}%{?dist}.1
Summary: Book collection manager
Group: Applications/Productivity
@@ -230,6 +230,48 @@ desktop-file-install \
%{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps/
%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/%{name}.*
+# 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"?>
+<!--
+BugReportURL: https://github.com/mvz/alexandria-book-collection-manager/issues/2
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">alexandria.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Manage your physical book collection</summary>
+ <description>
+ <p>
+ Alexandria is an application that allows you to manage your book library.
+ It lets you build and keep a detailed database (on your local machine) of
+ information about books you own and have read.
+ </p>
+ <p>
+ Alexandria also allows you to rate books, note when you have read them,
+ and even track who you have loaned books out to.
+ It also has interfaces with a online book information sources so you don’t
+ have to type in all the information about a book, and also provides book
+ cover art for many books.
+ </p>
+ </description>
+ <url type="homepage">http://alexandria.rubyforge.org/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/alexandria/a.png</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+
%find_lang %{name}
%pre
@@ -281,10 +323,14 @@ exit 0
%{_datadir}/omf/%{name}/
%{_datadir}/sounds/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.6.9-10.1
+- Add an AppData file for the software center
+
* Mon Jan 19 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.6.9-10
- Remove deprecated Config:: usage yet more