rhughes pushed to opticalraytracer (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:54:23 UTC 2015
>From 463e7c3a487c623863e6821b2d5b15f7653c4e19 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:40:30 +0000
Subject: Add an AppData file for the software center
diff --git a/opticalraytracer.spec b/opticalraytracer.spec
index 703e5dd..87b2aa9 100644
--- a/opticalraytracer.spec
+++ b/opticalraytracer.spec
@@ -1,6 +1,6 @@
Name: opticalraytracer
Version: 2.7
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: Utility that analyzes systems of lenses
License: GPLv2+
@@ -55,6 +55,38 @@ cp -p dist/OpticalRayTracer.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -rp dist/javadoc $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+# 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: http://arachnoid.com/messages/index.php
+SentUpstream: 2014-09-22
+-->
+<application>
+ <id type="desktop">opticalraytracer.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Analyze the optical properties of lenses</summary>
+ <description>
+ <p>
+ Optical Ray Tracer is an application for analyzing the properties of lenses.
+ You specify a single lens, or a series of lenses, then Optical Ray Tracer can
+ simulate how light will behave when it passes through them.
+ </p>
+ </description>
+ <url type="homepage">http://arachnoid.com/OpticalRayTracer/index.html</url>
+ <screenshots>
+ <screenshot type="default">http://arachnoid.com/OpticalRayTracer/images/optical_ray_tracer_image.png</screenshot>
+ </screenshots>
+</application>
+EOF
%post
touch --no-create %{_datadir}/icons/hicolor || :
@@ -72,6 +104,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%{_javadir}/*
%{_bindir}/raytracer
+%{_datadir}/appdata/*%{name}.appdata.xml
%{_datadir}/applications/*opticalraytracer.desktop
%{_datadir}/icons/hicolor/32x32/apps/OpticalRayTracer.png
%doc src/opticalraytracer/help_resources/*
@@ -81,6 +114,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.7-11
+- Add an AppData file for the software center
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.7-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/opticalraytracer.git/commit/?h=master&id=463e7c3a487c623863e6821b2d5b15f7653c4e19
More information about the scm-commits
mailing list