2021-02-20 15:51:25 +08:00
|
|
|
%global srcname cairocffi
|
|
|
|
|
|
|
|
|
|
Name: python-cairocffi
|
|
|
|
|
Version: 1.2.0
|
2022-05-11 14:56:55 +08:00
|
|
|
Release: 2
|
2021-02-20 15:51:25 +08:00
|
|
|
Summary: cffi-based cairo bindings for Python
|
2022-05-11 14:56:55 +08:00
|
|
|
License: BSD-3-Clause
|
2021-02-20 15:51:25 +08:00
|
|
|
URL: https://pypi.python.org/pypi/cairocffi/
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-1.2.0.tar.gz
|
|
|
|
|
Patch0: python-cairocffi-disable-flake8-isort-for-pytest.patch
|
|
|
|
|
# https://github.com/Kozea/cairocffi/pull/178
|
|
|
|
|
Patch1: python-cairocffi-fix-pdf-datestring.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-cffi >= 1.1.0
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-pytest-cov
|
|
|
|
|
BuildRequires: python3-pytest-runner
|
|
|
|
|
BuildRequires: python3-xcffib >= 0.3.2
|
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
|
# required to run the test suite
|
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
|
BuildRequires: gdk-pixbuf2
|
|
|
|
|
BuildRequires: gdk-pixbuf2-modules
|
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
|
cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of\
|
|
|
|
|
Python bindings and object-oriented API for cairo. Cairo is a 2D\
|
|
|
|
|
vector graphics library with support for multiple backends including\
|
|
|
|
|
image buffers, PNG, PostScript, PDF, and SVG file output.
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
%package -n python3-cairocffi
|
|
|
|
|
Summary: cffi-based cairo bindings for Python
|
|
|
|
|
Requires: python3-cffi
|
|
|
|
|
Requires: cairo
|
|
|
|
|
# required by cairocffi.pixbuf
|
|
|
|
|
Requires: python3-xcffib >= 0.3.2
|
|
|
|
|
# Provide the cairocffi[xcb] extras, because there is no reasonable split
|
|
|
|
|
# Be aware that %%version is not converted to the Pythonistic version here!
|
|
|
|
|
Provides: python%{python3_pkgversion}dist(cairocffi[xcb]) = %{version}
|
|
|
|
|
Provides: python%{python3_version}dist(cairocffi[xcb]) = %{version}
|
|
|
|
|
%{?python_provide:%python_provide python3-cairocffi}
|
|
|
|
|
|
|
|
|
|
%description -n python3-cairocffi %_description
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n cairocffi-%{version} -p1
|
|
|
|
|
rm -rf %{srcname}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# test_xcb.py needs a display
|
|
|
|
|
xvfb-run %{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-cairocffi
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
|
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-05-11 14:56:55 +08:00
|
|
|
* Wed May 11 2022 yangping <yangping69@h-partners> - 1.2.0-2
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
2021-02-20 15:51:25 +08:00
|
|
|
* Fri Feb 19 2021 Ge Wang<wangge20@huawei.com> - 1.2.0-1
|
|
|
|
|
- Init package
|