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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:00:15 UTC 2015


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


diff --git a/subtitleeditor.spec b/subtitleeditor.spec
index 12bdc99..414dcd0 100644
--- a/subtitleeditor.spec
+++ b/subtitleeditor.spec
@@ -5,7 +5,7 @@
 
 Name:           subtitleeditor
 Version:        %{major}.%{minor}.%{maintenance}
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        GTK+2 tool to edit subtitles for GNU/Linux/*BSD
 
 Group:          Applications/Multimedia
@@ -85,6 +85,41 @@ desktop-file-install --delete-original \
   --mode 0644                                            \
   %{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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://gna.org/bugs/index.php?22657
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">subtitleeditor.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Subtitle Editor</name>
+  <summary>GTK+2 tool to edit subtitles for GNU/Linux/*BSD</summary>
+  <description>
+    <p>
+      Subtitle Editor is a GTK+2 tool to edit subtitles for GNU/Linux/*BSD. It can be
+      used for new subtitles or as a tool to transform, edit, correct and refine
+      existing subtitle. This program also shows sound waves, which makes it easier
+      to synchronize subtitles to voices.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot type="default">http://home.gna.org/subtitleeditor/screenshots/se-0.34-01.png</screenshot>
+  </screenshots>
+  <url type="homepage">http://home.gna.org/subtitleeditor/</url>
+  <updatecontact>kitone at gna.org</updatecontact>
+</application>
+EOF
 
 %clean
 %{__rm} -rf $RPM_BUILD_ROOT
@@ -112,8 +147,10 @@ fi
 %{_datadir}/pixmaps/%{name}.svg
 %{_datadir}/%{name}
 %if 0%{?fedora} && 0%{?fedora} < 19
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/fedora-%{name}.desktop
 %else
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %endif
 %{_datadir}/man/man1/%{name}.1.*
@@ -121,6 +158,9 @@ fi
 %{_libdir}/%{name}
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.41.0-6
+- Add an AppData file for the software center
+
 * Thu Jan 29 2015 Artur Szymczak <artur.szymczak at nadzieja.pl> - 0.41.0-5
 - Added patches for rhbz #1187152 (upstream #22857 and #23018)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/subtitleeditor.git/commit/?h=master&id=28ceaa0177ddc1669f073fb7b93d245c62c06cc9


More information about the scm-commits mailing list