2023-04-12 15:41:52 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-cairocffi
|
2023-04-25 14:14:33 +08:00
|
|
|
Version: 1.5.1
|
2023-04-12 15:41:52 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: cffi-based cairo bindings for Python
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://pypi.python.org/pypi/cairocffi/
|
2023-04-25 14:14:33 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/9f/d1/b26207d3a93dbdbee3b1492d59668f88953e9f28b74853e376a7a4f04e83/cairocffi-1.5.1.tar.gz
|
2023-04-12 15:41:52 +08:00
|
|
|
BuildArch: noarch
|
2021-02-20 15:51:25 +08:00
|
|
|
|
|
|
|
|
%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
|
2023-04-12 15:41:52 +08:00
|
|
|
Summary: cffi-based cairo bindings for Python
|
|
|
|
|
Provides: python-cairocffi = %{version}-%{release}
|
|
|
|
|
Provides: python%{python3_pkgversion}dist(cairocffi[xcb]) = %{version}
|
|
|
|
|
Provides: python%{python3_version}dist(cairocffi[xcb]) = %{version}
|
|
|
|
|
%{?python_provide:%python_provide python3-cairocffi}
|
2021-02-20 15:51:25 +08:00
|
|
|
Requires: python3-cffi
|
|
|
|
|
Requires: cairo
|
|
|
|
|
# required by cairocffi.pixbuf
|
|
|
|
|
Requires: python3-xcffib >= 0.3.2
|
2023-04-12 15:41:52 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-cffi
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-pytest-cov
|
|
|
|
|
BuildRequires: python3-pytest-runner
|
|
|
|
|
BuildRequires: python3-xcffib
|
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
|
BuildRequires: gdk-pixbuf2
|
|
|
|
|
BuildRequires: gdk-pixbuf2-modules
|
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
2023-04-25 14:14:33 +08:00
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
2023-04-12 15:41:52 +08:00
|
|
|
%description -n python3-cairocffi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Development documents and examples for cairocffi
|
|
|
|
|
Provides: python3-cairocffi-doc
|
|
|
|
|
%description help
|
2021-02-20 15:51:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-04-12 15:41:52 +08:00
|
|
|
%autosetup -n cairocffi-%{version}
|
2021-02-20 15:51:25 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-04-25 14:14:33 +08:00
|
|
|
%pyproject_build
|
2021-02-20 15:51:25 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-04-25 14:14:33 +08:00
|
|
|
%pyproject_install cairocffi==%{version}
|
2023-04-12 15:41:52 +08:00
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
2023-04-25 14:14:33 +08:00
|
|
|
|
|
|
|
|
%files -n python3-cairocffi
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%files help
|
2023-04-12 15:41:52 +08:00
|
|
|
%{_docdir}/*
|
2021-02-20 15:51:25 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-04-25 14:14:33 +08:00
|
|
|
* Sun Apr 23 2023 Ge Wang <wang__ge@126.com> - 1.5.1-1
|
|
|
|
|
- Update package to version 1.5.1
|
|
|
|
|
|
2023-04-12 15:41:52 +08:00
|
|
|
* Wed Apr 12 2023 wubijie <wubijie@kylinos.cn> - 1.5.0-1
|
|
|
|
|
- Update package to version 1.5.0
|
|
|
|
|
|
2022-11-08 05:06:04 +00:00
|
|
|
* Tue Nov 8 2022 hkgy <kaguyahatu@outlook.com> - 1.4.0-1
|
|
|
|
|
- Upgrade to v1.4.0
|
|
|
|
|
|
2022-06-23 10:51:05 +08:00
|
|
|
* Thu Jun 23 2022 houyingchao <houyingchao@h-partners.com> - 1.3.0-1
|
|
|
|
|
- Upgrade to version 1.3.0
|
|
|
|
|
|
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
|
2023-04-12 15:41:52 +08:00
|
|
|
|