]> git.pld-linux.org Git - packages/python-flask-wtf.git/commitdiff
- Version 0.10.2. python3 packages added. auto/th/python-flask-wtf-0.10.2-1
authorMateusz Korniak <matkor@pld-linux.org>
Mon, 13 Oct 2014 14:37:23 +0000 (16:37 +0200)
committerMateusz Korniak <matkor@pld-linux.org>
Mon, 13 Oct 2014 14:37:23 +0000 (16:37 +0200)
python-Flask-WTF.spec [deleted file]
python-flask-wtf.spec [new file with mode: 0644]

diff --git a/python-Flask-WTF.spec b/python-Flask-WTF.spec
deleted file mode 100644 (file)
index 1de83d1..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-#
-# Conditional build:
-%bcond_with    tests   # do not perform "make test"
-
-%define        module  Flask-WTF
-Summary:       Simple integration of Flask and WTForms
-Name:          python-%{module}
-Version:       0.6
-Release:       0.1
-License:       BSD
-Group:         Development/Languages/Python
-Source0:       http://pypi.python.org/packages/source/F/Flask-WTF/%{module}-%{version}.tar.gz
-# Source0-md5: 5b922ee5a0a53d455e4c94f5966f1bdc
-URL:           http://github.com/rduplain/flask-wtf
-BuildRequires: python-Flask
-%if %{with tests}
-BuildRequires: python-Flask-Testing
-BuildRequires: python-Flask-Uploads
-BuildRequires: python-nose
-%endif
-BuildRequires: python-WTForms >= 1.0
-BuildRequires: python-distribute
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
-Requires:      python-WTForms >= 1.0
-Requires:      python-modules
-BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Simple integration of Flask and WTForms, including CSRF, file upload
-and Recaptcha integration.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%{__python} setup.py build
-
-%{?with_tests:%{__python} setup.py test}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-       --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
-
-%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_postclean
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%doc README
-%{py_sitescriptdir}/flaskext
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/Flask_WTF-*.egg-info
-%endif
diff --git a/python-flask-wtf.spec b/python-flask-wtf.spec
new file mode 100644 (file)
index 0000000..081d665
--- /dev/null
@@ -0,0 +1,135 @@
+#
+# Conditional build:
+%bcond_without doc             # don't build doc
+%bcond_with    tests   # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define        module  flask-wtf
+Summary:       Simple integration of Flask and WTForms
+Name:          python-%{module}
+Version:       0.10.2
+Release:       1
+License:       BSD
+Group:         Development/Languages/Python
+Source0:       http://pypi.python.org/packages/source/F/Flask-WTF/Flask-WTF-%{version}.tar.gz
+# Source0-md5: 2932ac0e7e8df26f6efb6ee7e6cfb783
+URL:           http://github.com/rduplain/flask-wtf
+BuildRequires: python-flask
+%if %{with tests}
+BuildRequires: python-Flask-Testing
+BuildRequires: python-Flask-Uploads
+BuildRequires: python-nose
+%endif
+
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+%if %{with python2}
+BuildRequires: python-devel
+BuildRequires: python-distribute
+BuildRequires: python-wtforms >= 2.0
+
+%endif
+%if %{with python3}
+BuildRequires: python3-devel
+BuildRequires: python3-distribute
+BuildRequires: python3-modules
+%endif
+Requires:      python-modules
+Requires:      python-wtforms >= 2.0
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Simple integration of Flask and WTForms, including CSRF, file upload
+and Recaptcha integration.
+
+%package -n python3-%{module}
+Summary:       -
+Summary(pl.UTF-8):     -
+Group:         Libraries/Python
+Requires:      python3-modules
+
+%description -n python3-%{module}
+Simple integration of Flask and WTForms, including CSRF, file upload
+and Recaptcha integration.
+
+## %description -n python3-%{module} -l pl.UTF-8
+
+%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-WTF-%{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_wtf
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/Flask_WTF-%{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_wtf
+%{py3_sitescriptdir}/Flask_WTF-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
+
This page took 0.084467 seconds and 4 git commands to generate.