diff --git a/python-gobject2.changes b/python-gobject2.changes index 178ec39..1693f85 100644 --- a/python-gobject2.changes +++ b/python-gobject2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 23 08:35:35 UTC 2018 - dimstar@opensuse.org + +- Use python_sitearch instead of deprecated py_sitedir. + ------------------------------------------------------------------- Wed Dec 13 13:34:36 UTC 2017 - dimstar@opensuse.org diff --git a/python-gobject2.spec b/python-gobject2.spec index 58f7b0d..4cc46db 100644 --- a/python-gobject2.spec +++ b/python-gobject2.spec @@ -1,7 +1,7 @@ # # spec file for package python-gobject2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,27 +17,26 @@ %define build_for_python3 0 - %if %{build_for_python3} %define local_py_requires Requires: python(abi) = %{py3_ver} %define local_py_sitedir %{python3_sitearch} %else %define local_py_requires %{py_requires} -%define local_py_sitedir %{py_sitedir} +%define local_py_sitedir %{python_sitearch} %endif - -Name: python-gobject2 %define _name pygobject -Summary: Python bindings for GObject -License: LGPL-2.1+ -Group: Development/Libraries/Python +Name: python-gobject2 Version: 2.28.7 Release: 0 -Url: http://ftp.gnome.org/pub/GNOME/sources/pygobject/ +Summary: Python bindings for GObject +License: LGPL-2.1-or-later +Group: Development/Libraries/Python +URL: http://ftp.gnome.org/pub/GNOME/sources/pygobject/ Source: http://download.gnome.org/sources/pygobject/2.28/%{_name}-%{version}.tar.xz BuildRequires: fdupes BuildRequires: glib2-devel BuildRequires: libffi-devel +%{local_py_requires} %if %{build_for_python3} BuildRequires: python3-cairo-devel BuildRequires: python3-devel @@ -46,18 +45,16 @@ BuildRequires: python-cairo-devel BuildRequires: python-devel Provides: python2-gobject2 = %{version} %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{local_py_requires} %description Pygobjects is an extension module for python that gives you access to GLib's GObjects. %package cairo +%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo) Summary: Python bindings for GObject -- Cairo bindings Group: Development/Libraries/Python Requires: %{name} = %{version} -%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo) Supplements: packageand(%{name}:%{cairo_real_package}) %description cairo @@ -91,7 +88,7 @@ addon libraries such as pygtk. export PYTHON=python3 %endif %configure --disable-static --disable-introspection -make %{?jobs:-j%jobs} V=1 +make %{?_smp_mflags} V=1 %install %makeinstall @@ -99,9 +96,6 @@ find %{buildroot} -name '*.la' -delete -print rm examples/Makefile* %fdupes %{buildroot} -%clean -rm -rf %{buildroot} - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig diff --git a/python3-gobject2.changes b/python3-gobject2.changes index 178ec39..1693f85 100644 --- a/python3-gobject2.changes +++ b/python3-gobject2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 23 08:35:35 UTC 2018 - dimstar@opensuse.org + +- Use python_sitearch instead of deprecated py_sitedir. + ------------------------------------------------------------------- Wed Dec 13 13:34:36 UTC 2017 - dimstar@opensuse.org diff --git a/python3-gobject2.spec b/python3-gobject2.spec index 295a40f..ff3b223 100644 --- a/python3-gobject2.spec +++ b/python3-gobject2.spec @@ -1,7 +1,7 @@ # # spec file for package python3-gobject2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,27 +17,26 @@ %define build_for_python3 1 - %if %{build_for_python3} %define local_py_requires Requires: python(abi) = %{py3_ver} %define local_py_sitedir %{python3_sitearch} %else %define local_py_requires %{py_requires} -%define local_py_sitedir %{py_sitedir} +%define local_py_sitedir %{python_sitearch} %endif - -Name: python3-gobject2 %define _name pygobject -Summary: Python bindings for GObject -License: LGPL-2.1+ -Group: Development/Libraries/Python +Name: python3-gobject2 Version: 2.28.7 Release: 0 -Url: http://ftp.gnome.org/pub/GNOME/sources/pygobject/ +Summary: Python bindings for GObject +License: LGPL-2.1-or-later +Group: Development/Libraries/Python +URL: http://ftp.gnome.org/pub/GNOME/sources/pygobject/ Source: http://download.gnome.org/sources/pygobject/2.28/%{_name}-%{version}.tar.xz BuildRequires: fdupes BuildRequires: glib2-devel BuildRequires: libffi-devel +%{local_py_requires} %if %{build_for_python3} BuildRequires: python3-cairo-devel BuildRequires: python3-devel @@ -46,18 +45,16 @@ BuildRequires: python-cairo-devel BuildRequires: python-devel Provides: python2-gobject2 = %{version} %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{local_py_requires} %description Pygobjects is an extension module for python that gives you access to GLib's GObjects. %package cairo +%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo) Summary: Python bindings for GObject -- Cairo bindings Group: Development/Libraries/Python Requires: %{name} = %{version} -%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo) Supplements: packageand(%{name}:%{cairo_real_package}) %description cairo @@ -91,7 +88,7 @@ addon libraries such as pygtk. export PYTHON=python3 %endif %configure --disable-static --disable-introspection -make %{?jobs:-j%jobs} V=1 +make %{?_smp_mflags} V=1 %install %makeinstall @@ -99,9 +96,6 @@ find %{buildroot} -name '*.la' -delete -print rm examples/Makefile* %fdupes %{buildroot} -%clean -rm -rf %{buildroot} - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig