cicku pushed to git-cola (f21). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 1 01:17:43 UTC 2015


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


diff --git a/git-cola.spec b/git-cola.spec
index 93e1066..275d48f 100644
--- a/git-cola.spec
+++ b/git-cola.spec
@@ -4,7 +4,7 @@
 
 Name:           git-cola
 Version:        2.0.8
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A sleek and powerful git GUI
 License:        GPLv2+
 URL:            http://git-cola.github.io
@@ -59,6 +59,20 @@ make DESTDIR=%{buildroot} prefix=%{_prefix} %{makeopts} install
 make DESTDIR=%{buildroot} prefix=%{_prefix} %{makeopts} install-doc
 make DESTDIR=%{buildroot} prefix=%{_prefix} %{makeopts} install-html
 
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/git-dag.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>git-dag.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">git-cola.desktop</value>
+  </metadata>
+</component>
+EOF
+
 %find_lang %{name}
 
 %check
@@ -83,6 +97,7 @@ fi
 %doc COPYING COPYRIGHT README.md
 %{_bindir}/cola
 %{_bindir}/git-*
+%{_datadir}/appdata/git*.appdata.xml
 %{_datadir}/applications/git*.desktop
 %{_datadir}/%{name}/
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
@@ -90,6 +105,9 @@ fi
 %{_mandir}/man1/git*.1*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.0.8-3
+- Add an AppData file for the software center
+
 * Mon Dec 15 2014 Kevin Kofler <Kevin at tigcc.ticalc.org> - 2.0.8-2
 - Build against Python 3 on Fedora >= 22
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/git-cola.git/commit/?h=f21&id=fdfb5a7b6f6cf0056d34111f12a26d21dc1394dd


More information about the scm-commits mailing list