diff --git a/python-cairocffi.spec b/python-cairocffi.spec index 445b752bee..faac8cc79d 100644 --- a/python-cairocffi.spec +++ b/python-cairocffi.spec @@ -6,8 +6,7 @@ Name: python-cairocffi Version: 0.7.2 -Release: 9%{?dist} -Group: Development/Libraries +Release: 10%{?dist} Summary: cffi-based cairo bindings for Python License: BSD URL: https://pypi.python.org/pypi/cairocffi/ @@ -19,29 +18,32 @@ BuildRequires: python2-devel python-setuptools python-sphinx python-cffi python BuildRequires: python3-devel python3-setuptools python3-cffi python3-xcffib %endif # if with_python3 +%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 python2-cairocffi +Summary: %summary Requires: python-cffi cairo %if 0%{?fedora} > 13 || 0%{?rhel} > 6 Requires: gdk-pixbuf2 %endif +%{?python_provide:%python_provide python2-cairocffi} -%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 -n python2-cairocffi %_description %if 0%{?with_python3} %package -n python3-cairocffi -Group: Development/Libraries Summary: cffi-based cairo bindings for Python Requires: python3-cffi Requires: cairo +%{?python_provide:%python_provide python3-cairocffi} -%description -n python3-cairocffi -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 -n python3-cairocffi %_description %endif # if with_python3 %prep @@ -75,7 +77,7 @@ LANG="en_US.UTF-8" %{__python3} setup.py install --skip-build --prefix=%{_prefix popd %endif # with_python3 -%files +%files -n python2-cairocffi %{!?_licensedir:%global license %%doc} %license LICENSE %doc CHANGES README.rst docs/_build/html @@ -89,6 +91,10 @@ popd %endif # with_python3 %changelog +* 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