File python-ToscaWidgets.spec of Package python-ToscaWidgets
#norootforbuild
#
%define real_name ToscaWidgets
#
#
Name: python-%{real_name}
Group: Development/Libraries/Python
Version: 0.9.9
Release: 0
License: MIT
Summary: Web widget creation toolkit based on TurboGears widgets
Autoreqprov: on
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Requires: python-WebOb
Requires: python-simplejson >= 2.0
Requires: python-Cheetah
Requires: python-kid
Requires: python-Genshi
Requires: python-Mako
# only activate this when the docs subpackage is ready
#BuildRequires: python-sphinx
#BuildRequires: python-WidgetBrowser
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 is a web widget toolkit for Python to aid in the creation, packaging and distribution of common view elements normally used in the web.
These widgets are portable among any Python web-application framework or application that supports the WSGI standard.
Several widget libraries exist which build on top of Toscawidgets to provide form controls, sortable grids, maps, charts, etc.
%prep
%setup -n %{real_name}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
# How to successfully build and install the sphinx doc? Use a -docs subpackage to get this done
#python setup.py build_sphinx --source-dir=docs --build-dir=output --root=$RPM_BUILD_ROOT --record-rpm=SPHINX_DOCS
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README.txt
%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