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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 10:16:58 UTC 2015


>From 12fab1cc00fe3ed41a9926fedce19cba11ea3c7f Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 10:11:54 +0000
Subject: Register as an AppStream component


diff --git a/gstreamer1-plugins-base.spec b/gstreamer1-plugins-base.spec
index 5c8ce59..a3769e2 100644
--- a/gstreamer1-plugins-base.spec
+++ b/gstreamer1-plugins-base.spec
@@ -2,7 +2,7 @@
 
 Name:           gstreamer1-plugins-base
 Version:        1.4.5
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        GStreamer streaming media framework base plugins
 
 License:        LGPLv2+
@@ -106,6 +106,41 @@ 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-base.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2013 Richard Hughes <richard at hughsie.com> -->
+<component type="codec">
+  <id>gstreamer-base</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>GStreamer Multimedia Codecs - Base</name>
+  <description>
+    <p>
+      This addon includes system codecs that are essential for the running system.
+    </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>
+  <compulsory_for_desktop>GNOME</compulsory_for_desktop>
+  <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-base-%{majorminor}
 
 # Clean out files that should not be part of the rpm.
@@ -152,6 +187,7 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-play-1.0
 
 %files -f gst-plugins-base-%{majorminor}.lang
 %doc AUTHORS COPYING README REQUIREMENTS
+%{_datadir}/appdata/*.appdata.xml
 %{_libdir}/libgstallocators-%{majorminor}.so.*
 %{_libdir}/libgstaudio-%{majorminor}.so.*
 %{_libdir}/libgstfft-%{majorminor}.so.*
@@ -359,6 +395,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-play-1.0
 
 
 %changelog
+* Wed Mar 25 2015 Richard Hughes <rhughes at redhat.com> - 1.4.5-3
+- Register as an AppStream component.
+
 * Sat Feb 21 2015 Kalev Lember <kalevlember at gmail.com> - 1.4.5-2
 - Backport new missing plugins API
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gstreamer1-plugins-base.git/commit/?h=master&id=12fab1cc00fe3ed41a9926fedce19cba11ea3c7f


More information about the scm-commits mailing list