%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: python-formencode
Version: 0.7.1
Release: 2%{?dist}
Summary: HTML form validation, generation, and convertion package
Group: Development/Libraries
License: PSF
URL: http://formencode.org/
Source0: http://cheeseshop.python.org/packages/source/F/FormEncode/FormEncode-%{version}.tar.gz
Patch: %{name}-0.7-badurl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Requires: python-setuptools
BuildRequires: python-setuptools python-devel
%description
FormEncode validates and converts nested structures. It allows for a
declarative form of defining the validation, and decoupled processes
for filling and generating forms.
%prep
%setup -q -n FormEncode-%{version}
%patch -b .badurl
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc PKG-INFO docs
%{python_sitelib}/formencode
%{python_sitelib}/FormEncode-%{version}-py%{pyver}.egg-info
%changelog
* Tue Feb 19 2008 Luke Macken <lmacken@redhat.com> 0.7.1-2
- Bump and rebuild to fix a broken upgrade path
* Mon Apr 9 2007 Toshio Kuratomi <toshio@tiki-lounge.com> 0.7.1-1
- Upgrade to bugfix 0.7.1 release.
* Fri Apr 6 2007 Toshio Kuratomi <toshio@tiki-lounge.com> 0.7-3
- Require python-setuptools
* Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> 0.7-2
- Rebuild with newer badurl patch
* Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> 0.7-1
- 0.7
* Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> 0.6-3
- Rebuild for python 2.5
* Fri Nov 3 2006 Luke Macken <lmacken@redhat.com> 0.6-2
- Rebuild
* Fri Nov 3 2006 Luke Macken <lmacken@redhat.com> 0.6-1
- 0.6
* Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> 0.5.1-3
- Rebuild for FC6
* Sat Jul 29 2006 Luke Macken <lmacken@redhat.com> 0.5.1-2
- Rebuild
* Sat Jul 29 2006 Luke Macken <lmacken@redhat.com> 0.5.1-1
- 0.5.1
* Sat Feb 4 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.4-2
- Fix build on devel
- Switch to unmanaged egg
* Thu Dec 29 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.4-1
- Upstream update
* Sun Oct 23 2005 Oliver Andrich <oliver.andrich@gmail.com> 0.2.2-3
- fixed some minor packaging issues
* Tue Oct 13 2005 Oliver Andrich <oliver.andrich@gmail.com> 0.2.2-2
- fixed the too long description line
- add -O1 to the installation process
- %ghost'ed the *.pyo files
* Tue Oct 06 2005 Oliver Andrich <oliver.andrich@gmail.com> 0.2.2-1
- update to upstream version 0.2.2
* Tue Sep 20 2005 Oliver Andrich <oliver.andrich@gmail.com> 0.2.1-2
- fixed some minor packaging issues for review.
* Tue Sep 20 2005 Oliver Andrich <oliver.andrich@gmail.com> 0.2.1-1
- initial creation
- Version 0.2.1