rhughes pushed to cbrpager (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:19:55 UTC 2015


>From 6c923b0c70677c59955d62943cd2e7ab9b7b2ecd Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:06:36 +0000
Subject: Add an AppData file for the software center


diff --git a/cbrpager.spec b/cbrpager.spec
index 3f07dc6..e8c6353 100644
--- a/cbrpager.spec
+++ b/cbrpager.spec
@@ -1,6 +1,6 @@
 Name:		cbrpager
 Version:	0.9.22
-Release:	9%{?dist}
+Release:	10%{?dist}
 Summary:	Simple comic book pager for Linux
 
 Group:		Amusements/Graphics
@@ -60,6 +60,39 @@ desktop-file-install \
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
 	%{name}.desktop
 
+# 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 at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/cbrpager/support-requests/4/
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">cbrpager.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Read comics</summary>
+  <description>
+    <p>
+      cbrPager is a simple comic book reader application with the ability to change pages and zoom.
+      It features the ability to open and read cbr, cb7 and cbz comic book archives that contain
+      PNG and JPEG images.
+    </p>
+  </description>
+  <url type="homepage">http://www.jcoppens.com/soft/cbrpager/index.en.php</url>
+  <screenshots>
+    <screenshot type="default">http://www.jcoppens.com/soft/cbrpager/img/snap.jpeg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %find_lang %{name}
 
 %clean
@@ -76,10 +109,14 @@ desktop-file-install \
 %doc	TODO
 
 %{_bindir}/%{name}
+%{_datadir}/appdata/*%{name}.appdata.xml
 %{_datadir}/applications/*%{name}.desktop
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.22-10
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.22-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/cbrpager.git/commit/?h=master&id=6c923b0c70677c59955d62943cd2e7ab9b7b2ecd


More information about the scm-commits mailing list