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

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


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


diff --git a/pinta.spec b/pinta.spec
index d80580d..30af51a 100644
--- a/pinta.spec
+++ b/pinta.spec
@@ -2,7 +2,7 @@
 
 Name:		pinta
 Version:	1.5
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	An easy to use drawing and image editing program
 
 # the code is licensed under the MIT license while the icons are licensed as CC-BY
@@ -61,6 +61,43 @@ update-desktop-database &> /dev/null ||:
 
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
+# 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: cameronwhite91 at gmail.com
+SentUpstream: 2014-03-23
+-->
+<application>
+  <id type="desktop">pinta.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Edit images and paint digitally</summary>
+  <description>
+    <p>
+      Pinta is a image editing, drawing and painting application with a simple
+      yet powerful interface.
+      Pinta has a wide range of drawing tools, including: freehand, rectangles,
+      circles and lines.
+      It also has over 35 effects to apply to your images, and also has the
+      ability to create unlimited layers to help organize your creativity.
+    </p>
+  </description>
+  <url type="homepage">http://pinta-project.com/</url>
+  <screenshots>
+    <screenshot type="default">http://pinta-project.com/Images/ss1-800.jpg</screenshot>
+    <screenshot>http://pinta-project.com/Images/ss2-800.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %postun
 update-desktop-database &> /dev/null || :
 
@@ -76,12 +113,16 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %doc readme.md license-mit.txt license-pdn.txt
 %{_libdir}/%{name}
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/*/%{name}.*
 %{_datadir}/man/man1/%{name}*
 %{_datadir}/pixmaps/%{name}*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.5-2
+- Add an AppData file for the software center
+
 * Mon Oct 27 2014 Andrea Musuruane <musuruan at gmail.com> 1.5-1
 - Updated to v1.5
 - Updated Source0 tag
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pinta.git/commit/?h=master&id=0e6f572d5d3109c0e09e77d6076d4c3d31f44e05


More information about the scm-commits mailing list