rhughes pushed to screengrab (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:58:21 UTC 2015
>From 33d6b0b4657440c1f1499ed18e3f76181946328e Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:42:45 +0000
Subject: Add an AppData file for the software center
diff --git a/screengrab.spec b/screengrab.spec
index e1dac9f..e0dc5cc 100644
--- a/screengrab.spec
+++ b/screengrab.spec
@@ -2,7 +2,7 @@
Name: screengrab
Version: 1.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2
URL: http://screengrab.doomer.org/
Source0: http://screengrab.doomer.org/download/screengrab-1_2_/#/%{name}-%{version}.tar.gz
@@ -47,6 +47,42 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
# hack
#rm -rf %{buildroot}/%{_datadir}/doc
+# 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://github.com/DOOMer/screengrab/issues/57
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">screengrab.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Capture screenshots</summary>
+ <description>
+ <p>
+ Screengrab is a utility to take screenshots of your desktop.
+ With Screengrab you can take a shot of your whole desktop, a specific window,
+ or you can select the area you want to capture by dragging a rectangle with the mouse.
+ Additionally it features the ability to copy the screenshot to the clipboard,
+ set a delay before the screenshot is taken and save with filenames
+ containing the current date and time.
+ </p>
+ </description>
+ <url type="homepage">http://screengrab.doomer.org/</url>
+ <screenshots>
+ <screenshot type="default">http://i.imgur.com/VfdeqYo.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -55,11 +91,15 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%doc README.md docs/*
%{_bindir}/%{name}
%{_libdir}/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/%{name}/
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.2-2
+- Add an AppData file for the software center
+
* Mon Jan 19 2015 TI_Eugene <ti.eugene at gmail.com> 1.2-1
- Version bump
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/screengrab.git/commit/?h=master&id=33d6b0b4657440c1f1499ed18e3f76181946328e
More information about the scm-commits
mailing list