rhughes pushed to oggconvert (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:53:43 UTC 2015
>From ffb107be7851cde8029be6d8fc03183347c6c7df Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:39:53 +0000
Subject: Add an AppData file for the software center
diff --git a/oggconvert.spec b/oggconvert.spec
index 6bc4694..a94c18f 100644
--- a/oggconvert.spec
+++ b/oggconvert.spec
@@ -3,7 +3,7 @@
Name: oggconvert
Version: 0.3.3
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Convert media files to Free formats
Group: Applications/Multimedia
@@ -54,7 +54,48 @@ desktop-file-install --delete-original \
%{buildroot}/%{_datadir}/applications/oggconvert.desktop
%find_lang %{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 Richard Hughes <richard at hughsie.com> -->
+<!--
+BugReportURL: https://bugs.launchpad.net/oggconvert/+bug/1229276
+SentUpstream: 2014-09-22
+-->
+<application>
+ <id type="desktop">oggconvert.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ OggConvert is an easy to use tool for converting audio and video files of
+ various types into the free Ogg Vorbis audio format, and the Theora, VP8
+ and Dirac video formats.
+ It uses GStreamer, so it can convert (almost) any file which GStreamer
+ supports.
+ </p>
+ <p>
+ OggConvert can convert audio files and video files including video files
+ with multiple soundtracks.
+ It preserves metadata, for example artist and title info.
+ </p>
+ </description>
+ <url type="homepage">http://oggconvert.tristanb.net/</url>
+ <screenshots>
+ <screenshot type="default">http://oggconvert.tristanb.net/screenshots/oggconvert-0.3.0-en.png</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -66,11 +107,15 @@ rm -rf $RPM_BUILD_ROOT
# For noarch packages: sitelib
%{python_sitelib}/OggConvert/
%{_bindir}/oggconvert
+%{_datadir}/appdata/*%{name}.appdata.xml
%{_datadir}/applications/*oggconvert.desktop
%{_datadir}/pixmaps/oggconvert.svg
%{python_sitelib}/oggconvert-%{version}-py?.?.egg-info
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.3.3-10
+- Add an AppData file for the software center
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/oggconvert.git/commit/?h=master&id=ffb107be7851cde8029be6d8fc03183347c6c7df
More information about the scm-commits
mailing list