Hello community,

here is the log from the commit of package python-gst for openSUSE:Leap:15.2 
checked in at 2020-03-13 11:00:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-gst (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-gst.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gst"

Fri Mar 13 11:00:03 2020 rev:29 rq:784529 version:1.16.2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-gst/python-gst.changes  2020-02-19 
18:48:56.391045803 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-gst.new.3160/python-gst.changes        
2020-03-13 11:01:57.716630900 +0100
@@ -1,0 +2,15 @@
+Wed Mar 11 10:08:18 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Use the singlespec again to properly generate py2 and py3 pkg
+
+-------------------------------------------------------------------
+Tue Mar 10 11:01:31 UTC 2020 - Bjørn Lie <[email protected]>
+
+- Add python-gst-fix-py38-build.patch: Fix build with py 3.8.
+  Further switch to meson buildsystem, patch only fixes it for
+  this, and not autotools. Add c++_compiler and meson BuildRequires
+  and meson macros. Drop all python build macros, and add explicit
+  pkgconfig(python3) BuildRequires.
+- Update URL to new home.
+
+-------------------------------------------------------------------

New:
----
  python-gst-fix-py38-build.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gst.spec ++++++
--- /var/tmp/diff_new_pack.K8N8ac/_old  2020-03-13 11:01:58.100631174 +0100
+++ /var/tmp/diff_new_pack.K8N8ac/_new  2020-03-13 11:01:58.104631176 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gst
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,25 +22,28 @@
 Release:        0
 Summary:        Python Bindings for GStreamer
 License:        LGPL-2.1-or-later
-Group:          Development/Languages/Python
-URL:            http://www.gstreamer.net/
-Source:         
https://gstreamer.freedesktop.org/src/gst-python/%{_name}-%{version}.tar.xz
+Group:          System/Libraries
+URL:            https://gstreamer.freedesktop.org
+Source0:        %{url}/src/gst-python/%{_name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM python-gst-fix-py38-build.patch -- Fix build with py 3.8
+Patch0:         python-gst-fix-py38-build.patch
 
 BuildRequires:  %{python_module devel}
+BuildRequires:  c++_compiler
 BuildRequires:  gobject-introspection
+BuildRequires:  meson
 BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
 BuildRequires:  pkgconfig(gstreamer-1.0) >= %{version}
 BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0) >= %{version}
 BuildRequires:  pkgconfig(pygobject-3.0) >= 3.0
 Requires:       gstreamer >= %{version}
+%{python_subpackages}
 
 %description
 This module contains a wrapper that allows GStreamer applications to be
 written in Python.
 
-%python_subpackages
-
 %package -n gstreamer-plugin-python
 Summary:        GStreamer 1.0 plugin for python
 Group:          System/Libraries
@@ -50,37 +53,34 @@
 written in Python.
 
 %prep
-%setup -q -n %{_name}-%{version}
+%autosetup -p1 -n %{_name}-%{version}
 
 %build
 for py_var in %{pythons}; do
   mkdir ../$py_var
   cp -rp * ../$py_var
   pushd ../$py_var
-  # link ../configure, so we can still use the macro
-  export PYTHON=$py_var
-  %configure \
-    --disable-static
-  make %{?_smp_mflags}
+  %meson \
+    -Dpython=$py_var \
+    %{nil}
+  %meson_build
   popd
 done
 
 %install
 for py_var in %{pythons}; do
   pushd ../$py_var
-  %make_install
+  %meson_install
   popd
 done
-find %{buildroot} -type f -name "*.la" -delete -print
-rm %{buildroot}%{_libdir}/gstreamer-1.0/libgstpython.so
 
 %files %{python_files}
 %license COPYING
 %doc NEWS TODO
-%dir %{python_sitearch}/gi
-%{python_sitearch}/gi/overrides/
+%dir %{python_sitelib}/gi
+%{python_sitelib}/gi/overrides/
 
 %files -n gstreamer-plugin-python
-%{_libdir}/gstreamer-1.0/libgstpython.cpython*.so
+%{_libdir}/gstreamer-1.0/libgstpython.so
 
 %changelog

++++++ python-gst-fix-py38-build.patch ++++++
>From 22f28155d86e27c4134de4ed2861264003fcfd23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <[email protected]>
Date: Fri, 13 Dec 2019 10:46:20 +0200
Subject: [PATCH] Fix build with Python 3.8 by also checking for
 python-3.X-embed.pc

Since Python 3.8 the normal checks don't include the Python libraries
anymore and linking of the gst-python module would fail.

See also https://github.com/mesonbuild/meson/issues/5629

Fixes https://gitlab.freedesktop.org/gstreamer/gst-python/issues/28
---
 meson.build | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 744b7ce..fe4ca7a 100644
--- a/meson.build
+++ b/meson.build
@@ -24,7 +24,14 @@ pygobject_dep = dependency('pygobject-3.0', fallback: 
['pygobject', 'pygobject_d
 
 pymod = import('python')
 python = pymod.find_installation(get_option('python'))
-python_dep = python.dependency(required : true)
+pythonver = python.language_version()
+
+# Workaround for https://github.com/mesonbuild/meson/issues/5629
+# https://gitlab.freedesktop.org/gstreamer/gst-python/issues/28
+python_dep = dependency('python-@0@-embed'.format(pythonver), version: '>=3', 
required: false)
+if not python_dep.found()
+  python_dep = python.dependency(required : true)
+endif
 
 python_abi_flags = python.get_variable('ABIFLAGS', '')
 pylib_loc = get_option('libpython-dir')
-- 
2.24.1


Reply via email to