Hello community,

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

Package is "python-cairo"

Wed Sep 13 21:38:52 2017 rev:29 rq:519180 version:1.15.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cairo/python-cairo.changes        
2017-06-22 09:52:33.138234802 +0200
+++ /work/SRC/openSUSE:Factory/.python-cairo.new/python-cairo.changes   
2017-09-13 21:38:53.569950241 +0200
@@ -1,0 +2,81 @@
+Thu Aug 24 17:51:35 UTC 2017 - zai...@opensuse.org
+
+- Update to version 1.15.1:
+  + Fixes:
+    - Improved support for Python filesystem paths including
+      os.PathLike. See pathlike for details.
+    - Various minor fixes.
+  + Changes: Expose cairo.Path.
+  + Tests: Improved test coverage from ~70% to ~90%.
+- Changes from version 1.15.0:
+  + New Features:
+    - Add Surface.map_to_image() and Surface.unmap_image().
+    - Add RasterSourcePattern.
+    - Add Glyph.
+    - Add Rectangle.
+    - Add TextCluster.
+    - Add ScaledFont.text_to_glyphs() and
+      ScaledFont.glyph_extents().
+    - Add Context.show_text_glyphs().
+    - Add TextExtents.
+  + Changes:
+    - Pycairo instances wrapping the same underlying cairo object
+      now hash and compare equally e.g. context.get_target() ==
+      context.get_target().
+    - Functions which returned a cairo error with Status.NO_MEMORY
+      no longer raise MemoryError, but a subclass of Error and
+      MemoryError. Similarly errors with Status.READ_ERROR and
+      Status.WRITE_ERROR no longer raise IOError, but a subclass of
+      Error and IOError.
+    - Some functions which previously returned a tuple now return a
+      tuple subclass like Rectangle, Glyph, TextCluster and
+      TextExtents.
+- Changes from version 1.14.1:
+  + Fixes: Fix a crash with Surface.get_device().
+- Changes from version 1.14.0:
+  + General: Requires at least cairo 1.13.1.
+  + Tests: Optional Hypothesis tests.
+  + New Features:
+    - Add Surface.set_device_scale() and
+      Surface.get_device_scale().
+    - Add Device.
+    - Add Surface.get_device().
+    - Add ScriptDevice and ScriptMode.
+    - Add ScriptSurface.
+    - Add Status.JBIG2_GLOBAL_MISSING.
+    - Add Format.stride_for_width().
+    - Add TextClusterFlags and SurfaceObserverMode.
+    - Add Gradient.get_color_stops_rgba().
+    - Add TeeSurface.
+    - Add MeshPattern.
+- Changes from version 1.13.4:
+  + Fixes: Fix a rare crash with get_data() under Python 3 (1.13.3
+    regression).
+
+-------------------------------------------------------------------
+Fri Jun 23 18:12:06 UTC 2017 - jmate...@suse.com
+
+- fix requires for devel subpackage
+
+-------------------------------------------------------------------
+Sun Jun 18 13:11:04 UTC 2017 - dims...@opensuse.org
+
+- 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.15.1.tar.gz

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

Other differences:
------------------
++++++ python-cairo.spec ++++++
--- /var/tmp/diff_new_pack.dYzq3K/_old  2017-09-13 21:38:54.101875399 +0200
+++ /var/tmp/diff_new_pack.dYzq3K/_new  2017-09-13 21:38:54.105874837 +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,76 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-cairo
-Version:        1.10.0
+Version:        1.15.1
 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 = %{version}
+Requires:       python-cairo-common-devel = %{version}
 Requires:       python-devel
-Provides:       python2-cairo-devel = %{version}
 
 %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