diff --git python-gd/python-gd.spec python-gd/python-gd.spec.tmp index 5296155b06..80b311085b 100644 --- python-gd/python-gd.spec +++ python-gd/python-gd.spec.tmp @@ -5,7 +5,7 @@ Name: python-gd Version: 0.56 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Python GD module Group: Development/Libraries License: BSD @@ -31,18 +31,26 @@ BuildRequires: libXpm-devel BuildRequires: openjpeg-devel BuildRequires: python2-devel BuildRequires: zlib-devel -Requires: gd >= 2.0.23 - -%description -The GDmodule is an interface to the GD library written by Thomas Boutell. - 'gd is a graphics library. It allows your code to quickly draw images - complete with lines, arcs, text, multiple colors, cut and paste from - other images, and flood fills, and write out the result as a PNG or - JPEG file. This is particularly useful in World Wide Web applications, - where PNG and JPEG are two of the formats accepted for inline images +%global _description\ +The GDmodule is an interface to the GD library written by Thomas Boutell.\ +\ + 'gd is a graphics library. It allows your code to quickly draw images\ + complete with lines, arcs, text, multiple colors, cut and paste from\ + other images, and flood fills, and write out the result as a PNG or\ + JPEG file. This is particularly useful in World Wide Web applications,\ + where PNG and JPEG are two of the formats accepted for inline images\ by most browsers.' +%description %_description + +%package -n python2-gd +Summary: %summary +Requires: gd >= 2.0.23 +%{?python_provide:%python_provide python2-gd} + +%description -n python2-gd %_description + %prep %setup -q -n %{mod_name}-%{version} sed -e 's|\r||' %{SOURCE1} > LICENSE @@ -56,13 +64,17 @@ CFLAGS="%{optflags}" %{__python} Setup.py build %{__python} Setup.py install --root $RPM_BUILD_ROOT chmod 755 $RPM_BUILD_ROOT/%{python_sitearch}/_gd.so -%files +%files -n python2-gd %doc LICENSE README %{python_sitearch}/_gd.so %{python_sitearch}/gd.py* %{python_sitearch}/%{mod_name}-%{version}-py2.7.egg-info %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 0.56-17 +- Python 2 binary package renamed to python2-gd + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Aug 03 2017 Fedora Release Engineering - 0.56-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild