]> git.pld-linux.org Git - packages/python-wtforms.git/commitdiff
- new
authorzbyniu <zbyniu@pld-linux.org>
Fri, 6 Apr 2012 09:21:29 +0000 (09:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-WTForms.spec -> 1.1

python-WTForms.spec [new file with mode: 0644]

diff --git a/python-WTForms.spec b/python-WTForms.spec
new file mode 100644 (file)
index 0000000..7a01944
--- /dev/null
@@ -0,0 +1,60 @@
+#
+# 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
This page took 1.017648 seconds and 4 git commands to generate.