[packages/python-flask-script: 1/2] Initial version 2.0.5
matkor
matkor at pld-linux.org
Mon Oct 13 14:54:20 CEST 2014
commit 8ac9fa6fa7ea73f4f8ef6502fff115e7e81b0a77
Author: Mateusz Korniak <matkor at pld-linux.org>
Date: Mon Oct 13 14:53:26 2014 +0200
Initial version 2.0.5
python-flask-script.spec | 142 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 142 insertions(+)
---
diff --git a/python-flask-script.spec b/python-flask-script.spec
new file mode 100644
index 0000000..ac5b0ca
--- /dev/null
+++ b/python-flask-script.spec
@@ -0,0 +1,142 @@
+#
+# Conditional build:
+%bcond_without doc # don't build doc
+%bcond_without tests # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module flask-script
+Summary: Scripting support for Flask
+Summary(pl.UTF-8): Wsparcie dla skryptów w Flask-
+# Name must match the python module/package name (as in 'import' statement)
+Name: python-%{module}
+Version: 2.0.5
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: https://pypi.python.org/packages/source/F/Flask-Script/Flask-Script-%{version}.tar.gz
+# Source0-md5: e5c73d3b7937f5b88942f342f9617029
+URL: http://github.com/smurfix/flask-script
+BuildRequires: rpm-pythonprov
+%if %{with python2}
+BuildRequires: python-distribute
+BuildRequires: python-flask
+BuildRequires: python-itsdangerous
+BuildRequires: python-pytest
+%endif
+%if %{with python3}
+BuildRequires: python3-distribute
+BuildRequires: python3-flask
+BuildRequires: python3-itsdangerous
+BuildRequires: python3-modules
+BuildRequires: python3-pytest
+%endif
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Flask-Script extension provides support for writing external scripts in Flask.
+This includes running a development server, a customised Python shell, scripts to set up your database, cronjobs,
+and other command-line tasks that belong outside the web application itself.
+
+%description -l pl.UTF-8
+Rozszerzenie Flask-Script pozwala na pisanie zewnętrznych skryptów w Flasku.
+Co dalej pozawala na uruchamianie serwera rozwojowego, własnych skryptów w Pythonie, skryptów inicjujących bazę dane, skryptów cronta
+i różnych inych zadań z lini poleceń, które nie należą do samej aplikacji.
+
+%package -n python3-%{module}
+Summary: -
+Summary(pl.UTF-8): -
+Group: Libraries/Python
+Requires: python3-modules
+
+%description -n python3-%{module}
+The Flask-Script extension provides support for writing external scripts in Flask.
+This includes running a development server, a customised Python shell, scripts to set up your database, cronjobs,
+and other command-line tasks that belong outside the web application itself.
+
+%description -n python3-%{module} -l pl.UTF-8
+Rozszerzenie Flask-Script pozwala na pisanie zewnętrznych skryptów w Flasku.
+Co dalej pozawala na uruchamianie serwera rozwojowego, własnych skryptów w Pythonie, skryptów inicjujących bazę dane, skryptów cronta
+i różnych inych zadań z lini poleceń, które nie należą do samej aplikacji.
+
+
+%package apidocs
+Summary: %{module} API documentation
+Summary(pl.UTF-8): Dokumentacja API %{module}
+Group: Documentation
+
+%description apidocs
+API documentation for %{module}.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API %{module}.
+
+%prep
+%setup -q -n Flask-Script-%{version}
+
+%build
+%if %{with python2}
+%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%endif
+
+%if %{with doc}
+cd docs
+%{__make} -j1 html
+rm -rf _build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%{__python} setup.py \
+ build --build-base build-2 \
+ install --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+ build --build-base build-3 \
+ install --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+%endif
+
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%{py_sitescriptdir}/flask_script
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/Flask_Script-%{version}-py*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%{py3_sitescriptdir}/flask_script
+%{py3_sitescriptdir}/Flask_Script-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-flask-script.git/commitdiff/e7f5880135df122d9e1e3516e8d91a52e4eba9d8
More information about the pld-cvs-commit
mailing list