Hello community,

here is the log from the commit of package python-cairo for openSUSE:Factory 
checked in at 2017-06-21 13:50:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cairo (Old)
 and      /work/SRC/openSUSE:Factory/.python-cairo.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cairo"

Wed Jun 21 13:50:09 2017 rev:27 rq:504478 version:1.13.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cairo/python-cairo.changes        
2017-03-05 17:51:59.285860677 +0100
+++ /work/SRC/openSUSE:Factory/.python-cairo.new/python-cairo.changes   
2017-06-21 13:50:09.406910304 +0200
@@ -1,0 +2,21 @@
+Sun Jun 18 13:11:04 UTC 2017 - [email protected]
+
+- Update to version 1.13.3:
+  + Fix ImageSurface leaking in case
+    :meth:`get_data() <ImageSurface.get_data>` is used under
+    Python 3 (gh#pygobject/pycairo#43).
+- Changes from version 1.13.2:
+  + Fix pip failing to install pycairo in some cases
+    (gh#pygobject/pycairo#39).
+- Changes from version 1.13.1:
+  + setup.py install: Fix generated pkg-config file if ``--home``
+    or ``--user`` is specified (gh#pygobject/pycairo#34).
+  + Fix a build error on macOS Sierra (gh#pygobject/pycairo#36)
+  + examples: Fix snippet examples when .pyc files are present
+    (gh#pygobject/pycairo#35).
+- For more changes since the last package update, see NEWS inside.
+- Implement python single-spec packaging: since pycairo 1.11.0, the
+  sources for python2 and python3 based bindings have been merged
+  again.
+
+-------------------------------------------------------------------

Old:
----
  py2cairo-1.10.0.tar.bz2

New:
----
  pycairo-1.13.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cairo.spec ++++++
--- /var/tmp/diff_new_pack.cm22N8/_old  2017-06-21 13:50:10.282786752 +0200
+++ /var/tmp/diff_new_pack.cm22N8/_new  2017-06-21 13:50:10.286786187 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cairo
 #
-# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,61 +16,82 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-cairo
-Version:        1.10.0
+Version:        1.13.3
 Release:        0
 Summary:        Python Bindings for Cairo
+# FIXME: on update, check if we still need to manually compile the byte-code 
in %%install
 License:        LGPL-2.1+ or MPL-1.1
 Group:          Development/Libraries/Python
-# FIXME: on update, check if we still need to manually compile the byte-code 
in %%install
-Url:            http://www.cairographics.org/
-Source:         
http://www.cairographics.org/releases/py2cairo-%{version}.tar.bz2
-BuildRequires:  cairo-devel
-BuildRequires:  fdupes
-BuildRequires:  python-devel
-Provides:       python2-cairo = %{version}
+Url:            http://www.cairographics.org/pycairo
+Source:         
https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  cairo-devel >= 1.12.0
+BuildRequires:  python-rpm-macros
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%endif
 
 %description
 Python bindings for cairo.
 
 %package devel
-Summary:        Headers for python-cairo
+Summary:        Configuration files for %{python}-cairo
 Group:          Development/Libraries/C and C++
-Requires:       %name = %{version}
-Requires:       cairo-devel
+Requires:       python-cairo-common-devel = %{version}
+%ifpython2
 Requires:       python-devel
-Provides:       python2-cairo-devel = %{version}
+Requires:       python2-cairo = %{version}}
+%endif
+%ifpython3
+Requires:       python3-cairo = %{version}}
+Requires:       python3-devel
+%endif
 
 %description devel
 Headers for python-cairo
 
+%package -n %{name}-common-devel
+Summary:        Headers for python-cairo
+Group:          Development/Libraries/C and C++
+Provides:       %{python_module cairo-common-devel = %{version}}
+Requires:       cairo-devel
+
+%description -n %{name}-common-devel
+Headers for python-cairo
+
+%python_subpackages
+
 %prep
-%setup -n py2cairo-%{version}
+%setup -n pycairo-%{version}
 
 %build
-export CFLAGS='%{optflags}'
-./waf configure --prefix=%{_prefix} --libdir=%{_libdir}
-./waf build
+%python_build
 
 %install
-./waf install --destdir=%{buildroot}
-# waf is broken and generated byte-code that references the build root, see 
http://code.google.com/p/waf/issues/detail?id=986
-%py_compile %{buildroot}/%{py_sitedir}
-%py_compile -O %{buildroot}/%{py_sitedir}
-%fdupes %{buildroot}/%{py_sitedir}
+%python_install
+# pkgconfig files belong to %{_libdir}, not %{_prefix}/lib
+%if "%{_lib}" == "lib64"
+mkdir %{buildroot}%{_libdir}/pkgconfig
+mv %{buildroot}%{_prefix}/lib/pkgconfig/*.pc %{buildroot}%{_libdir}/pkgconfig/
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
-%doc AUTHORS COPYING COPYING-* INSTALL NEWS README
+%doc COPYING COPYING-* NEWS
 %{python_sitearch}/cairo/
+%{python_sitearch}/pycairo-*.egg-info
 
-%files devel
+%files %{python_files devel}
 %defattr(-,root,root)
-%{_includedir}/pycairo/
+%ifpython2
 %{_libdir}/pkgconfig/pycairo.pc
+%endif
+%ifpython3
+%{_libdir}/pkgconfig/py3cairo.pc
+%endif
+
+%files -n %{name}-common-devel
+%defattr(-,root,root)
+%{_includedir}/pycairo/
 
 %changelog


Reply via email to