rhughes pushed to hgview (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:45:59 UTC 2015
>From 94281978d0a4b8aa5f1b484fbedd7a7d0c22c716 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:35:27 +0000
Subject: Add an AppData file for the software center
diff --git a/hgview.spec b/hgview.spec
index bf8f802..5085d5f 100644
--- a/hgview.spec
+++ b/hgview.spec
@@ -1,6 +1,6 @@
Name: hgview
Version: 1.8.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Mercurial interactive Qt based history viewer
License: GPLv2+
@@ -101,11 +101,54 @@ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{name}.deskt
install -m 644 -D -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
+# 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://www.logilab.org/ticket/265434
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">hgview.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>HgView</name>
+ <summary>Graphical tree viewer for Mecurial repositories</summary>
+ <description>
+ <p>
+ HgView is a tool to visually navigate the tree and history of a Mecurial repository.
+ HgView has a wide range of features for browsing and interacting with a Mecurial
+ repository graphically, including:
+ <ul>
+ <li>Key-based navigation of the revisions history of a repository</li>
+ <li>Automatic refresh of the revision graph when the repository is modified</li>
+ <li>Display of the current working directory as a special node in the graph</li>
+ </ul>
+ </p>
+ </description>
+ <url type="homepage">http://www.logilab.org/project/hgview</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/hgview/a.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
+
rm $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/examples/description.css
%files
%{python_sitelib}/hgviewlib/qt4/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
@@ -124,6 +167,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/examples/description.css
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.8.2-2
+- Add an AppData file for the software center
+
* Sun Aug 31 2014 Mads Kiilerich <mads at kiilerich.com> - 1.8.2-1
- hgview 1.8.2
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/hgview.git/commit/?h=master&id=94281978d0a4b8aa5f1b484fbedd7a7d0c22c716
More information about the scm-commits
mailing list