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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:49:18 UTC 2015


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


diff --git a/luminance-hdr.spec b/luminance-hdr.spec
index 0fd5823..f707143 100644
--- a/luminance-hdr.spec
+++ b/luminance-hdr.spec
@@ -1,6 +1,6 @@
 Name: luminance-hdr
 Version: 2.3.1
-Release: 11%{?dist}
+Release: 12%{?dist}
 Summary: A graphical tool for creating and tone-mapping HDR images
 
 Group: Applications/Productivity
@@ -66,6 +66,40 @@ desktop-file-install --delete-original \
 	--dir=%{buildroot}/%{_datadir}/applications \
 	%{buildroot}/%{_datadir}/applications/%{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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: davideanastasia at users.sourceforge.net
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">luminance-hdr.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Create HDR images</summary>
+  <description>
+    <p>
+      Luminance HDR is an application for taking a set of pictures taken
+      of the same scene with different exposure settings, and creating a
+      high dynamic range (HDR) image. It supports a range on imput images,
+      including JPEG, TIFF and RAW. It can also rotate and crop, and tonemap
+      HDR images.
+    </p>
+  </description>
+  <url type="homepage">http://qtpfsgui.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://qtpfsgui.sourceforge.net/screenshots/MainWindow-2.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %clean
 rm -rf %{buildroot}
@@ -95,11 +129,15 @@ fi
 %{_bindir}/%{name}-cli
 %{_datadir}/%{name}
 %{_datadir}/mime/packages/%{name}.xml
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.3.1-12
+- Add an AppData file for the software center
+
 * Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 2.3.1-11
 - Rebuild for boost 1.57.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/luminance-hdr.git/commit/?h=master&id=6d400d2d0131d8ee80844107382536ba8a9385d1


More information about the scm-commits mailing list