From e72baa35fb35891e60c8616c04cbaa065aa57f54 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 2015 16:04:17 +0000 Subject: Add an AppData file for the software center --- 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 < + + + alexandria.desktop + CC0-1.0 + Manage your physical book collection + +

+ 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. +

+

+ 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. +

+
+ http://alexandria.rubyforge.org/ + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/alexandria/a.png + + +
+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 - 0.6.9-10.1 +- Add an AppData file for the software center + * Mon Jan 19 2015 Mamoru TASAKA - 0.6.9-10 - Remove deprecated Config:: usage yet more