[packages/python-gstreamer] - fix building with python 3.8 - rel 3
baggins
baggins at pld-linux.org
Mon Nov 4 00:31:46 CET 2019
commit ea3be36c0a65b89bc5f91d2d7659f550f1370940
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Nov 4 00:30:11 2019 +0100
- fix building with python 3.8
- rel 3
python-3.8.patch | 11 +++++++++++
python-gstreamer.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/python-gstreamer.spec b/python-gstreamer.spec
index 9b8c89b..6274757 100644
--- a/python-gstreamer.spec
+++ b/python-gstreamer.spec
@@ -9,12 +9,13 @@ Summary: GStreamer Python 2 bindings
Summary(pl.UTF-8): Wiązania języka Python 2 do GStreamera
Name: python-gstreamer
Version: 1.16.0
-Release: 2
+Release: 3
License: LGPL v2+
Group: Libraries/Python
Source0: https://gstreamer.freedesktop.org/src/gst-python/%{pname}-%{version}.tar.xz
# Source0-md5: 877b2ed2aaffdb62e63f38ea9469b70f
Patch0: %{name}-nosegv.patch
+Patch1: python-3.8.patch
URL: https://gstreamer.freedesktop.org/modules/gst-python.html
BuildRequires: autoconf >= 2.68
BuildRequires: automake >= 1:1.11
@@ -84,6 +85,7 @@ Wtyczka GStreamera do wczytywania wtyczek napisanych w Pythonie 3.
%prep
%setup -q -n %{pname}-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
diff --git a/python-3.8.patch b/python-3.8.patch
new file mode 100644
index 0000000..c5bedea
--- /dev/null
+++ b/python-3.8.patch
@@ -0,0 +1,11 @@
+--- gst-python-1.16.0/acinclude.m4~ 2018-12-31 00:47:50.000000000 +0100
++++ gst-python-1.16.0/acinclude.m4 2019-11-04 00:28:59.008572417 +0100
+@@ -79,7 +79,7 @@
+
+ dnl deduce PYTHON_LIBS
+ if $PYTHON-config --help 1>/dev/null 2>/dev/null; then
+- PYTHON_LIBS=`$PYTHON-config --ldflags 2>/dev/null`
++ PYTHON_LIBS=`$PYTHON-config --ldflags --embed 2>/dev/null || $PYTHON-config --ldflags 2>/dev/null`
+ PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig as s; print(s.get_python_lib(standard_lib=1))"`
+ if echo "$host_os" | grep darwin >/dev/null 2>&1; then
+ dnl OSX is a pain. Python as shipped by apple installs libpython in /usr/lib
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gstreamer.git/commitdiff/ea3be36c0a65b89bc5f91d2d7659f550f1370940
More information about the pld-cvs-commit
mailing list