diff --git a/python-gobject.changes b/python-gobject.changes index b58152b..26ff0dc 100644 --- a/python-gobject.changes +++ b/python-gobject.changes @@ -1,9 +1,8 @@ ------------------------------------------------------------------- Wed Mar 15 19:38:20 UTC 2017 - toddrme2178@gmail.com -- Provide python2- versions of packages to ease transition to - new python single-spec macros. More comprehensive changes will - come after GNOME 3.24. +- Provide python2- versions of packages to ease transition to + python single-spec macros. ------------------------------------------------------------------- Mon Feb 27 13:28:08 UTC 2017 - dimstar@opensuse.org diff --git a/python-gobject.spec b/python-gobject.spec index 38629fe..7efa459 100644 --- a/python-gobject.spec +++ b/python-gobject.spec @@ -64,7 +64,9 @@ BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-gobject) # Trigger an automatic installation of python(3)?-gobject when python and libgirepository are installed. Supplements: packageand(%{local_py_pkg}:libgirepository-1_0-1) +%if local_py_suffix = 2 Provides: python2-gobject = %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{local_py_requires} @@ -77,7 +79,9 @@ Summary: Python bindings for GObject -- Gdk bindings Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: %{name}-cairo = %{version} +%if local_py_suffix = 2 Provides: python2-gobject-Gdk = %{version} +%endif %define gdk_real_package %(rpm -q --qf '%%{NAME}' -f $(readlink /usr/lib64/libgdk-3.so -f)) Supplements: packageand(%{name}:%{gdk_real_package}) @@ -91,7 +95,9 @@ This package contains the Python Gdk bindings for GObject. Summary: Python bindings for GObject -- Cairo bindings Group: Development/Libraries/Python Requires: %{name} = %{version} +%if local_py_suffix = 2 Provides: python2-gobject-cairo = %{version} +%endif %define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo) Supplements: packageand(%{name}:%{cairo_real_package}) @@ -112,8 +118,8 @@ Requires: python3-gobject = %{version} # python3-gobject-devel package is no longer being built. In order to ease upgrades # and remove the obsolete package, we obsolete/provide it here. Obsoletes: python3-gobject-devel < 3.11.5 -Provides: python3-gobject-devel = %{version} Provides: python2-gobject-devel = %{version} +Provides: python3-gobject-devel = %{version} %description devel This package contains files required to build wrappers for gobject diff --git a/python3-gobject.changes b/python3-gobject.changes index 192bd23..26ff0dc 100644 --- a/python3-gobject.changes +++ b/python3-gobject.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 15 19:38:20 UTC 2017 - toddrme2178@gmail.com + +- Provide python2- versions of packages to ease transition to + python single-spec macros. + ------------------------------------------------------------------- Mon Feb 27 13:28:08 UTC 2017 - dimstar@opensuse.org diff --git a/python3-gobject.spec b/python3-gobject.spec index 2c7236e..a374132 100644 --- a/python3-gobject.spec +++ b/python3-gobject.spec @@ -64,6 +64,9 @@ BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-gobject) # Trigger an automatic installation of python(3)?-gobject when python and libgirepository are installed. Supplements: packageand(%{local_py_pkg}:libgirepository-1_0-1) +%if local_py_suffix = 2 +Provides: python2-gobject = %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{local_py_requires} @@ -76,6 +79,9 @@ Summary: Python bindings for GObject -- Gdk bindings Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: %{name}-cairo = %{version} +%if local_py_suffix = 2 +Provides: python2-gobject-Gdk = %{version} +%endif %define gdk_real_package %(rpm -q --qf '%%{NAME}' -f $(readlink /usr/lib64/libgdk-3.so -f)) Supplements: packageand(%{name}:%{gdk_real_package}) @@ -89,6 +95,9 @@ This package contains the Python Gdk bindings for GObject. Summary: Python bindings for GObject -- Cairo bindings Group: Development/Libraries/Python Requires: %{name} = %{version} +%if local_py_suffix = 2 +Provides: python2-gobject-cairo = %{version} +%endif %define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo) Supplements: packageand(%{name}:%{cairo_real_package}) @@ -109,6 +118,7 @@ Requires: python3-gobject = %{version} # python3-gobject-devel package is no longer being built. In order to ease upgrades # and remove the obsolete package, we obsolete/provide it here. Obsoletes: python3-gobject-devel < 3.11.5 +Provides: python2-gobject-devel = %{version} Provides: python3-gobject-devel = %{version} %description devel