!14 update to version 1.5.1
From: @wang--ge Reviewed-by: @cherry530 Signed-off-by: @cherry530
This commit is contained in:
commit
43283dd804
Binary file not shown.
BIN
cairocffi-1.5.1.tar.gz
Normal file
BIN
cairocffi-1.5.1.tar.gz
Normal file
Binary file not shown.
@ -1,12 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-cairocffi
|
Name: python-cairocffi
|
||||||
Version: 1.5.0
|
Version: 1.5.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: cffi-based cairo bindings for Python
|
Summary: cffi-based cairo bindings for Python
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://pypi.python.org/pypi/cairocffi/
|
URL: https://pypi.python.org/pypi/cairocffi/
|
||||||
Source0: https://files.pythonhosted.org/packages/28/d6/59ed0aa7f642142db493744c909a59a45e7350277d8987ccfc56cc5244d9/cairocffi-1.5.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/9f/d1/b26207d3a93dbdbee3b1492d59668f88953e9f28b74853e376a7a4f04e83/cairocffi-1.5.1.tar.gz
|
||||||
Source1: setup.py
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
@ -28,7 +27,6 @@ Requires: cairo
|
|||||||
# required by cairocffi.pixbuf
|
# required by cairocffi.pixbuf
|
||||||
Requires: python3-xcffib >= 0.3.2
|
Requires: python3-xcffib >= 0.3.2
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-cffi
|
BuildRequires: python3-cffi
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-pytest-cov
|
BuildRequires: python3-pytest-cov
|
||||||
@ -39,6 +37,8 @@ BuildRequires: python3-numpy
|
|||||||
BuildRequires: gdk-pixbuf2
|
BuildRequires: gdk-pixbuf2
|
||||||
BuildRequires: gdk-pixbuf2-modules
|
BuildRequires: gdk-pixbuf2-modules
|
||||||
BuildRequires: xorg-x11-server-Xvfb
|
BuildRequires: xorg-x11-server-Xvfb
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
%description -n python3-cairocffi
|
%description -n python3-cairocffi
|
||||||
|
|
||||||
|
|
||||||
@ -50,13 +50,12 @@ Provides: python3-cairocffi-doc
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n cairocffi-%{version}
|
%autosetup -n cairocffi-%{version}
|
||||||
cp %{SOURCE1} ./
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install cairocffi==%{version}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
@ -65,34 +64,17 @@ 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.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -f README.md ]; then cp -af README.md %{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
|
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
||||||
pushd %{buildroot}
|
|
||||||
if [ -d usr/lib ]; then
|
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/bin ]; then
|
|
||||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
touch doclist.lst
|
|
||||||
if [ -d usr/share/man ]; then
|
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
%files -n python3-cairocffi -f filelist.lst
|
%files -n python3-cairocffi
|
||||||
%dir %{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 23 2023 Ge Wang <wang__ge@126.com> - 1.5.1-1
|
||||||
|
- Update package to version 1.5.1
|
||||||
|
|
||||||
* Wed Apr 12 2023 wubijie <wubijie@kylinos.cn> - 1.5.0-1
|
* Wed Apr 12 2023 wubijie <wubijie@kylinos.cn> - 1.5.0-1
|
||||||
- Update package to version 1.5.0
|
- Update package to version 1.5.0
|
||||||
|
|
||||||
|
|||||||
21
setup.py
21
setup.py
@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
if sys.version_info.major < 3:
|
|
||||||
raise RuntimeError(
|
|
||||||
'cairocffi does not support Python 2.x anymore. '
|
|
||||||
'Please use Python 3 or install an older version of cairocffi.')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setup(
|
|
||||||
cffi_modules=[
|
|
||||||
'cairocffi/ffi_build.py:ffi',
|
|
||||||
'cairocffi/ffi_build.py:ffi_pixbuf'],
|
|
||||||
name = "cairocffi", # name
|
|
||||||
version = "1.5.0", # version
|
|
||||||
)
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user