rhughes pushed to gnome-subtitles (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:42:45 UTC 2015
>From 2c4445dcfcfbcd4312bb7042d2c4ca9dbdd8e22f Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:33:17 +0000
Subject: Add an AppData file for the software center
diff --git a/gnome-subtitles.spec b/gnome-subtitles.spec
index 7171b0e..66d480f 100644
--- a/gnome-subtitles.spec
+++ b/gnome-subtitles.spec
@@ -4,7 +4,7 @@
Name: gnome-subtitles
Version: 1.3
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Subtitle editor for Gnome
#Files under src/External/NCharDet are MPLv1.1 or GPLv2+ or LGPLv2+
@@ -61,6 +61,42 @@ desktop-file-install --vendor=fedora \
%else
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
%endif
+
+# 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: https://bugzilla.gnome.org/show_bug.cgi?id=730805
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">gnome-subtitles.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Create subtitles for videos</summary>
+ <description>
+ <p>
+ GNOME Subtitles is an application for creating and editing subtitles
+ for videos.
+ It allows you to load up a video file, and create a subtitle
+ file to go with that video, and tweak the timings of the subtitles.
+ It supports a wide range of subtitle and video formats.
+ </p>
+ </description>
+ <url type="homepage">http://gnome-subtitles.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://gnome-subtitles.sourceforge.net/files/screenshots/Screenshot-GnomeSubtitles-VideoTimesTranslation.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name}
@@ -89,6 +125,7 @@ update-desktop-database &> /dev/null || :
%if %{with desktop_vendor_tag}
%{_datadir}/applications/fedora-%{name}.desktop
%else
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%endif
%{_datadir}/gnome/help/%{name}
@@ -99,6 +136,9 @@ update-desktop-database &> /dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.3-5
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/gnome-subtitles.git/commit/?h=master&id=2c4445dcfcfbcd4312bb7042d2c4ca9dbdd8e22f
More information about the scm-commits
mailing list