Accepting request 852941 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/852941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2020-12-05 19:35:07 +00:00 committed by Git OBS Bridge
commit 84454b8e65
4 changed files with 34 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c143183280feb67f5beb4e543fd49990c28e7df427301ede04fc550d3562e84
size 205196

3
pycairo-1.20.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5695a10cb7f9ae0d01f665b56602a845b0a8cb17e2123bfece10c2e58552468c
size 344370

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Thu Dec 3 10:46:14 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to 1.20.0
* Require Python 3.6+ #pr-201
* Require cairo 1.15.10+ #pr-204
* docs: support Sphinx 3.0 #pr-207
* meson: add tests option to skip tests #pr-188
* Windows: build wheels #pr-197
* Add support for Python 3.9 and 3.10 #pr-198 #pr-202
* examples: add a Jupyter Notebook example #pr-181
* Raise an error early when being passed a file object not opened
in binary mode #pr-205
* Add a pyproject.toml file #pr-206
- move header file in sitearch to devel package (rpmlint error)
header is packaged twice: gh#pygobject/pycairo#98
-------------------------------------------------------------------
Wed Dec 2 22:46:52 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Move the pkgconfig file to the common package
gh#openSUSE/python-rpm-macros#66
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 16 09:47:12 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Mon Mar 16 09:47:12 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -20,7 +20,7 @@
%define skip_python2 1 %define skip_python2 1
%define oldpython python %define oldpython python
Name: python-pycairo Name: python-pycairo
Version: 1.19.1 Version: 1.20.0
Release: 0 Release: 0
Summary: Python Bindings for Cairo Summary: Python Bindings for Cairo
License: LGPL-2.1-or-later OR MPL-1.1 License: LGPL-2.1-or-later OR MPL-1.1
@ -29,7 +29,7 @@ Source: https://github.com/pygobject/pycairo/releases/download/v%{versio
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: cairo-devel >= 1.13.1 BuildRequires: cairo-devel >= 1.15.10
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Provides: python-cairo = %{version} Provides: python-cairo = %{version}
Obsoletes: python-cairo < %{version} Obsoletes: python-cairo < %{version}
@ -50,7 +50,7 @@ Obsoletes: python-cairo-devel < %{version}
Pycairo is a Python module providing bindings for the cairo graphics library. Pycairo is a Python module providing bindings for the cairo graphics library.
This package provides the development files needed to build This package provides the development files needed to build
packages that depen on Pycairo. packages that depend on Pycairo.
%package -n python-pycairo-common-devel %package -n python-pycairo-common-devel
Summary: Headers for the Cairo Python bindings Summary: Headers for the Cairo Python bindings
@ -65,7 +65,7 @@ Obsoletes: python-cairo-common-devel < %{version}
Pycairo is a Python module providing bindings for the cairo graphics library. Pycairo is a Python module providing bindings for the cairo graphics library.
This package provides the headers and development files needed to build This package provides the headers and development files needed to build
packages that depen on Pycairo. packages that depend on Pycairo.
%prep %prep
%setup -q -n pycairo-%{version} %setup -q -n pycairo-%{version}
@ -77,22 +77,23 @@ packages that depen on Pycairo.
%python_install %python_install
%check %check
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest
%python_exec setup.py test %python_exec setup.py test
%files %{python_files} %files %{python_files}
%doc NEWS docs %doc NEWS docs
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 %license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
%{python_sitearch}/cairo/ %{python_sitearch}/cairo/
%exclude %{python_sitearch}/cairo/include
%{python_sitearch}/pycairo-*.egg-info %{python_sitearch}/pycairo-*.egg-info
%files %{python_files devel} %files %{python_files devel}
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 %license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
%ifpython3 %{python_sitearch}/cairo/include
%{_libdir}/pkgconfig/py3cairo.pc
%endif
%files -n python-pycairo-common-devel %files -n python-pycairo-common-devel
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 %license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
%{_includedir}/pycairo/ %{_includedir}/pycairo/
%{_libdir}/pkgconfig/py3cairo.pc
%changelog %changelog