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

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


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


diff --git a/jaxodraw.spec b/jaxodraw.spec
index ce50f69..1765e30 100644
--- a/jaxodraw.spec
+++ b/jaxodraw.spec
@@ -3,7 +3,7 @@
 
 Name:		jaxodraw
 Version:	%{major}.%{minor}
-Release:	14%{?dist}
+Release:	15%{?dist}
 Summary:	A Java program for drawing Feynman diagrams
 Group:		Applications/Engineering 
 License:	GPLv2+
@@ -99,6 +99,40 @@ cp -rp build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
 # LaTeX style
 install -D -p -m 644 axodraw4j.sty %{buildroot}%{_datadir}/texmf/tex/latex/axodraw4j/axodraw4j.sty
 
+# 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: lukas_theussl at users.sf.net
+SentUpstream: 2014-05-22
+-->
+<application>
+  <id type="desktop">jaxodraw.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Create and edit Feynman diagrams</summary>
+  <description>
+    <p>
+      Jaxodraw is an application for creating and editing Feynman diagrams,
+      with the ability to export to LaTeX.
+      Feynman diagrams are a specific diagram scheme to represent the mathematical
+      expressions that describe the behavior of subatomic particles.
+    </p>
+  </description>
+  <url type="homepage">http://jaxodraw.sourceforge.net/</url>
+  <screenshots>
+  <screenshot type="default">http://jaxodraw.sourceforge.net/images/general.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %check
 # Unit tests fail with Open JDK
 #ant test
@@ -114,6 +148,7 @@ rm -rf %{buildroot}
 %doc src/doc/* axodraw4j-summary.txt
 %{_bindir}/%{name}
 %{_javadir}/%{name}.jar
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/%{name}.png
 %{_mandir}/man1/%{name}.1.*
@@ -127,6 +162,9 @@ rm -rf %{buildroot}
 %{_datadir}/texmf/tex/latex/axodraw4j/
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.0.1-15
+- Add an AppData file for the software center
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.1-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/jaxodraw.git/commit/?h=master&id=99c89f58045188534185134b3728323b85179f97


More information about the scm-commits mailing list