[packages/gstreamer-editing-services] - added python3 module (validate launcher remains python2 based, no switch exposed) - noarch bash-co
qboosh
qboosh at pld-linux.org
Sun Mar 14 12:23:37 CET 2021
commit a36d7d7ad7d1218243f0ee62bcf3db1ec228da33
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 14 12:24:40 2021 +0100
- added python3 module (validate launcher remains python2 based, no switch exposed)
- noarch bash-completion package
gstreamer-editing-services.spec | 54 +++++++++++++++++++++++++++++++++++------
1 file changed, 47 insertions(+), 7 deletions(-)
---
diff --git a/gstreamer-editing-services.spec b/gstreamer-editing-services.spec
index 100dee5..925ccb6 100644
--- a/gstreamer-editing-services.spec
+++ b/gstreamer-editing-services.spec
@@ -1,8 +1,15 @@
#
# Conditional build:
-%bcond_without python # Python binding
+%bcond_without python # Python binding (any)
+%bcond_without python2 # CPython 2.x binding + validate launcher
+%bcond_without python3 # CPython 3.x binding
%bcond_without static_libs # static library
+%if %{without python}
+%undefine with_python2
+%undefine with_python3
+%endif
+
%define gst_ver 1.16.3
%define gstpb_ver 1.16.3
%define gstvalidate_ver 1.12.1
@@ -28,11 +35,15 @@ BuildRequires: gtk-doc >= 1.3
BuildRequires: libtool >= 2:2.2.6
BuildRequires: libxml2-devel >= 2.0
BuildRequires: pkgconfig >= 1:0.9.0
-%if %{with python}
+%if %{with python2}
BuildRequires: python >= 1:2.3
BuildRequires: python-pygobject3-devel >= 3.0
%endif
+%if %{with python3}
+BuildRequires: python3 >= 1:3.4
+%endif
BuildRequires: rpm-build >= 4.6
+BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.673
BuildRequires: tar >= 1:1.22
BuildRequires: xz
@@ -105,12 +116,26 @@ Python GI binding for GStreamer Editing Services.
%description -n python-gstreamer-editing-services -l pl.UTF-8
Wiązanie Pythona GI do usług GStreamer Editing Services.
+%package -n python3-gstreamer-editing-services
+Summary: Python GI binding for GStreamer Editing Services
+Summary(pl.UTF-8): Wiązanie Pythona GI do usług GStreamer Editing Services
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+Requires: python3-pygobject3 >= 3.0
+
+%description -n python3-gstreamer-editing-services
+Python GI binding for GStreamer Editing Services.
+
+%description -n python3-gstreamer-editing-services -l pl.UTF-8
+Wiązanie Pythona GI do usług GStreamer Editing Services.
+
%package -n bash-completion-gstreamer-editing-services
Summary: Bash completion for GStreamer Editing Services utilities
Summary(pl.UTF-8): Bashowe uzupełnianie paramterów narzędzi GStreamer Editing Services
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: bash-completion >= 2.0
+BuildArch: noarch
%description -n bash-completion-gstreamer-editing-services
Bash completion for GStreamer Editing Services utilities (ges-launch).
@@ -152,12 +177,20 @@ rm -rf $RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.a
%endif
-%if %{with python}
+%if %{with python2}
%py_comp $RPM_BUILD_ROOT%{_libdir}/gst-validate-launcher/python/launcher/apps
%py_ocomp $RPM_BUILD_ROOT%{_libdir}/gst-validate-launcher/python/launcher/apps
+
%py_postclean
%endif
+%if %{with python3}
+install -d $RPM_BUILD_ROOT%{py3_sitedir}/gstreamer-editing-services
+cp -p bindings/python/gi/overrides/GES.py $RPM_BUILD_ROOT%{py3_sitedir}/gstreamer-editing-services
+%py3_comp $RPM_BUILD_ROOT%{py_sitedir}/gstreamer-editing-services
+%py3_ocomp $RPM_BUILD_ROOT%{py_sitedir}/gstreamer-editing-services
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -173,7 +206,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/girepository-1.0/GES-1.0.typelib
%attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstges.so
%attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstnle.so
-%if %{with python}
+%if %{with python2}
%{_libdir}/gst-validate-launcher/python/launcher/apps/geslaunch.py*
%endif
%{_datadir}/gstreamer-1.0/validate/scenarios/ges-edit-clip-while-paused.scenario
@@ -196,11 +229,18 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%{_gtkdocdir}/ges-1.0
-%if %{with python}
+%if %{with python2}
%files -n python-gstreamer-editing-services
%defattr(644,root,root,755)
-%dir %{py_sitedir}/gstreamer-editing-services
-%{py_sitedir}/gstreamer-editing-services/GES.py[co]
+# must be in %{py_sitedir} because of "..overrides" and "..importer" imports
+%{py_sitedir}/gstreamer-editing-services
+%endif
+
+%if %{with python3}
+%files -n python3-gstreamer-editing-services
+%defattr(644,root,root,755)
+# must be in %{py3_sitedir} because of "..overrides" and "..importer" imports
+%{py3_sitedir}/gstreamer-editing-services
%endif
%files -n bash-completion-gstreamer-editing-services
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gstreamer-editing-services.git/commitdiff/a36d7d7ad7d1218243f0ee62bcf3db1ec228da33
More information about the pld-cvs-commit
mailing list