1dc7dc4
%global srcname cairocffi
1dc7dc4
59a8e4c
Name:           python-cairocffi
1dc7dc4
Version:        1.1.0
d2a54f5
Release:        4%{?dist}
59a8e4c
Summary:        cffi-based cairo bindings for Python
59a8e4c
License:        BSD
59a8e4c
URL:            https://pypi.python.org/pypi/cairocffi/
1dc7dc4
Source0:        %{pypi_source}
0cc7022
Patch0:         python-cairocffi-disable-flake8-isort-for-pytest.patch
1dc7dc4
59a8e4c
BuildArch:      noarch
59a8e4c
32fca08
BuildRequires:  python3-devel
32fca08
BuildRequires:  python3-setuptools
32fca08
BuildRequires:  python3-cffi
1dc7dc4
BuildRequires:  python3-pytest
1dc7dc4
BuildRequires:  python3-pytest-cov
1dc7dc4
BuildRequires:  python3-pytest-runner
1dc7dc4
BuildRequires:  python3-xcffib >= 0.3.2
32fca08
BuildRequires:  cairo-devel
0cc7022
# required to run the test suite
0cc7022
BuildRequires:  gdk-pixbuf2
0cc7022
BuildRequires:  gdk-pixbuf2-modules
59a8e4c
e535403
%global _description\
e535403
cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of\
e535403
Python bindings and object-oriented API for cairo.  Cairo is a 2D\
e535403
vector graphics library with support for multiple backends including\
e535403
image buffers, PNG, PostScript, PDF, and SVG file output.
e535403
e535403
%description %_description
e535403
59a8e4c
%package -n python3-cairocffi
59a8e4c
Summary:        cffi-based cairo bindings for Python
b47cec8
Requires:       python3-cffi
a8677ba
Requires:       cairo
1dc7dc4
# required by cairocffi.pixbuf
1dc7dc4
Requires:       python3-xcffib >= 0.3.2
d2a54f5
# Provide the cairocffi[xcb] extras, because there is no reasonable split
d2a54f5
# Be aware that %%version is not converted to the Pythonistic version here!
d2a54f5
Provides:       python%{python3_pkgversion}dist(cairocffi[xcb]) = %{version}
d2a54f5
Provides:       python%{python3_version}dist(cairocffi[xcb]) = %{version}
e535403
%{?python_provide:%python_provide python3-cairocffi}
59a8e4c
e535403
%description -n python3-cairocffi %_description
59a8e4c
59a8e4c
%prep
1dc7dc4
%autosetup -n cairocffi-%{version}
0cc7022
rm -rf %{srcname}.egg-info
59a8e4c
59a8e4c
%build
32fca08
%py3_build
59a8e4c
59a8e4c
%install
32fca08
%py3_install
59a8e4c
0cc7022
%check
0cc7022
%{__python3} setup.py test
0cc7022
0cc7022
d6f236a
%files -n python3-cairocffi
93bc95c
%license LICENSE
1dc7dc4
%doc README.rst
b2cb709
%{python3_sitelib}/%{srcname}/
b2cb709
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
59a8e4c
59a8e4c
%changelog
d2a54f5
* Tue Jul 21 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
d2a54f5
- Provide cairocffi[xcb] from the python3-cairocffi package
d2a54f5
a2c04c5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
a2c04c5
- Rebuilt for Python 3.9
a2c04c5
e0687dd
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
e0687dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e0687dd
1dc7dc4
* Tue Nov 05 2019 Felix Schwarz <fschwarz@fedoraproject.org> - 1.1.0-1
1dc7dc4
- Update to latest release
1dc7dc4
- require python3-xcffib at runtime (#1698217)
1dc7dc4
8ac81bf
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-5
8ac81bf
- Rebuilt for Python 3.8.0rc1 (#1748018)
8ac81bf
914b972
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-4
914b972
- Rebuilt for Python 3.8
914b972
604270b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
604270b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
604270b
6a1d666
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
6a1d666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6a1d666
32fca08
* Thu Jan 17 2019 Mairi Dulaney <jdulaney@fedoraproject.org> - 0.9.0-1
32fca08
- Update to latest release
32fca08
- Modernize spec file a bit
32fca08
91d58f4
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.2-16
91d58f4
- Drop explicit locale setting
91d58f4
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
91d58f4
6991cb6
* Mon Nov 05 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.2-15
6991cb6
- Don't use unversioned Python command
6991cb6
26b20ef
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-14
26b20ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
26b20ef
5e51ecb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.2-13
5e51ecb
- Rebuilt for Python 3.7
726a8ba
- Drop unused and unavailable BR python2-xcffib
5e51ecb
105afef
* Tue Mar 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.7.2-12
105afef
- Update Python 2 dependency declarations to new packaging standards
105afef
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
105afef
688979d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-11
688979d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
688979d
e535403
* Wed Aug 09 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.2-10
e535403
- Python 2 binary package renamed to python2-cairocffi
e535403
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
e535403
631eaee
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-9
631eaee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
631eaee
20752cf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-8
20752cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
20752cf
11d864d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.2-7
11d864d
- Rebuild for Python 3.6
11d864d
921d0ac
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-6
921d0ac
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
921d0ac
a8677ba
* Mon Feb 08 2016 John Dulaney <jdulaney@fedoraproject.org> - 0.7.2-5
a8677ba
- Add cairo to Requires for python3
a8677ba
fc9cbeb
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-4
fc9cbeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fc9cbeb
c78e8d9
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
c78e8d9
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
c78e8d9
e37a03a
* Mon Oct 19 2015 Adam Williamson <awilliam@redhat.com> - 0.7.2-2
e37a03a
- buildrequires python-xcffib (for xcb support)
e37a03a
19efe60
* Fri Oct 16 2015 Adam Williamson <awilliam@redhat.com> - 0.7.2-1
19efe60
- bump to latest upstream release (RHBZ #1249821)
19efe60
84f274a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
84f274a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
84f274a
93bc95c
* Sun May 17 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.6-2
93bc95c
- Build and ship HTML docs instead of their source
93bc95c
- Mark LICENSE as %%license
93bc95c
cf73a96
* Mon Nov 03 2014 Eric Smith <brouhaha@fedoraproject.org> 0.6-1
cf73a96
- Update to latest upstream.
cf73a96
de7c1de
* Mon Aug 25 2014 Eric Smith <brouhaha@fedoraproject.org> 0.5.4-1
de7c1de
- Update to latest upstream.
de7c1de
- No python3 in EL7.
de7c1de
491a48d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
491a48d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
491a48d
22fe458
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 0.5.1-4
22fe458
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
22fe458
755d430
* Fri Jul 26 2013 Eric Smith <brouhaha@fedoraproject.org> 0.5.1-3
755d430
- For EL6, remove require of gdk-pixbuf2.
755d430
59a8e4c
* Tue Jul 23 2013 Eric Smith <brouhaha@fedoraproject.org> 0.5.1-2
59a8e4c
- Added Python 3 support.
59a8e4c
59a8e4c
* Sun Jul 21 2013 Eric Smith <brouhaha@fedoraproject.org> 0.5.1-1
59a8e4c
- initial version