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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:56:48 UTC 2015


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


diff --git a/qcomicbook.spec b/qcomicbook.spec
index 05838b0..802627b 100644
--- a/qcomicbook.spec
+++ b/qcomicbook.spec
@@ -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 at redhat.com> -->
+<!--
+EmailAddress: stolowski at 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 at redhat.com> - 0.9.0-6
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.0-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/qcomicbook.git/commit/?h=master&id=69f8f4eaf9826c19e960c8232ec9c32bf2c6acad


More information about the scm-commits mailing list