[python-flask/f15/master] Initial import (#679613).
Daniel M. Young
dyoung at fedoraproject.org
Sat Feb 26 20:02:00 UTC 2011
commit 9d66e0b63753944e6f191f0ad6642558f4dfaa59
Author: Dan Young <dyoung at mesd.k12.or.us>
Date: Sat Feb 26 12:01:43 2011 -0800
Initial import (#679613).
.gitignore | 1 +
python-flask.spec | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e52e2d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Flask-0.6.1.tar.gz
diff --git a/python-flask.spec b/python-flask.spec
new file mode 100644
index 0000000..6675ae0
--- /dev/null
+++ b/python-flask.spec
@@ -0,0 +1,89 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%global srcname Flask
+
+Name: python-flask
+Version: 0.6.1
+Release: 2%{?dist}
+Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
+
+Group: Development/Libraries
+License: BSD
+URL: http://flask.pocoo.org/
+Source0: http://pypi.python.org/packages/source/F/Flask/%{srcname}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+BuildRequires: python2-devel
+BuildRequires: python-setuptools-devel
+BuildRequires: python-jinja2 python-werkzeug python-sphinx
+
+Requires: python-jinja2 python-werkzeug
+
+%description
+Flask is called a “micro-framework” because the idea to keep the core
+simple but extensible. There is no database abstraction layer, no form
+validation or anything else where different libraries already exist
+that can handle that. However Flask knows the concept of extensions
+that can add this functionality into your application as if it was
+implemented in Flask itself. There are currently extensions for object
+relational mappers, form validation, upload handling, various open
+authentication technologies and more.
+
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+
+%description doc
+Documentation and examples for %{name}.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+# Need to install flask in the setuptools "develop" mode to build docs
+# The BuildRequires on Werkzeug, Jinja2 and Sphinx is due to this as well.
+export PYTHONPATH=$RPM_BUILD_ROOT%{python_sitelib}
+%{__python} setup.py develop --install-dir $RPM_BUILD_ROOT%{python_sitelib}
+make -C docs html
+
+rm -rf $RPM_BUILD_ROOT%{python_sitelib}/site.py
+rm -rf $RPM_BUILD_ROOT%{python_sitelib}/site.py[co]
+rm -rf docs/_build/html/.buildinfo
+rm -rf examples/minitwit/*.pyc
+rm -rf examples/flaskr/*.pyc
+rm -rf examples/jqueryexample/*.pyc
+
+%check
+%{__python} setup.py test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE PKG-INFO CHANGES README
+%{python_sitelib}/*
+
+%files doc
+%defattr(-,root,root,-)
+%doc docs/_build/html examples
+
+%changelog
+* Thu Feb 24 2011 Dan Young <dyoung at mesd.k12.or.us> - 0.6.1-2
+- fix rpmlint spelling warning
+- BR python2-devel rather than python-devel
+- run test suite in check
+
+* Tue Feb 22 2011 Dan Young <dyoung at mesd.k12.or.us> - 0.6.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..706557b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7af56e33fb6a35db2818c20e604c8698 Flask-0.6.1.tar.gz
More information about the scm-commits
mailing list