rhughes pushed to shutter (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:59:13 UTC 2015
>From d69cae3b1d9c0a4b8495da7780e730293b011c57 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:43:11 +0000
Subject: Add an AppData file for the software center
diff --git a/shutter.spec b/shutter.spec
index d497e13..cfce89e 100644
--- a/shutter.spec
+++ b/shutter.spec
@@ -1,6 +1,6 @@
Name: shutter
Version: 0.93
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GTK+2-based screenshot application written in Perl
Group: Applications/Multimedia
License: GPLv3+
@@ -58,6 +58,52 @@ desktop-file-install --delete-original \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://answers.launchpad.net/shutter/+question/235216
+SentUpstream: 2013-09-06
+-->
+<application>
+ <id type="desktop">shutter.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ Shutter is a feature-rich screenshot program. You can take a screenshot of a
+ specific area, window, your whole screen, or even of a website - apply different
+ effects to it, draw on it to highlight points, and then upload to an image
+ hosting site, all within one window.
+ Shutter is free, open-source, and licensed under GPL v3.
+ </p>
+ <p>
+ Shutter allows you to capture nearly anything on your screen without losing
+ control over your screenshots (tabbed interface).
+ You don't need to open an external graphics editor like GIMP, because Shutter
+ ships with its own built-in editor.
+ </p>
+ </description>
+ <url type="homepage">http://shutter-project.org/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/a.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/b.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/c.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/d.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}
%find_lang %{name}-plugins
cat %{name}-plugins.lang >> %{name}.lang
@@ -82,6 +128,7 @@ fi
%doc CHANGES README COPYING
%{_bindir}/%{name}
%{perl_vendorlib}/Shutter/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*
@@ -91,6 +138,9 @@ fi
%{_datadir}/icons/ubuntu-mono-*/*/apps/%{name}-panel.*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.93-2
+- Add an AppData file for the software center
+
* Sun Oct 19 2014 Robin Lee <cheeselee at fedoraproject.org> - 0.93-1
- Update to 0.93
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/shutter.git/commit/?h=master&id=d69cae3b1d9c0a4b8495da7780e730293b011c57
More information about the scm-commits
mailing list