Add an AppData file for the software center

epel8
Richard Hughes 10 years ago
parent c83e8005e9
commit e057ea56c1

@ -5,7 +5,7 @@
Name: geany Name: geany
Version: 1.24.1 Version: 1.24.1
Release: 4%{?dist} Release: 5%{?dist}
Summary: A fast and lightweight IDE using GTK2 Summary: A fast and lightweight IDE using GTK2
Group: Development/Tools Group: Development/Tools
@ -103,6 +103,44 @@ install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6
%{SOURCE19} %{SOURCE20} %{SOURCE21} %{SOURCE22}\ %{SOURCE19} %{SOURCE20} %{SOURCE21} %{SOURCE22}\
$RPM_BUILD_ROOT%{_datadir}/%{name}/tags/ $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@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@upstream_project.org</updatecontact>
-->
</application>
EOF
%post %post
update-desktop-database &> /dev/null || : update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor &>/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} %{_bindir}/%{name}
%{_datadir}/%{name} %{_datadir}/%{name}
%{_libdir}/%{name} %{_libdir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*/*/*/*.svg %{_datadir}/icons/*/*/*/*.svg
%{_datadir}/icons/*/*/*/*.png %{_datadir}/icons/*/*/*/*.png
@ -137,6 +176,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_libdir}/pkgconfig/geany.pc %{_libdir}/pkgconfig/geany.pc
%changelog %changelog
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.24.1-5
- Add an AppData file for the software center
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.24.1-4 * Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.24.1-4
- Rebuilt for Fedora 23 Change - Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code

Loading…
Cancel
Save