rhughes pushed to guitone (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:44:22 UTC 2015
>From 7fbc9612b1b3b1be0cce224d27debf746a2b65a5 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:34:25 +0000
Subject: Add an AppData file for the software center
diff --git a/guitone.spec b/guitone.spec
index 3887aad..596519c 100644
--- a/guitone.spec
+++ b/guitone.spec
@@ -2,7 +2,7 @@
Name: guitone
Version: 1.0
-Release: 0.8%{?rctag:.%rctag}%{?dist}
+Release: 0.9%{?rctag:.%rctag}%{?dist}
Summary: A frontend for Monotone
Group: Development/Tools
@@ -70,6 +70,47 @@ desktop-file-install \
--vendor="" \
%{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> -->
+<!--
+EmailAddress: me at thomaskeller.biz
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">guitone.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Graphical viewer for Monotone repositories</summary>
+ <description>
+ <p>
+ Guitone is a tool to visually navigate Monotone repositories.
+ Guitone aims to be a full implementation of the monotone automation
+ interface, and provides features such as:
+ </p>
+ <ul>
+ <li>Browsing a loaded workspace, with filtering by file states</li>
+ <li>Display of the attributes of files</li>
+ <li>Opening of files with the system's default editor or browser</li>
+ <li>Showing differences between files</li>
+ </ul>
+ </description>
+ <url type="homepage">https://guitone.thomaskeller.biz/</url>
+ <screenshots>
+ <screenshot type="default">https://guitone.thomaskeller.biz/web/screens/1.0rc2/changeset_browser.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
# the tests subdir currently contains only a stub of a testsuite, and
# upstream told us not to use it yet, so no 'check' section.
@@ -84,10 +125,14 @@ rm -rf %{buildroot}
%doc COPYING NEWS README README.driver
%{_bindir}/guitone
%{_datadir}/pixmaps/guitone.png
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/guitone.desktop
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0-0.9.rc5
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-0.8.rc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/guitone.git/commit/?h=master&id=7fbc9612b1b3b1be0cce224d27debf746a2b65a5
More information about the scm-commits
mailing list