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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:54:41 UTC 2015


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


diff --git a/pdfmod.spec b/pdfmod.spec
index 8a0fa7b..3c1f0c0 100644
--- a/pdfmod.spec
+++ b/pdfmod.spec
@@ -1,7 +1,7 @@
 %global debug_package %{nil}
 Name:		pdfmod
 Version:	0.9.1
-Release:	8%{?dist}
+Release:	9%{?dist}
 Summary:	A simple application for modifying PDF documents
 Summary(es):	Una simple aplicaciĆ³n para modificar documentos PDF
 Group:		Applications/Productivity
@@ -56,6 +56,36 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
 chmod a-x %{buildroot}%{_libdir}/%{name}/poppler-sharp.dll.config
 %find_lang %{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"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=736860
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">pdfmod.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Split, merge and delete pages in a PDF</summary>
+  <description>
+    <p>
+      PDFMod is a graphical utility that allows you to split, merge and delete pages of a PDF document. You simply open a document up in PDFMod, and each page is shown in the interface, then you can delete individual pages, move the pages around (i.e. reorder them), import additional PDF documents, even rotate individual pages in your PDF.
+    </p>
+  </description>
+  <url type="homepage">http://live.gnome.org/Apps/PdfMod</url>
+  <screenshots>
+    <screenshot type="default">https://wiki.gnome.org/Apps/PdfMod?action=AttachFile&amp;do=get&amp;target=pdfmod-0.9.1.png</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %post
 update-mime-database %{_datadir}/mime &> /dev/null || :
@@ -65,11 +95,15 @@ update-desktop-database &> /dev/null || :
 %doc AUTHORS COPYING HACKING NEWS README
 %{_bindir}/%{name}
 %{_libdir}/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/gnome/help/%{name}
 %{_datadir}/icons/hicolor/
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.1-9
+- Add an AppData file for the software center
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pdfmod.git/commit/?h=master&id=7ba8121a0453df4987073c50cbe499e0e570690e


More information about the scm-commits mailing list