%global mod_name WTForms
Name: python-wtforms
Version: 0.6.3
Release: 1%{?dist}
Summary: Forms validation and rendering library for python
Group: Development/Libraries
License: BSD
URL: http://wtforms.simplecodes.com/
Source0: http://pypi.python.org/packages/source/W/WTForms/WTForms-0.6.3.zip
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
%description
With wtforms, your form field HTML can be generated for you.
This allows you to maintain separation of code and presentation,
and keep those messy parameters out of your python code.
%prep
%setup -q -n %{mod_name}-%{version}
sed -i "s|\r||g" docs/html/_sources/index.txt
sed -i "s|\r||g" docs/conf.py
sed -i "s|\r||g" CHANGES.txt
sed -i "s|\r||g" docs/Makefile
sed -i "s|\r||g" docs/index.rst
rm -f docs/html/.buildinfo
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%doc docs/ README.txt CHANGES.txt LICENSE.txt PKG-INFO
%{python_sitelib}/*.egg-info
%{python_sitelib}/wtforms/
%changelog
* Thu Jul 21 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.6.3-1
- Initial RPM release