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

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


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


diff --git a/hugin.spec b/hugin.spec
index 790afd8..cd6015d 100644
--- a/hugin.spec
+++ b/hugin.spec
@@ -2,7 +2,7 @@
 Summary: A panoramic photo stitcher and more
 Name: hugin
 Version: 2014.0.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2+
 Group: Applications/Multimedia
 Source: http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
@@ -67,6 +67,19 @@ desktop-file-install --vendor="" --delete-original \
   %{buildroot}/%{_datadir}/applications/pto_gen.desktop
 %find_lang %{name}
 
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/calibrate_lens_gui.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>calibrate_lens_gui.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">hugin.desktop</value>
+  </metadata>
+</component>
+EOF
 
 %post
 update-desktop-database &> /dev/null ||:
@@ -100,6 +113,7 @@ fi
 %{_libdir}/%{name}/libhuginbasewx.so*
 %{_libdir}/%{name}/libicpfindlib.so*
 %{_datadir}/%{name}/xrc
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/applications/PTBatcherGUI.desktop
 %{_datadir}/applications/calibrate_lens_gui.desktop
@@ -190,6 +204,9 @@ fi
 %{_mandir}/man1/pto_template.*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2014.0.0-4
+- Add an AppData file for the software center
+
 * Tue Feb 03 2015 Petr Machata <pmachata at redhat.com> - 2014.0.0-3
 - Rebuild for boost 1.57.0
 - Apply an upstream patch that ports expression parser to
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/hugin.git/commit/?h=master&id=dc326bd218021040ecca4bbd11da1c94430e67d4


More information about the scm-commits mailing list