+ This release includes important fixes for the GStreamer Python
bindings.
+ Since pygobject 3.13 around 10 years ago, it wasn't possible
anymore to modify GStreamer miniobjects, e.g. modify caps or
set buffer timestamps, as an implicit copy of the original
would always be made. This should finally work again now.
+ Fix new warnings on Fedora 42, various meson warnings, and
other small meson build/wrap fixes.
+ python: Add overrides to be able to handle writability of
MiniObjects.
+ python: Convert buffer metadata API to use @property
decorators.
+ REGRESSION: pygobject 3.13 now copies the GstStructure when
getting them from a GstCaps, making it impossible to properly
modify structures from caps in place.
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/python-gst?expand=0&rev=133
89 lines
2.4 KiB
RPMSpec
89 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-gst
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _name gst-python
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-gst
|
|
Version: 1.26.2
|
|
Release: 0
|
|
Summary: Python Bindings for GStreamer
|
|
License: LGPL-2.1-or-later
|
|
Group: System/Libraries
|
|
URL: https://gstreamer.freedesktop.org
|
|
Source0: %{_name}-%{version}.tar.zst
|
|
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: c++_compiler
|
|
BuildRequires: gobject-introspection
|
|
BuildRequires: meson >= 1.1
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(gstreamer-1.0) >= %{version}
|
|
BuildRequires: pkgconfig(gstreamer-analytics-1.0) >= %{version}
|
|
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) >= %{version}
|
|
BuildRequires: pkgconfig(gstreamer-rtsp-server-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.
|
|
|
|
%package -n gstreamer-plugin-python
|
|
Summary: GStreamer 1.0 plugin for python
|
|
Group: System/Libraries
|
|
|
|
%description -n gstreamer-plugin-python
|
|
This module contains a wrapper that allows GStreamer applications to be
|
|
written in Python.
|
|
|
|
%prep
|
|
%autosetup -p3 -n %{_name}-%{version}
|
|
|
|
%build
|
|
%{python_expand py_var=$python
|
|
mkdir ../$py_var
|
|
cp -rp * ../$py_var
|
|
pushd ../$py_var
|
|
%meson \
|
|
-Dpython-exe=$py_var \
|
|
%{nil}
|
|
%meson_build
|
|
popd
|
|
}
|
|
|
|
%install
|
|
%{python_expand py_var=$python
|
|
pushd ../$py_var
|
|
%meson_install
|
|
popd
|
|
}
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc NEWS README.md
|
|
%dir %{python_sitearch}/gi
|
|
%{python_sitearch}/gi/overrides/
|
|
|
|
%files -n gstreamer-plugin-python
|
|
%{_libdir}/gstreamer-1.0/libgstpython.so
|
|
|
|
%changelog
|