rhughes pushed to gstreamer1-plugins-good (master). "Register as an AppStream component"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 10:06:56 UTC 2015


>From 8636e11c42f0d7d0ff02c91b7472de659bbfb648 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 10:06:36 +0000
Subject: Register as an AppStream component


diff --git a/gstreamer1-plugins-good.spec b/gstreamer1-plugins-good.spec
index 57e9026..7cbb702 100644
--- a/gstreamer1-plugins-good.spec
+++ b/gstreamer1-plugins-good.spec
@@ -9,7 +9,7 @@
 
 Name:           gstreamer1-plugins-good
 Version:        1.4.5
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        GStreamer plugins with good code and licensing
 
 License:        LGPLv2+
@@ -111,6 +111,42 @@ make %{?_smp_mflags} V=1
 rm -rf $RPM_BUILD_ROOT
 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-good.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2013 Richard Hughes <richard at hughsie.com> -->
+<component type="codec">
+  <id>gstreamer-good</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>GStreamer Multimedia Codecs</name>
+  <description>
+    <p>
+      This addon includes several good quality codecs that are well tested.
+      These codecs can be used to encode and decode media files where the
+      format is not patent encumbered.
+    </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
+
 %find_lang gst-plugins-good-%{majorminor}
 
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
@@ -118,6 +154,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
 %files -f gst-plugins-good-%{majorminor}.lang
 %doc AUTHORS COPYING README REQUIREMENTS
+%{_datadir}/appdata/*.appdata.xml
 %doc %{_datadir}/gtk-doc/html/gst-plugins-good-plugins-%{majorminor}
 
 # Equaliser presets
@@ -204,6 +241,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
 
 %changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.4.5-3
+- Register as an AppStream component.
+
 * Fri Mar 06 2015 David Woodhouse <dwmw2 at infradead.org> - 1.4.5-2
 - Don't force RTP jitterbuffer clock-rate (#1199579)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gstreamer1-plugins-good.git/commit/?h=master&id=8636e11c42f0d7d0ff02c91b7472de659bbfb648


More information about the scm-commits mailing list