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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:43:36 UTC 2015


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


diff --git a/gphpedit.spec b/gphpedit.spec
index 5c8ee16..d9039e6 100644
--- a/gphpedit.spec
+++ b/gphpedit.spec
@@ -2,7 +2,7 @@
 
 Name:           gphpedit
 Version:        0.9.98
-Release:        0.7.%{prerel}%{?dist}
+Release:        0.8.%{prerel}%{?dist}
 Summary:        A PHP source editor for GNOME 2
 
 Group:          Applications/Text
@@ -67,6 +67,43 @@ desktop-file-install \
         --add-category X-Fedora                                 \
         gphpedit.desktop
 
+# 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: http://www.gphpedit.org/contact.phtml
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">gphpedit.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Text editor for PHP files</summary>
+  <description>
+    <p>
+      gPHPEdit is a text editor specifically designed for editing PHP files
+      and files that typically are used in PHP projects (HTML and CSS files).
+      It has support for syntax highlighting, code folding, function lists,
+      parameter popups and a class browser.
+    </p>
+  </description>
+  <url type="homepage">http://www.gphpedit.org/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gphpedit/a.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
+
 %find_lang %{name}
 
 %post
@@ -89,10 +126,14 @@ fi
 %{_datadir}/%{name}/
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
 %{_datadir}/pixmaps/*.png
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*gphpedit.desktop
 %{_datadir}/gphpedit/php-gphpedit.api
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.98-0.8.RC1
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.98-0.7.RC1
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gphpedit.git/commit/?h=master&id=179fc3c0b6b22e04504a18c69b70d7887fedca76


More information about the scm-commits mailing list