[packages/python-wtforms] Version 2.0.1.

matkor matkor at pld-linux.org
Mon Oct 13 16:15:16 CEST 2014


commit e6b6a62dca564f98ad5ec1c1e56c9fb03537b949
Author: Mateusz Korniak <matkor at pld-linux.org>
Date:   Mon Oct 13 16:05:28 2014 +0200

    Version 2.0.1.

 python-WTForms.spec |  61 ------------------------
 python-wtforms.spec | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 135 insertions(+), 61 deletions(-)
---
diff --git a/python-WTForms.spec b/python-WTForms.spec
deleted file mode 100644
index aa18288..0000000
--- a/python-WTForms.spec
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# do not perform "make test"
-
-%define 	module	WTForms
-Summary:	A flexible forms validation and rendering library for python web development
-Summary(pl.UTF-8):	Biblioteka umożliwiająca generację i walidację formularzy html w jezyku python
-Name:		python-%{module}
-Version:	1.0.1
-Release:	1
-License:	BSD
-Group:		Development/Languages/Python
-Source0:	http://pypi.python.org/packages/source/W/%{module}/%{module}-%{version}.zip
-# Source0-md5:	d4284596daadf7eae048aef8e449c543
-URL:		http://wtforms.simplecodes.com/
-BuildRequires:	python-distribute
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.219
-BuildRequires:	unzip
-Requires:	python-modules
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-A flexible forms validation and rendering library for python web
-development.
-
-%description -l pl.UTF-8
-Biblioteka umożliwiająca generację i walidację formularzy html w
-jezyku python
-
-%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 AUTHORS.txt CHANGES.txt README.txt
-%{py_sitescriptdir}/wtforms
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/%{module}-*.egg-info
-%endif
-
diff --git a/python-wtforms.spec b/python-wtforms.spec
new file mode 100644
index 0000000..f14e8e0
--- /dev/null
+++ b/python-wtforms.spec
@@ -0,0 +1,135 @@
+#
+# 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	wtforms
+Summary:	A flexible forms validation and rendering library for python web development
+Summary(pl.UTF-8):	Biblioteka umożliwiająca generację i walidację formularzy html w jezyku python
+Name:		python-%{module}
+Version:	2.0.1
+Release:	1
+License:	BSD
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/W/WTForms/WTForms-%{version}.zip
+# Source0-md5:	aaac94c137b3cd63efeb3ded51082cde
+URL:		http://wtforms.simplecodes.com/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	unzip
+%if %{with python2}
+BuildRequires:	python-distribute
+%endif
+%if %{with python3}
+BuildRequires:	python3-distribute
+BuildRequires:	python3-modules
+%endif
+
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A flexible forms validation and rendering library for python web
+development.
+
+%description -l pl.UTF-8
+Biblioteka umożliwiająca generację i walidację formularzy html w
+jezyku python
+
+%package -n python3-%{module}
+Summary:	-
+Summary(pl.UTF-8):	-
+Group:		Libraries/Python
+Requires:		python3-modules
+
+%description -n python3-%{module}
+A flexible forms validation and rendering library for python web
+development.
+
+%description -n python3-%{module} -l pl.UTF-8
+Biblioteka umożliwiająca generację i walidację formularzy html w
+jezyku python
+
+%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 WTForms-%{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 AUTHORS.txt CHANGES.rst LICENSE.txt README.md
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%{py_sitescriptdir}/%{module}
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/WTForms-%{version}-py*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc AUTHORS.txt CHANGES.rst LICENSE.txt README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/WTForms-%{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-wtforms.git/commitdiff/e6b6a62dca564f98ad5ec1c1e56c9fb03537b949



More information about the pld-cvs-commit mailing list