diff --git a/.gitignore b/.gitignore index e69de29..03fc99c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Flask-Script-0.5.3.tar.gz diff --git a/python-flask-script.spec b/python-flask-script.spec new file mode 100644 index 0000000..ac9d8b9 --- /dev/null +++ b/python-flask-script.spec @@ -0,0 +1,55 @@ +%global mod_name Flask-Script + +Name: python-flask-script +Version: 0.5.3 +Release: 2%{?dist} +Summary: Scripting support for Flask + +License: BSD +URL: http://flask-script.readthedocs.org/en/latest/ +Source0: https://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools +# for check purpose nose is needed +BuildRequires: python-nose +BuildRequires: python-flask +Requires: python-flask + +%description +The Flask-Script extension provides support for writing external scripts in +Flask.This includes running a development server, a customized Python shell, +scripts to set up your database, cronjobs, and other command-line tasks that +belong outside the web application itself. + + +%prep +%setup -q -n %{mod_name}-%{version} +# delete the mac's .ds_store file +rm -f docs/.DS_Store + +%build +%{__python} setup.py build +# generate sphinx documentation +cd docs && make html +# deleting unneeded buildinfo, we dont expect users to change html docs +rm -f _build/html/.buildinfo + +%check +%{__python} setup.py test + +%install +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%files +%doc docs/_build/html README.rst LICENSE +%{python_sitelib}/*.egg-info/ +%{python_sitelib}/flask_script/*.py* + +%changelog +* Tue Apr 02 2013 Robert Kuska 0.5.3-2 +- Review fixes + +* Thu Mar 21 2013 Robert Kuska 0.5.3-1 +- Initial package diff --git a/sources b/sources index e69de29..d749e49 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d5a11584345ed72ec7ee1df5f4f9dc37 Flask-Script-0.5.3.tar.gz