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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:54:29 UTC 2015


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


diff --git a/Panini.spec b/Panini.spec
index 8636386..78421d4 100644
--- a/Panini.spec
+++ b/Panini.spec
@@ -1,6 +1,6 @@
 Name:		Panini	
 Version:	0.71.104
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	A tool for creating perspective views from panoramic and wide angle images
 
 Group:		Applications/Multimedia
@@ -46,6 +46,52 @@ install -m 755 -p %{name} %{buildroot}%{_bindir}
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
 install -p -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
 
+# 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://sourceforge.net/p/pvqt/feature-requests/5/
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">Panini.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Panini</name>
+  <summary>Create perspective views from panoramic and wide angle images</summary>
+  <description>
+    <p>
+      Panini is a tool for creating perspective views from panoramic and wide angle images.
+    </p>
+    <p>
+      Panini can load most common photo and panoramic formats from image files such
+      as those created with hugin or QuickTimeVR (QTVR .mov) files.  Like all pano
+      viewers, it then shows a linear perspective view that can be panned and zoomed.
+      But Panini can also display a range of wide angle perspectives via the
+      stereographic and "Pannini" vedutismo families of projections, and shift,
+      rotate, and stretch the image like a software view camera.
+    </p>
+    <p>
+      Panini can do those things because it paints the picture on a three dimensional
+      surface, either a sphere or a cylinder, which you then view in perspective.
+      Shifting the point of view changes the apparent perspective of the image, and
+      other controls let you frame the view to your liking.  Then you can save the
+      screen image to a file at higher-than-screen resolution.
+    </p>
+  </description>
+  <!-- no screenshots -->
+  <url type="homepage">http://sourceforge.net/projects/pvqt/</url>
+  <updatecontact>tksharpless at gmail.com</updatecontact>
+</application>
+EOF
+
 %clean
 rm -rf %{buildroot}
 
@@ -60,9 +106,13 @@ update-desktop-database &> /dev/null ||:
 %doc panini-build.txt panini-usage.txt GPLversion3.txt panini-0.71-release.txt
 %{_bindir}/%{name}
 %{_datadir}/pixmaps/*.png
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.71.104-3
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.71.104-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/Panini.git/commit/?h=master&id=0dccdfa992718c17afd12937308075eb1f9eb149


More information about the scm-commits mailing list