From bf1c670f262c881e1daedf3a55f4f3ab3da3d24bbf59387974dc962c490fb4fd Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 12 Apr 2017 17:45:02 +0000 Subject: [PATCH] Accepting request 487673 from devel:languages:python:singlespec 1 OBS-URL: https://build.opensuse.org/request/show/487673 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cairocffi?expand=0&rev=17 --- cairocffi-0.7.2.tar.gz | 3 --- cairocffi-0.8.0.tar.gz | 3 +++ python-cairocffi.changes | 17 +++++++++++++++++ python-cairocffi.spec | 33 ++++++++++++++++++++------------- 4 files changed, 40 insertions(+), 16 deletions(-) delete mode 100644 cairocffi-0.7.2.tar.gz create mode 100644 cairocffi-0.8.0.tar.gz diff --git a/cairocffi-0.7.2.tar.gz b/cairocffi-0.7.2.tar.gz deleted file mode 100644 index f62d9ef..0000000 --- a/cairocffi-0.7.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e42b4256d27bd960cbf3b91a6c55d602defcdbc2a73f7317849c80279feeb975 -size 75337 diff --git a/cairocffi-0.8.0.tar.gz b/cairocffi-0.8.0.tar.gz new file mode 100644 index 0000000..c53d614 --- /dev/null +++ b/cairocffi-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65f21e6786e2b255ab1d3fda53a365a3565bb1808cabbbe59d99a797c61d3545 +size 79217 diff --git a/python-cairocffi.changes b/python-cairocffi.changes index c56ead7..34bc7bb 100644 --- a/python-cairocffi.changes +++ b/python-cairocffi.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Wed Apr 12 17:44:02 UTC 2017 - toddrme2178@gmail.com + +- Update to version 0.8.0 + * Follow semver + * Avoid implicit relative import + * Use utf-8 instead of utf8 in headers + * Keep cairo library loaded until all relevant objects are freed + * Add cairo_quartz_* functions for MacOS + * Use the default ReadTheDocs theme + * Fix implicit casts + +------------------------------------------------------------------- +Fri Oct 14 14:12:05 UTC 2016 - jmatejek@suse.com + +- update for multipython build + ------------------------------------------------------------------- Mon Feb 1 11:08:43 UTC 2016 - toddrme2178@gmail.com diff --git a/python-cairocffi.spec b/python-cairocffi.spec index cc59a7f..ba41202 100644 --- a/python-cairocffi.spec +++ b/python-cairocffi.spec @@ -1,7 +1,7 @@ # # spec file for package python-cairocffi # -# Copyright (c) 2016 SUSE LINUX 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,27 +16,26 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cairocffi -Version: 0.7.2 +Version: 0.8.0 Release: 0 Summary: Python cairo bindings based on cffi License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/SimonSapin/cairocffi Source: https://pypi.python.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz +BuildRequires: %{python_module cffi >= 0.6} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: cairo BuildRequires: gdk-pixbuf -BuildRequires: python-cffi >= 0.6 -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros Requires: cairo Requires: python-cffi >= 0.6 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description cairocffi is a CFFI-based drop-in replacement for Pycairo, @@ -62,22 +61,30 @@ This package provides the optional gdk-pixbuf image loader module. %setup -q -n cairocffi-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %python_files %defattr(-,root,root,-) %doc LICENSE CHANGES README.rst %{python_sitelib}/cairocffi-%{version}-py*.egg-info %{python_sitelib}/cairocffi/ %exclude %{python_sitelib}/cairocffi/test_pixbuf.py* %exclude %{python_sitelib}/cairocffi/pixbuf.py* +%ifpycache +%exclude %{python_sitelib}/cairocffi/__pycache__/test_pixbuf.* +%exclude %{python_sitelib}/cairocffi/__pycache__/pixbuf.* +%endif -%files pixbuf +%files %{python_files pixbuf} %defattr(-,root,root,-) %{python_sitelib}/cairocffi/pixbuf.py* %{python_sitelib}/cairocffi/test_pixbuf.py* +%ifpycache +%{python_sitelib}/cairocffi/__pycache__/test_pixbuf.* +%{python_sitelib}/cairocffi/__pycache__/pixbuf.* +%endif %changelog