[packages/python-gstreamer] - updated to 1.4.0 - package also gstreamer-python (gstreamer interface for plugins written in pytho
qboosh
qboosh at pld-linux.org
Thu Oct 23 18:49:49 CEST 2014
commit 2f88f0363b536bdea07e71fd4fc59f753f7c6cbe
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Oct 23 18:50:40 2014 +0200
- updated to 1.4.0
- package also gstreamer-python (gstreamer interface for plugins written in python)
python-gstreamer.spec | 64 ++++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 51 insertions(+), 13 deletions(-)
---
diff --git a/python-gstreamer.spec b/python-gstreamer.spec
index 093da7e..752042d 100644
--- a/python-gstreamer.spec
+++ b/python-gstreamer.spec
@@ -1,35 +1,47 @@
#
# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+%bcond_with pluginpy3 # use Python 3 instead of 2 for plugin
+%define gst_ver 1.4.0
%define pname gst-python
+%if %{without python2}
+%define with_pluginpy3 1
+%endif
+%if %{with pluginpy3}
+%define pluginpython python3
+%else
+%define pluginpython python
+%endif
Summary: GStreamer Python 2 bindings
Summary(pl.UTF-8): Wiązania języka Python 2 do GStreamera
Name: python-gstreamer
-Version: 1.2.1
-Release: 2
+Version: 1.4.0
+Release: 1
License: LGPL v2+
Group: Libraries/Python
-Source0: http://gstreamer.freedesktop.org/src/gst-python/%{pname}-%{version}.tar.bz2
-# Source0-md5: bfc70a6529a981cb84fc8a7b4da69305
+Source0: http://gstreamer.freedesktop.org/src/gst-python/%{pname}-%{version}.tar.xz
+# Source0-md5: 72e3ba811db671366162bbf75a01ed37
URL: http://gstreamer.freedesktop.org/modules/gst-python.html
-BuildRequires: autoconf >= 2.60
-BuildRequires: automake >= 1:1.10
-BuildRequires: gstreamer-devel >= 1.2.0
-BuildRequires: libtool >= 1.4
+BuildRequires: autoconf >= 2.68
+BuildRequires: automake >= 1:1.11
+BuildRequires: gstreamer-devel >= %{gst_ver}
+BuildRequires: libtool >= 2:2.2.6
BuildRequires: pkgconfig >= 1:0.9.0
%if %{with python2}
BuildRequires: python-devel >= 1:2.7
BuildRequires: python-pygobject3-devel >= 3.0
%endif
%if %{with python3}
-BuildRequires: python3-devel >= 3.3
+BuildRequires: python3-devel >= 1:3.3
BuildRequires: python3-pygobject3-devel >= 3.0
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.612
-Requires: gstreamer >= 1.2.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires: gstreamer >= %{gst_ver}
Requires: python-pygobject3 >= 3.0
Obsoletes: python-gstreamer-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -44,7 +56,7 @@ Wiązania języka Python 2 do GStreamera.
Summary: GStreamer Python 3 bindings
Summary(pl.UTF-8): Wiązania języka Python 3 do GStreamera
Group: Libraries/Python
-Requires: gstreamer >= 1.2.0
+Requires: gstreamer >= %{gst_ver}
Requires: python3-pygobject3 >= 3.0
%description -n python3-gstreamer
@@ -53,6 +65,18 @@ GStreamer Python 3 bindings.
%description -n python3-gstreamer -l pl.UTF-8
Wiązania języka Python 3 do GStreamera.
+%package -n gstreamer-%{pluginpython}
+Summary: GStreamer plugin to load plugins written in Python
+Summary(pl.UTF-8): Wtyczka GStreamera do wczytywania wtyczek napisanych w Pythonie
+Group: Libraries
+Requires: %{pluginpython}-gstreamer = %{version}-%{release}
+
+%description -n gstreamer-%{pluginpython}
+GStreamer plugin to load plugins written in Python.
+
+%description -n gstreamer-%{pluginpython} -l pl.UTF-8
+Wtyczka GStreamera do wczytywania wtyczek napisanych w Pythonie.
+
%prep
%setup -q -n %{pname}-%{version}
@@ -101,8 +125,17 @@ rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/gi/overrides/*.la
+
+%if %{without pluginpy3}
+# if both modules are installed and py2 plugin is selected, reinstall py2 version of plugin
+%{__make} -C python2/plugin install \
+ DESTDIR=$RPM_BUILD_ROOT
+%endif
%endif
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstpythonplugin.la
+install -d $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/python
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -125,3 +158,8 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitedir}/gi/overrides/__pycache__/Gst.*.py[co]
%{py3_sitedir}/gi/overrides/__pycache__/GstPbutils.*.py[co]
%endif
+
+%files -n gstreamer-%{pluginpython}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstpythonplugin.so
+%dir %{_libdir}/gstreamer-1.0/python
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gstreamer.git/commitdiff/2f88f0363b536bdea07e71fd4fc59f753f7c6cbe
More information about the pld-cvs-commit
mailing list