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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:58:22 UTC 2015


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


diff --git a/screenie-composer.spec b/screenie-composer.spec
index 9ea2c12..5cb1e4f 100644
--- a/screenie-composer.spec
+++ b/screenie-composer.spec
@@ -2,7 +2,7 @@
 
 Name:           screenie-composer
 Version:        1.0.0
-Release:        0.8.20110805git%{snapshot}%{?dist}
+Release:        0.9.20110805git%{snapshot}%{?dist}
 Summary:        Fancy screenshot composer
 Group:          Applications/Multimedia
 
@@ -53,15 +53,56 @@ desktop-file-install \
   --dir=%{buildroot}%{_datadir}/applications \
   %{SOURCE1}
 
+# 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://code.google.com/p/screenie/issues/detail?id=9
+SentUpstream: 2014-07-08
+-->
+<application>
+  <id type="desktop">screenie-composer.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Create stylish screenshots</summary>
+  <description>
+    <p>
+      Screenie is a simple to use screenshot composition tool, with the abilty
+      to add perspective and reflections to screenshots.
+      To use screenie, the user simply imports a screenshot, then tweaks a few
+      variables that control the angle of the perspective effect, the amount of
+      reflection, and the background colour.
+    </p>
+  </description>
+  <url type="homepage">https://code.google.com/p/screenie/</url>
+  <screenshots>
+    <screenshot type="default">http://lh6.ggpht.com/ariya.hidayat/SEW_gDTc7ZI/AAAAAAAAAdI/2jmyFxAuRYo/s400/2545790007_43dfcd4326_o.png</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
 
 %files
 %doc LICENSE.GPL2 README.txt
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/%{name}.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.0-0.9.20110805git49c2630
+- Add an AppData file for the software center
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.0-0.8.20110805git49c2630
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/screenie-composer.git/commit/?h=master&id=c24362894a63821cc81bd9587e2fed774b69cb6e


More information about the scm-commits mailing list