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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:01:34 UTC 2015


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


diff --git a/tintii.spec b/tintii.spec
index f507d39..fa91cbb 100644
--- a/tintii.spec
+++ b/tintii.spec
@@ -1,6 +1,6 @@
 Name:           tintii
 Version:        2.9.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Selective colour, saturation and hue shift effects utility
 License:        GPLv2
 URL:            http://www.indii.org/software/tintii
@@ -45,6 +45,39 @@ for size in 96x96 72x72 64x64 48x48 32x32 24x24 22x22 16x16 ; do
         %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
 done
 
+# 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: support at indii.org
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">tintii.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Apply selective color effects to images</summary>
+  <description>
+    <p>
+      Tintii is an application for applying selective color effects to images.
+      It is primarily used for selective color effects where you keep one color in
+      an image saturated, yet make the rest of the image black and white.
+    </p>
+  </description>
+  <url type="homepage">http://www.indii.org/software/tintii</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/tintii/a.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %post
 update-desktop-database &> /dev/null || :
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -63,10 +96,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %doc COPYING README
 %{_bindir}/tintii
 %{_datadir}/tintii/
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/tintii.desktop
 %{_datadir}/icons/hicolor/*x*/apps/tintii.png
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.9.0-4
+- Add an AppData file for the software center
+
 * Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 2.9.0-3
 - Rebuild for boost 1.57.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/tintii.git/commit/?h=master&id=e720ca858b81d63a8176a092f356fa3d0016073e


More information about the scm-commits mailing list