[python-flask-images] Initial import BZ-#1025058
Alex Irmel Oviedo Solis
alexove at fedoraproject.org
Sat Nov 9 21:05:12 UTC 2013
commit c9e8381676f0d739fcf0848c2570ffcd25d5c726
Author: Alex Irmel Oviedo Solis <alleinerwolf at gmail.com>
Date: Sat Nov 9 16:02:47 2013 -0500
Initial import BZ-#1025058
.gitignore | 1 +
python-flask-images.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9a06a0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Flask-Images-1.0.0.tar.gz
diff --git a/python-flask-images.spec b/python-flask-images.spec
new file mode 100644
index 0000000..6207b76
--- /dev/null
+++ b/python-flask-images.spec
@@ -0,0 +1,56 @@
+%global pypi_name Flask-Images
+
+Name: python-flask-images
+Version: 1.0.0
+Release: 3%{?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
+* Thu Oct 31 2013 Alex Irmel Oviedo solis <alleinerwolf at gmail.com> - 1.0.0-3
+- Added Requires: python-itsdangerous
+
+* Wed Oct 30 2013 Alex Irmel Oviedo Solis <alleinerwolf at gmail.com> - 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 <alleinerwolf at gmail.com> - 1.0.0-1
+- Initial packaging attempt
diff --git a/sources b/sources
index e69de29..8559fe4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b555a523d125bc229aaefc8cb47e4916 Flask-Images-1.0.0.tar.gz
More information about the scm-commits
mailing list