rhughes pushed to key-mon (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:46:48 UTC 2015
>From f7f90d967b0484e82f1ec8378495cd1c5bd632ec Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:36:23 +0000
Subject: Add an AppData file for the software center
diff --git a/key-mon.spec b/key-mon.spec
index 456fae8..9719357 100644
--- a/key-mon.spec
+++ b/key-mon.spec
@@ -1,6 +1,6 @@
Name: key-mon
Version: 1.16
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A screen cast utility that displays your keyboard and mouse status
Group: Development/Libraries
License: ASL 2.0
@@ -46,16 +46,56 @@ desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications icons/%{nam
install -d -m 0755 %{buildroot}%{_mandir}/man1
install -m 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+# 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 Chris Roberts <croberts at croberts.org -->
+<!--
+BugReportURL: https://code.google.com/p/key-mon/issues/detail?id=135
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">key-mon.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Show live keyboard and mouse status for teaching and screencasts</summary>
+ <description>
+ <p>
+ Key-mon is a Utility to show live keyboard and mouse status for teaching and screencasts.
+ This tool will show the keyboard when doing a screen recording including:
+ different key combinations, mouse wheel scrolling, support for 3 button mice,
+ and touch tablet support.
+ </p>
+ </description>
+ <url type="homepage">http://code.google.com/p/key-mon/</url>
+ <screenshots>
+ <screenshot type="default">http://key-mon.googlecode.com/hg/docs/2x-no-mouse-meta.png</screenshot>
+ <!--<screenshot type="default">http://projectname/screenshot.png</screenshot>-->
+ <!--<screenshot type="default">http://projectname/screenshot.png</screenshot>-->
+ </screenshots>
+</application>
+EOF
+
%files
%{_mandir}/man1/%{name}.1*
%doc README.rst COPYING
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop
+%{_datadir}/appdata/%{name}.appdata.xml
%{python2_sitelib}/keymon/
%{python2_sitelib}/key_mon-%{version}*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.16-3
+- Add an AppData file for the software center
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/key-mon.git/commit/?h=master&id=f7f90d967b0484e82f1ec8378495cd1c5bd632ec
More information about the scm-commits
mailing list