From 86358fb92a5e2dba633c06c122980523765bf355 Mon Sep 17 00:00:00 2001 From: Dmitry Samoylik Date: Thu, 26 Dec 2024 20:47:37 +0300 Subject: [PATCH] import python-cairocffi-1.7.0-3.el10 --- .gitignore | 1 + .python-cairocffi.metadata | 1 + SPECS/python-cairocffi.spec | 261 ++++++++++++++++++++++++++++++++++++ 3 files changed, 263 insertions(+) create mode 100644 .gitignore create mode 100644 .python-cairocffi.metadata create mode 100644 SPECS/python-cairocffi.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9ad61b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cairocffi-1.7.0.tar.gz diff --git a/.python-cairocffi.metadata b/.python-cairocffi.metadata new file mode 100644 index 0000000..5c1ba20 --- /dev/null +++ b/.python-cairocffi.metadata @@ -0,0 +1 @@ +abc55093a2d0a3e497cfa5f8e9f029b919bf7b50 SOURCES/cairocffi-1.7.0.tar.gz diff --git a/SPECS/python-cairocffi.spec b/SPECS/python-cairocffi.spec new file mode 100644 index 0000000..129534c --- /dev/null +++ b/SPECS/python-cairocffi.spec @@ -0,0 +1,261 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global srcname cairocffi + +Name: python-cairocffi +Version: 1.7.0 +Release: %autorelease +Summary: cffi-based cairo bindings for Python +License: BSD-3-Clause +URL: https://pypi.python.org/pypi/cairocffi/ +Source0: %{pypi_source} + +BuildArch: noarch + +BuildRequires: python3-devel +# required to run the test suite +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: cairo +# required by cairocffi.pixbuf +Requires: gdk-pixbuf2 +Requires: glib2 +Requires: gtk3 + +%description -n python3-cairocffi %_description + +%pyproject_extras_subpkg -n python3-cairocffi xcb + +%prep +%autosetup -n cairocffi-%{version} -p1 +sed -i -e "s/, 'flake8'//" -e "s/, 'isort'//" pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires -x test + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files cairocffi + +%check +# test_xcb.py needs a display +%global __pytest xvfb-run /usr/bin/pytest +%pytest -v --pyargs cairocffi + + +%files -n python3-cairocffi -f %{pyproject_files} +%doc README.rst + +%changelog +* Thu Dec 26 2024 Dmitriy Samoylik - 1.7.0-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 1.7.0-2 +- Rebuilt for Python 3.13 + +* Sun Apr 28 2024 Orion Poplawski - 1.7.0-1 +- Update to 1.7.0 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Dec 13 2023 Miro Hrončok - 1.6.1-3 +- Don't BuildRequire linters + +* Sat Aug 26 2023 Orion Poplawski - 1.6.1-2 +- Drop rmdir SPECPARTS + +* Thu Aug 17 2023 Orion Poplawski - 1.6.1-1 +- Update to 1.6.1 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jun 19 2023 Python Maint - 1.5.1-2 +- Rebuilt for Python 3.12 + +* Sat Jun 03 2023 Orion Poplawski - 1.5.1-1 +- Update to 1.5.1 w/ pyproject +- Use SPDX License + +* Fri Jan 20 2023 Fedora Release Engineering - 1.3.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jan 03 2023 Carl George - 1.3.0-6 +- Add dependencies on libraries that are loaded with dlopen rhbz#2157817 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.3.0-4 +- Rebuilt for Python 3.11 + +* Mon Jun 06 2022 Miro Hrončok - 1.3.0-3 +- Drop some unneeded build time dependencies +- Xfail tests failing with cairo 1.17.6 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Oct 05 2021 Felix Schwarz - 1.3.0-1 +- update to 1.3.0 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.2.0-4 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 1 2021 Felix Schwarz - 1.2.0-2 +- add workaround for upstream cairo/cairocffi bug + +* Sat Nov 07 2020 Felix Schwarz - 1.2.0-1 +- update to 1.2.0 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 21 2020 Miro Hrončok - 1.1.0-4 +- Provide cairocffi[xcb] from the python3-cairocffi package + +* Tue May 26 2020 Miro Hrončok - 1.1.0-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Nov 05 2019 Felix Schwarz - 1.1.0-1 +- Update to latest release +- require python3-xcffib at runtime (#1698217) + +* Thu Oct 03 2019 Miro Hrončok - 0.9.0-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.9.0-4 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.9.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 17 2019 Mairi Dulaney - 0.9.0-1 +- Update to latest release +- Modernize spec file a bit + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 0.7.2-16 +- Drop explicit locale setting + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Mon Nov 05 2018 Elliott Sales de Andrade - 0.7.2-15 +- Don't use unversioned Python command + +* Fri Jul 13 2018 Fedora Release Engineering - 0.7.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.7.2-13 +- Rebuilt for Python 3.7 +- Drop unused and unavailable BR python2-xcffib + +* Tue Mar 13 2018 Iryna Shcherbina - 0.7.2-12 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.7.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 09 2017 Zbigniew Jędrzejewski-Szmek - 0.7.2-10 +- Python 2 binary package renamed to python2-cairocffi + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.7.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.7.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.7.2-7 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.7.2-6 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Mon Feb 08 2016 John Dulaney - 0.7.2-5 +- Add cairo to Requires for python3 + +* Thu Feb 04 2016 Fedora Release Engineering - 0.7.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 0.7.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Mon Oct 19 2015 Adam Williamson - 0.7.2-2 +- buildrequires python-xcffib (for xcb support) + +* Fri Oct 16 2015 Adam Williamson - 0.7.2-1 +- bump to latest upstream release (RHBZ #1249821) + +* Thu Jun 18 2015 Fedora Release Engineering - 0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun May 17 2015 Ville Skyttä - 0.6-2 +- Build and ship HTML docs instead of their source +- Mark LICENSE as %%license + +* Mon Nov 03 2014 Eric Smith 0.6-1 +- Update to latest upstream. + +* Mon Aug 25 2014 Eric Smith 0.5.4-1 +- Update to latest upstream. +- No python3 in EL7. + +* Sat Jun 07 2014 Fedora Release Engineering - 0.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 27 2014 Kalev Lember - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Fri Jul 26 2013 Eric Smith 0.5.1-3 +- For EL6, remove require of gdk-pixbuf2. + +* Tue Jul 23 2013 Eric Smith 0.5.1-2 +- Added Python 3 support. + +* Sun Jul 21 2013 Eric Smith 0.5.1-1 +- initial version + +## END: Generated by rpmautospec