[packages/python3-pygobject3] - python-pygobject3.spec updated to 3.38.0 (now python 3.5+ only) - keep common-devel subpackage usa

qboosh qboosh at pld-linux.org
Thu Sep 17 21:45:55 CEST 2020


commit 8b2292b903ad5ae323264a17d31b75464f080641
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 17 21:48:40 2020 +0200

    - python-pygobject3.spec updated to 3.38.0 (now python 3.5+ only)
    - keep common-devel subpackage usable also for older python-pygobject3-devel package

 python-pygobject3.spec => python3-pygobject3.spec | 159 ++++++----------------
 1 file changed, 40 insertions(+), 119 deletions(-)
---
diff --git a/python-pygobject3.spec b/python3-pygobject3.spec
similarity index 60%
rename from python-pygobject3.spec
rename to python3-pygobject3.spec
index 0c58a08..58d8068 100644
--- a/python-pygobject3.spec
+++ b/python3-pygobject3.spec
@@ -1,39 +1,24 @@
 #
 # Conditional build:
-%bcond_without	python2		# Python 2.x module
-%bcond_without	python3		# Python 3.x module
 %bcond_without	doc		# Sphinx documentation
 %bcond_with	tests		# unit tests (require DISPLAY)
 
 %define		module	pygobject
-Summary:	Python bindings for GObject library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki GObject
-Name:		python-pygobject3
-Version:	3.36.1
+Summary:	Python 3 bindings for GObject library
+Summary(pl.UTF-8):	Wiązania Pythona 3 do biblioteki GObject
+Name:		python3-pygobject3
+Version:	3.38.0
 Release:	1
 License:	LGPL v2+
 Group:		Libraries/Python
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.36/%{module}-%{version}.tar.xz
-# Source0-md5:	ebfebc4533856572281add29f08412bf
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.38/%{module}-%{version}.tar.xz
+# Source0-md5:	2ad8d8f10d1f12a8c66d8179659d5eb9
 URL:		https://wiki.gnome.org/Projects/PyGObject
 BuildRequires:	cairo-gobject-devel
 BuildRequires:	glib2-devel >= 1:2.48.0
 BuildRequires:	gobject-introspection-devel >= 1.46.0
 BuildRequires:	libffi-devel >= 3.0
 BuildRequires:	pkgconfig
-BuildRequires:	rpm-pythonprov
-%{?with_doc:BuildRequires:	sphinx-pdg}
-BuildRequires:	tar >= 1:1.22
-BuildRequires:	xz
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-pycairo-devel >= 1.11.1
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
 BuildRequires:	python3 >= 1:3.5
 BuildRequires:	python3-devel >= 1:3.5
 BuildRequires:	python3-modules >= 1:3.5
@@ -42,92 +27,64 @@ BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-pytest
 %endif
-%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%{?with_doc:BuildRequires:	sphinx-pdg}
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
 Requires:	glib2 >= 1:2.48.0
 Requires:	gobject-introspection >= 1.46.0
 Requires:	python-modules >= 1:2.7
-Conflicts:	python-pygobject < 2.28.6-3
+Conflicts:	python3-pygobject < 2.28.6-3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Python bindings for GObject library.
+Python 3 bindings for GObject library.
 
 %description -l pl.UTF-8
-Wiązania Pythona do biblioteki GObject.
-
-%package common-devel
-Summary:	Python bindings for GObject library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki GObject
-Group:		Development/Languages/Python
-Requires:	%{name} = %{version}-%{release}
-Requires:	glib2-devel >= 1:2.48.0
-Requires:	libffi-devel >= 3.0
-
-%description common-devel
-This package contains headers files required to build wrappers for
-GObject addon libraries so that they interoperate with Python
-bindings.
-
-%description common-devel -l pl.UTF-8
-Pakiet zawiera pliki nagłówkowe wymagane do zbudowania funkcji do
-biblioteki GObject, tak by mogły te biblioteki kooperowaći z
-wiązaniami Pythona.
+Wiązania Pythona 3 do biblioteki GObject.
 
 %package devel
-Summary:	Python 2 bindings for GObject library - development metapackage
-Summary(pl.UTF-8):	Wiązania Pythona 2 do biblioteki GObject - metapakiet programistyczny
+Summary:	Python 3 bindings for GObject library - development metapackage
+Summary(pl.UTF-8):	Wiązania Pythona 3 do biblioteki GObject - metapakiet programistyczny
 Group:		Development/Languages/Python
 Requires:	%{name} = %{version}-%{release}
-Requires:	%{name}-common-devel = %{version}-%{release}
+Requires:	python-pygobject3-common-devel = %{version}-%{release}
 Requires:	glib2-devel >= 1:2.48.0
 Requires:	libffi-devel >= 3.0
-Requires:	python-devel >= 1:2.7
+Requires:	python3-devel >= 1:3.5
 
 %description devel
 This metapackage gathers files required to develop GObject bindings
-for Python 2.
+for Python 3.
 
 %description devel -l pl.UTF-8
 Ten metapakiet gromadzi pliki wymagane do tworzenia wiązań biblioteki
