diff --git a/python-flask-images.spec b/python-flask-images.spec index d2f7bf94fe..6f4d6bb1d5 100644 --- a/python-flask-images.spec +++ b/python-flask-images.spec @@ -2,7 +2,7 @@ Name: python-flask-images Version: 2.1.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Dynamic image resizing for Flask License: BSD @@ -14,19 +14,22 @@ BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools -%if 0%{?fedora} >= 19 +%global _description\ +This extension adds a resized_img_src function to the template context, which\ +creates a URL to dynamically resize an image. This function takes either a path\ +to a local image (either absolute, or relative to the IMAGES_PATH) or an URL to\ +a remote image, and returns a URL that will serve a resized version on demand + +%description %_description + +%package -n python2-flask-images +Summary: %summary Requires: python-pillow -%else -requires: python-imaging -%endif Requires: python-flask Requires: python-itsdangerous +%{?python_provide:%python_provide python2-flask-images} -%description -This extension adds a resized_img_src function to the template context, which -creates a URL to dynamically resize an image. This function takes either a path -to a local image (either absolute, or relative to the IMAGES_PATH) or an URL to -a remote image, and returns a URL that will serve a resized version on demand +%description -n python2-flask-images %_description %prep %setup -q -n %{pypi_name}-%{version} @@ -39,12 +42,16 @@ rm -rf %{pypi_name}.egg-info %install %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT -%files +%files -n python2-flask-images %doc LICENSE.txt README.md %{python2_sitelib}/* %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 2.1.2-6 +- Python 2 binary package renamed to python2-flask-images + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 2.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild