[gnome-sdk-images] Add python3 gstreamer overrides



commit b0003c054be17e7a8d1c7728e6144335aa9821f6
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Nov 27 13:31:23 2015 +0100

    Add python3 gstreamer overrides

 specs/gnome-platform.spec    |    1 +
 specs/python-gstreamer1.spec |   45 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/specs/gnome-platform.spec b/specs/gnome-platform.spec
index 3d0decb..ac15dea 100644
--- a/specs/gnome-platform.spec
+++ b/specs/gnome-platform.spec
@@ -27,6 +27,7 @@ BuildRequires: librsvg2
 BuildRequires: libsecret-dev
 BuildRequires: libsoup
 BuildRequires: pygobject3
+BuildRequires: python-gstreamer1
 BuildRequires: vte-dev
 BuildRequires: webkitgtk4-dev
 BuildRequires: zenity
diff --git a/specs/python-gstreamer1.spec b/specs/python-gstreamer1.spec
new file mode 100644
index 0000000..e8e5d30
--- /dev/null
+++ b/specs/python-gstreamer1.spec
@@ -0,0 +1,45 @@
+Name:           python-gstreamer1
+Version:        1.6.1
+Release:        1%{?dist}
+Summary:        Python bindings for GStreamer
+
+Group:          Development/Languages
+License:        LGPLv2+
+URL:            http://gstreamer.freedesktop.org/
+Source:         http://gstreamer.freedesktop.org/src/gst-python/gst-python-%{version}.tar.xz
+
+BuildRequires: freedesktop-sdk-base
+Requires:       pygobject3%{?_isa}
+Requires:       gstreamer1%{?_isa}
+
+BuildRequires:  gstreamer1-dev
+BuildRequires:  pygobject3-dev
+BuildRequires:  python3-cairo-dev
+
+%description
+This module contains PyGObject overrides to make it easier to write
+applications that use GStreamer 1.x in Python 3.
+
+%prep
+%setup -q -n gst-python-%{version}
+
+find -name '*.py' | xargs sed -i '1s|^#!python|#!python3|'
+
+%build
+%configure PYTHON=python3
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+
+%files
+%license COPYING
+%doc AUTHORS ChangeLog NEWS README
+%{_libdir}/python3.*/site-packages/gi/overrides/*
+%{_libdir}/gstreamer-1.0/libgstpythonplugin.*.so
+
+%changelog
+* Fri Nov 27 2015 Alexander Larsson <alexl redhat com> - 1.6.1-1
+- initial version


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]