%global pypi_name Flask-Images Name: python-flask-images Version: 1.0.0 Release: 4%{?dist} Summary: Dynamic image resizing for Flask License: BSD URL: https://pypi.python.org/pypi/%{pypi_name} Source0: https://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %if 0%{?fedora} >= 19 Requires: python-pillow %else requires: python-Imaging %endif Requires: python-flask Requires: python-itsdangerous %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 %prep %setup -q -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT %files %doc LICENSE.txt README.md %{python2_sitelib}/* %changelog * Tue Nov 06 2013 Alex Irmel Oviedo Solis - 1.0.0-4 - Changed python-imaging by python-Imaging in line 21. * Thu Oct 31 2013 Alex Irmel Oviedo solis - 1.0.0-3 - Added Requires: python-itsdangerous * Wed Oct 30 2013 Alex Irmel Oviedo Solis - 1.0.0-2 - Changed the license from BSD-3 to BSD - Added Requires: python-pillow/python-imaging * Mon Oct 28 2013 Alex Irmel Oviedo Solis - 1.0.0-1 - Initial packaging attempt