diff --git a/pygobject3.spec b/pygobject3.spec index 08a4358..2407b98 100644 --- a/pygobject3.spec +++ b/pygobject3.spec @@ -6,7 +6,7 @@ Name: pygobject3 Version: 3.34.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python bindings for GObject Introspection License: LGPLv2+ and MIT @@ -17,8 +17,6 @@ BuildRequires: cairo-gobject-devel BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} BuildRequires: meson -BuildRequires: python2-devel >= %{python2_version} -BuildRequires: python2-cairo-devel >= %{pycairo_version} BuildRequires: python3-devel >= %{python3_version} BuildRequires: python3-cairo-devel >= %{pycairo_version} @@ -31,43 +29,6 @@ BuildRequires: python3-cairo-devel >= %{pycairo_version} The %{name} package provides a convenient wrapper for the GObject library for use in Python programs. -%package -n python2-gobject -%{?python_provide:%python_provide python2-gobject} -Summary: Python 2 bindings for GObject Introspection -Requires: python2-gobject-base%{?_isa} = %{version}-%{release} -# The cairo override module depends on this -Requires: python2-cairo%{?_isa} >= %{pycairo_version} - -Obsoletes: %{name} < 3.17.90-2 -Provides: %{name} = %{version}-%{release} -Provides: %{name}%{?_isa} = %{version}-%{release} - -%description -n python2-gobject -The python-gobject package provides a convenient wrapper for the GObject -library and and other libraries that are compatible with GObject Introspection, -for use in Python 2 programs. - -%package -n python2-gobject-base -%{?python_provide:%python_provide python2-gobject-base} -Summary: Python 2 bindings for GObject Introspection base package -Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version} - -Obsoletes: %{name}-base < 3.17.90-2 -Provides: %{name}-base = %{version}-%{release} -Provides: %{name}-base%{?_isa} = %{version}-%{release} - -%description -n python2-gobject-base -This package provides the non-cairo specific bits of the GObject Introspection -library. - -%package -n python2-gobject-devel -Summary: Development files for embedding PyGObject introspection support -Requires: python2-gobject%{?_isa} = %{version}-%{release} -Requires: gobject-introspection-devel%{?_isa} - -%description -n python2-gobject-devel -This package contains files required to embed PyGObject - %package -n python3-gobject Summary: Python 3 bindings for GObject Introspection Requires: python3-gobject-base%{?_isa} = %{version}-%{release} @@ -104,42 +65,13 @@ This package contains files required to embed PyGObject %prep %autosetup -n pygobject-%{version} -p1 -rm -rf %{py3dir} -cp -a . %{py3dir} - %build -%meson -Dpython=%{__python2} -%meson_build - -pushd %{py3dir} %meson -Dpython=%{__python3} %meson_build -popd %install %meson_install -pushd %{py3dir} -%meson_install -popd - -%files -n python2-gobject -%{python2_sitearch}/gi/_gi_cairo.so - -%files -n python2-gobject-base -%license COPYING -%doc NEWS -%dir %{python2_sitearch}/gi -%{python2_sitearch}/gi/* -%exclude %{python2_sitearch}/gi/_gi_cairo.so -%{python2_sitearch}/pygtkcompat/ -%{python2_sitearch}/PyGObject-*.egg-info - -%files -n python2-gobject-devel -%dir %{_includedir}/pygobject-3.0/ -%{_includedir}/pygobject-3.0/pygobject.h -%{_libdir}/pkgconfig/pygobject-3.0.pc - %files -n python3-gobject %{python3_sitearch}/gi/_gi_cairo*.so @@ -158,6 +90,10 @@ popd %{_libdir}/pkgconfig/pygobject-3.0.pc %changelog +* Thu Jan 16 2020 Miro HronĨok - 3.34.0-4 +- Subpackages python2-gobject, python2-gobject-base, python2-gobject-devel have been removed + See https://fedoraproject.org/wiki/Changes/RetirePython2 + * Wed Sep 25 2019 Kalev Lember - 3.34.0-3 - Don't add pkgconfig provides to python2-gobject-devel