Hello community, here is the log from the commit of package python3-cairo for openSUSE:Factory checked in at 2012-05-08 12:28:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-cairo (Old) and /work/SRC/openSUSE:Factory/.python3-cairo.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-cairo", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-cairo/python3-cairo.changes 2011-10-02 11:13:12.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-cairo.new/python3-cairo.changes 2012-05-08 12:28:59.000000000 +0200 @@ -1,0 +2,16 @@ +Fri May 4 09:22:29 UTC 2012 - toddrme2178@gmail.com + +- Fix rpmlint warnings +- Small spec file cleanups + +------------------------------------------------------------------- +Fri Apr 27 14:07:19 UTC 2012 - toddrme2178@gmail.com + +- Fix building on openSUSE 11.4 x86_64 + +------------------------------------------------------------------- +Thu Apr 26 15:08:01 UTC 2012 - toddrme2178@gmail.com + +- Fix building of python 3 version on openSUSE 11.4 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-cairo.spec ++++++ --- /var/tmp/diff_new_pack.n9aNys/_old 2012-05-08 12:29:00.000000000 +0200 +++ /var/tmp/diff_new_pack.n9aNys/_new 2012-05-08 12:29:00.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python3-cairo # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -15,43 +15,44 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -# We manually define those because we don't have any python3 macros yet -%define local_python3_requires Requires: python(abi) = %py3_ver - -Name: python3-cairo -%define _name pycairo +%define pyname cairo +Name: python3-%{pyname} +%define modname py%{pyname} Version: 1.10.0 Release: 1 Summary: Python Bindings for Cairo License: LGPL-3.0 Group: Development/Libraries/Python -# FIXME: on update, check if we finally have python3 macros to replace our local ones # FIXME: on update, check if we still need to manually remove the byte-code in %%install Url: http://www.cairographics.org/ -Source: %{_name}-%{version}.tar.bz2 +Source: %{modname}-%{version}.tar.bz2 BuildRequires: cairo-devel # Needed to have the modules for different hash algorithms; python3-devel only brings in python3-base BuildRequires: python3 BuildRequires: python3-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -%local_python3_requires +%if 0%{?suse_version} <= 1140 +%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} +%endif +Requires: python3 >= %{py3_ver} %description -Python bindings for cairo. +Python bindings for the Cairo vector graphics library. %package devel License: LGPL-3.0 -Summary: Headers for python-cairo +Summary: Development files for %{name} Group: Development/Libraries/Python Requires: %name = %{version} Requires: cairo-devel python3-devel %description devel -Headers for python-cairo +Development libraries and headers needed to build +software using %{name} %prep -%setup -q -n %{_name}-%{version} +%setup -q -n %{modname}-%{version} %build PYTHON=python3 python3 ./waf configure --prefix=%{_prefix} --libdir=%{_libdir} @@ -60,19 +61,19 @@ %install python3 ./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 -rm %{buildroot}%{python3_sitearch}/cairo/*.py[co] +rm %{buildroot}%{python3_sitearch}/%{pyname}/*.py[co] %clean rm -rf %{buildroot} %files %defattr(-,root,root) -%doc AUTHORS COPYING.LESSER INSTALL NEWS README -%{python3_sitearch}/cairo/ +%doc AUTHORS COPYING.LESSER NEWS README +%{python3_sitearch}/%{pyname}/ %files devel %defattr(-,root,root) -%{_includedir}/pycairo/ -%{_libdir}/pkgconfig/py3cairo.pc +%{_includedir}/%{modname}/ +%{_libdir}/pkgconfig/py3%{pyname}.pc %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org