Hello community,

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

Package is "python-cairo"

Thu Jun 22 09:52:30 2017 rev:28 rq:505614 version:1.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cairo/python-cairo.changes        
2017-06-21 13:50:09.406910304 +0200
+++ /work/SRC/openSUSE:Factory/.python-cairo.new/python-cairo.changes   
2017-06-22 09:52:33.138234802 +0200
@@ -2,21 +1,0 @@
-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:
----
  pycairo-1.13.3.tar.gz

New:
----
  py2cairo-1.10.0.tar.bz2

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

Other differences:
------------------
++++++ python-cairo.spec ++++++
--- /var/tmp/diff_new_pack.7oQGHz/_old  2017-06-22 09:52:33.638164259 +0200
+++ /var/tmp/diff_new_pack.7oQGHz/_new  2017-06-22 09:52:33.638164259 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cairo
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products 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,82 +16,61 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-cairo
-Version:        1.13.3
+Version:        1.10.0
 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
-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
+# 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}
 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:        Configuration files for %{python}-cairo
-Group:          Development/Libraries/C and C++
-Requires:       python-cairo-common-devel = %{version}
-%ifpython2
-Requires:       python-devel
-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:       %name = %{version}
 Requires:       cairo-devel
+Requires:       python-devel
+Provides:       python2-cairo-devel = %{version}
 
-%description -n %{name}-common-devel
+%description devel
 Headers for python-cairo
 
-%python_subpackages
-
 %prep
-%setup -n pycairo-%{version}
+%setup -n py2cairo-%{version}
 
 %build
-%python_build
+export CFLAGS='%{optflags}'
+./waf configure --prefix=%{_prefix} --libdir=%{_libdir}
+./waf build
 
 %install
-%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
+./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}
 
-%files %{python_files}
+%files
 %defattr(-,root,root)
-%doc COPYING COPYING-* NEWS
+%doc AUTHORS COPYING COPYING-* INSTALL NEWS README
 %{python_sitearch}/cairo/
-%{python_sitearch}/pycairo-*.egg-info
-
-%files %{python_files devel}
-%defattr(-,root,root)
-%ifpython2
-%{_libdir}/pkgconfig/pycairo.pc
-%endif
-%ifpython3
-%{_libdir}/pkgconfig/py3cairo.pc
-%endif
 
-%files -n %{name}-common-devel
+%files devel
 %defattr(-,root,root)
 %{_includedir}/pycairo/
+%{_libdir}/pkgconfig/pycairo.pc
 
 %changelog

++++++ pycairo-1.13.3.tar.gz -> py2cairo-1.10.0.tar.bz2 ++++++
++++ 78432 lines of diff (skipped)


Reply via email to