rhughes pushed to diffuse (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:22:19 UTC 2015


>From 2593cf522c58816dc0131b0b8decf59bcea06e1d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:07:57 +0000
Subject: Add an AppData file for the software center


diff --git a/diffuse.spec b/diffuse.spec
index 4e71570..4459076 100644
--- a/diffuse.spec
+++ b/diffuse.spec
@@ -1,6 +1,6 @@
 Name:           diffuse
 Version:        0.4.8
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Graphical tool for merging and comparing text files
 License:        GPLv2+
 URL:            http://diffuse.sourceforge.net/
@@ -33,6 +33,44 @@ Monotone, RCS, Subversion, and SVK repositories for comparison and merging.
     --pythonbin="%{__python2}" \
     --files-only
 
+# 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://sourceforge.net/p/diffuse/feature-requests/44/
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">diffuse.desktop</id>
+  <metadata_license>CC0</metadata_license>
+  <summary>Visually compare and merge text files</summary>
+  <description>
+    <p>
+      Diffuse is a tool for visually merging and comparing text files side by side.
+      Diffuse is  can visually compare an 2 or more text files against each other,
+      and also allows users to manually adjust line matching and directly edit files.
+      It also supports viewing revisions and merging files in source control management
+      systems (SCM),with support for popular SCMs such as Bazaar, Git, Mercurial, and SVN.
+    </p>
+  </description>
+  <url type="homepage">http://diffuse.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://diffuse.sourceforge.net/screenshot.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}
 
 %check
@@ -57,6 +95,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %config(noreplace) %{_sysconfdir}/diffuserc
 %{_bindir}/%{name}
 %{_datadir}/%{name}/*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/diffuse.desktop
 %{_datadir}/gnome/help/diffuse/*/diffuse.xml
 %{_datadir}/icons/hicolor/*/apps/diffuse.*
@@ -68,6 +107,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %dir %{_datadir}/omf/diffuse
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4.8-2
+- Add an AppData file for the software center
+
 * Mon Jul 21 2014 Christopher Meng <rpm at cicku.me> - 0.4.8-1
 - Update to 0.4.8
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/diffuse.git/commit/?h=master&id=2593cf522c58816dc0131b0b8decf59bcea06e1d


More information about the scm-commits mailing list