rhughes pushed to gstreamer-plugins-espeak (master). "Register as an AppStream component"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 10:16:55 UTC 2015
>From 42902d468b30b1d7b9b3ffa993b3f72338c0f5fc Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 10:09:32 +0000
Subject: Register as an AppStream component
diff --git a/gstreamer-plugins-espeak.spec b/gstreamer-plugins-espeak.spec
index e392393..3b859e3 100644
--- a/gstreamer-plugins-espeak.spec
+++ b/gstreamer-plugins-espeak.spec
@@ -1,6 +1,6 @@
Name: gstreamer-plugins-espeak
Version: 0.4.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: A simple gstreamer plugin to use espeak
Group: Applications/Multimedia
@@ -32,6 +32,42 @@ make %{?_smp_mflags} V=1
%install
make install DESTDIR=$RPM_BUILD_ROOT
+# Register as an AppStream component 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/gstreamer-espeak.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2013 Richard Hughes <richard at hughsie.com> -->
+<component type="codec">
+ <id>gstreamer-espeak</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>eSpeak GStreamer Multimedia Codec</name>
+ <description>
+ <p>
+ eSpeak is a compact open source text-to-speech synthesizer for English
+ and other languages.
+ This codec includes different voices, whose characteristics can be altered.
+ </p>
+ <p>
+ A codec decodes audio and video for for playback or editing and is also
+ used for transmission or storage.
+ Different codecs are used in video-conferencing, streaming media and
+ video editing applications.
+ </p>
+ </description>
+ <url type="homepage">http://gstreamer.freedesktop.org/</url>
+ <url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</url>
+ <url type="donation">http://www.gnome.org/friends/</url>
+ <url type="help">http://gstreamer.freedesktop.org/documentation/</url>
+ <update_contact><!-- upstream-contact_at_email.com --></update_contact>
+</component>
+EOF
+
# remove libtool archives
find %{buildroot} -name '*.la' -exec rm -f {} ';'
@@ -41,10 +77,14 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%files
%doc AUTHORS COPYING README NEWS
+%{_datadir}/appdata/*.appdata.xml
%{_libdir}/gstreamer-1.0/libgstespeak.so
%changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 0.4.0-6
+- Register as an AppStream component.
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/gstreamer-plugins-espeak.git/commit/?h=master&id=42902d468b30b1d7b9b3ffa993b3f72338c0f5fc
More information about the scm-commits
mailing list