rhughes pushed to geany (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:41:00 UTC 2015
>From e057ea56c1c5784a12f48dbed91ab2796b5c955f Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:32:03 +0000
Subject: Add an AppData file for the software center
diff --git a/geany.spec b/geany.spec
index aa54062..f61af4a 100644
--- a/geany.spec
+++ b/geany.spec
@@ -5,7 +5,7 @@
Name: geany
Version: 1.24.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: A fast and lightweight IDE using GTK2
Group: Development/Tools
@@ -103,6 +103,44 @@ install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6
%{SOURCE19} %{SOURCE20} %{SOURCE21} %{SOURCE22}\
$RPM_BUILD_ROOT%{_datadir}/%{name}/tags/
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/geany/feature-requests/739/
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">geany.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ Geany is a small and lightweight Integrated Development Environment.
+ It was developed to provide a small and fast IDE.
+ Another goal was to be as independent as possible from a KDE or GNOME -
+ Geany only requires the GTK2 runtime libraries.
+ </p>
+ <!-- FIXME: Probably needs another paragraph or two -->
+ </description>
+ <url type="homepage">http://www.geany.org/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/geany/a.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/geany/b.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
+
%post
update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -126,6 +164,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_libdir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*/*/*/*.svg
%{_datadir}/icons/*/*/*/*.png
@@ -137,6 +176,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_libdir}/pkgconfig/geany.pc
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.24.1-5
+- Add an AppData file for the software center
+
* Sat Feb 21 2015 Till Maas <opensource at till.name> - 1.24.1-4
- Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/geany.git/commit/?h=master&id=e057ea56c1c5784a12f48dbed91ab2796b5c955f
More information about the scm-commits
mailing list