33ace2b
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
33ace2b
33ace2b
%define srcname tw.forms
2248e2d
33ace2b
Name:           python-tw-forms
4f4216c
Version:        0.9.6
4f4216c
Release:        1%{?dist}
33ace2b
Summary:        Web Widgets for building and validating forms in ToscaWidgets
33ace2b
Group:          Development/Languages
33ace2b
# The javascript for the calendar widget is licensed under LGPLv2.1+
33ace2b
License:        MIT and LGPLv2+
33ace2b
URL:            http://toscawidgets.org/
33ace2b
Source0:        http://pypi.python.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz
33ace2b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
33ace2b
33ace2b
BuildArch:      noarch
33ace2b
BuildRequires:  python-devel
33ace2b
BuildRequires:  python-setuptools
33ace2b
Requires:       python-toscawidgets
33ace2b
Requires:       python-formencode >= 1.0.1
33ace2b
33ace2b
%description
33ace2b
tw.forms is a set of html and javascript widgets for the ToscaWidgets
33ace2b
framework.  They give authors basic html form elements as building blocks
33ace2b
for their own web pages and widgets.
33ace2b
33ace2b
33ace2b
%prep
33ace2b
%setup -q -n %{srcname}-%{version}
33ace2b
33ace2b
33ace2b
%build
33ace2b
chmod 0644 tw/forms/static/grid.css
33ace2b
sed -i 's/\r//' tw/forms/static/grid.css
33ace2b
%{__python} setup.py build
33ace2b
33ace2b
%install
33ace2b
rm -rf $RPM_BUILD_ROOT
33ace2b
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
33ace2b
33ace2b
33ace2b
%clean
33ace2b
rm -rf $RPM_BUILD_ROOT
33ace2b
33ace2b
33ace2b
%files
33ace2b
%defattr(-,root,root,-)
33ace2b
%{python_sitelib}/*
33ace2b
33ace2b
33ace2b
%changelog
4f4216c
* Thu Jun 04 2009 Luke Macken <lmacken@redhat.com> - 0.9.6-1
4f4216c
- Update to 0.9.6
4f4216c
4f4216c
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> - 0.9.3-1
4f4216c
- Update to 0.9.3
4f4216c
9968e2b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-3
9968e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9968e2b
bd52264
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.2-2
bd52264
- Rebuild for Python 2.6
bd52264
2248e2d
* Thu Oct 23 2008 Luke Macken <lmacken@redhat.com> - 0.9.2-1
2248e2d
- Update to tw.forms 0.9.2
2248e2d
33ace2b
* Sun Jul 27 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.9.1-1
33ace2b
- Initial Fedora Build