packages: python-Flask-WTF/python-Flask-WTF.spec (NEW), python-WTForms/pyth...

zbyniu zbyniu at pld-linux.org
Fri Apr 6 11:21:34 CEST 2012


Author: zbyniu                       Date: Fri Apr  6 09:21:34 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/python-Flask-WTF:
   python-Flask-WTF.spec (NONE -> 1.1)  (NEW)
packages/python-WTForms:
   python-WTForms.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-Flask-WTF/python-Flask-WTF.spec
diff -u /dev/null packages/python-Flask-WTF/python-Flask-WTF.spec:1.1
--- /dev/null	Fri Apr  6 11:21:34 2012
+++ packages/python-Flask-WTF/python-Flask-WTF.spec	Fri Apr  6 11:21:29 2012
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	tests	# do not perform "make test"
+
+%define 	module	Flask-WTF	
+Summary:	Simple integration of Flask and WTForms
+#Summary(pl.UTF-8):	-
+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
+# if py_postclean is used
+BuildRequires:	rpmbuild(macros) >= 1.219
+#Requires:		python-libs
+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.
+
+#description -l pl.UTF-8
+
+%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
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/04/06 09:21:29  zbyniu
+- new
+

================================================================
Index: packages/python-WTForms/python-WTForms.spec
diff -u /dev/null packages/python-WTForms/python-WTForms.spec:1.1
--- /dev/null	Fri Apr  6 11:21:34 2012
+++ packages/python-WTForms/python-WTForms.spec	Fri Apr  6 11:21:29 2012
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+#
+# 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):	-
+Name:		python-%{module}
+Version:	1.0.1
+Release:	0.1
+License:	BSD
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/W/WTForms/%{module}-%{version}.zip
+# Source0-md5:	d4284596daadf7eae048aef8e449c543
+URL:		http://wtforms.simplecodes.com/
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+# if py_postclean is used
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	unzip
+#Requires:		python-libs
+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
+
+%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
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/04/06 09:21:29  zbyniu
+- new
+
================================================================


More information about the pld-cvs-commit mailing list