File python-tw-forms.spec of Package python-tw-forms

#norootforbuild
#
%define real_name tw.forms
%define mod_name tw-forms
#
#
Name:           python-%{mod_name}
Group:          Development/Libraries/Python
Version:        0.9.9
Release:        0
License:        MIT
Summary:        Web Widgets for building and validating forms. (former ToscaWidgetsForms)
Autoreqprov:    on
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
Requires:       python-ToscaWidgets > 0.9.7
Requires:       python-FormEncode >= 1.2
Requires:       python-Mako
Requires:       python-Genshi >= 0.3.6
Url:            http://www.toscawidgets.org
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif

%description
tw.forms is a library of widgets for building HTML forms. It enables the rapid creation of forms, with server-side validation that returns clear error messages to users.
As tw.forms is built on ToscaWidgets, the developer can easily use more complex widgets in the forms. The end result is a powerful framework that is useful to web developers in the real world.

%prep
%setup -n %{real_name}-%{version}
find . -iname \*.orig -exec rm {} \;
%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc PKG-INFO

%changelog
* Tue Jan 26 2010 - Ciaran Farrell <cfarrell1980@gmail.com> - 0.9.9
- Update to 0.9.9

* Sun Nov 23 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 0.9.8
- Initial build for tg21

openSUSE Build Service is sponsored by