-GObject dla Pythona 2.
-
-%package -n python3-pygobject3
-Summary:	Python 3.x bindings for GObject library
-Summary(pl.UTF-8):	Wiązania Pythona 3.x do biblioteki GObject
-Group:		Libraries/Python
-Requires:	glib2 >= 1:2.48.0
-Requires:	gobject-introspection >= 1.46.0
-Conflicts:	python3-pygobject < 2.28.6-3
-
-%description -n python3-pygobject3
-Python 3.x bindings for GObject library.
-
-%description -n python3-pygobject3 -l pl.UTF-8
-Wiązania Pythona 3.x do biblioteki GObject.
+GObject dla Pythona 3.
 
-%package -n python3-pygobject3-devel
-Summary:	Python 3 bindings for GObject library - development metapackage
-Summary(pl.UTF-8):	Wiązania Pythona 3 do biblioteki GObject - metapakiet programistyczny
+%package -n python-pygobject3-common-devel
+Summary:	Python bindings for GObject library
+Summary(pl.UTF-8):	Wiązania Pythona do biblioteki GObject
 Group:		Development/Languages/Python
-Requires:	%{name}-common-devel = %{version}-%{release}
+Requires:	%{name} = %{version}-%{release}
 Requires:	glib2-devel >= 1:2.48.0
 Requires:	libffi-devel >= 3.0
-Requires:	python3-devel >= 1:3.5
-Requires:	python3-pygobject3 = %{version}-%{release}
 
-%description -n python3-pygobject3-devel
-This metapackage gathers files required to develop GObject bindings
-for Python 3.
+%description -n python-pygobject3-common-devel
+This package contains headers files required to build wrappers for
+GObject addon libraries so that they interoperate with Python
+bindings.
 
-%description -n python3-pygobject3-devel -l pl.UTF-8
-Ten metapakiet gromadzi pliki wymagane do tworzenia wiązań biblioteki
-GObject dla Pythona 3.
+%description -n python-pygobject3-common-devel -l pl.UTF-8
+Pakiet zawiera pliki nagłówkowe wymagane do zbudowania funkcji do
+biblioteki GObject, tak by mogły te biblioteki kooperowaći z
+wiązaniami Pythona.
 
 %package apidocs
 Summary:	API documentation for Python GObject library
 Summary(pl.UTF-8):	Dokumentacja biblioteki Pythona GObject
 Group:		Documentation
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
 BuildArch:	noarch
 %endif
 
@@ -142,7 +99,7 @@ Summary:	Example programs for GObject library
 Summary(pl.UTF-8):	Programy przykładowe dla biblioteki GObject
 Group:		Development/Languages/Python
 Requires:	%{name}-devel = %{version}-%{release}
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
 BuildArch:	noarch
 %endif
 
@@ -158,13 +115,7 @@ Ten pakiet zawiera przykładowe programy dla biblioteki GObject.
 %{__sed} -i -e '1s|#!/usr/bin/env python$|#!%{__python}|'  examples/cairo-demo.py
 
 %build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
 %py3_build %{?with_tests:test}
-%endif
 
 %if %{with doc}
 %{__make} -C docs
@@ -174,50 +125,16 @@ Ten pakiet zawiera przykładowe programy dla biblioteki GObject.
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 cp -a examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc NEWS README.rst
-%dir %{py_sitedir}/gi
-%attr(755,root,root) %{py_sitedir}/gi/_gi.so
-%attr(755,root,root) %{py_sitedir}/gi/_gi_cairo.so
-%{py_sitedir}/gi/*.py[co]
-%dir %{py_sitedir}/gi/overrides
-%{py_sitedir}/gi/overrides/*.py[co]
-%dir %{py_sitedir}/gi/repository
-%{py_sitedir}/gi/repository/*.py[co]
-%dir %{py_sitedir}/pygtkcompat
-%{py_sitedir}/pygtkcompat/*.py[co]
-%{py_sitedir}/PyGObject-%{version}-py*.egg-info
-
-%files common-devel
-%defattr(644,root,root,755)
-%{_includedir}/pygobject-3.0
-%{_pkgconfigdir}/pygobject-3.0.pc
-
-%files devel
-%defattr(644,root,root,755)
-%endif
-
-%if %{with python3}
-%files -n python3-pygobject3
-%defattr(644,root,root,755)
-%doc NEWS README.rst
 %dir %{py3_sitedir}/gi
 %attr(755,root,root) %{py3_sitedir}/gi/_gi.cpython*.so
 %attr(755,root,root) %{py3_sitedir}/gi/_gi_cairo.cpython*.so
@@ -234,9 +151,13 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitedir}/pygtkcompat/__pycache__
 %{py3_sitedir}/PyGObject-%{version}-py*.egg-info
 
-%files -n python3-pygobject3-devel
+%files devel
+%defattr(644,root,root,755)
+
+%files -n python-pygobject3-common-devel
 %defattr(644,root,root,755)
-%endif
+%{_includedir}/pygobject-3.0
+%{_pkgconfigdir}/pygobject-3.0.pc
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pygobject3.git/commitdiff/8b2292b903ad5ae323264a17d31b75464f080641



More information about the pld-cvs-commit mailing list