7ecea40
%define pyver %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")
7ecea40
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7ecea40
7ecea40
Name:           python-cherrypy
7ecea40
Version:        2.0.0
gijs 494eb7a
Release:        1
7ecea40
Summary:        A pythonic, object-oriented web development framework
7ecea40
Group:          Development/Libraries
7ecea40
License:        BSD
7ecea40
URL:            http://www.cherrypy.org/
gijs 494eb7a
Source0:        http://dl.sf.net/cherrypy/CherryPy-2.0.0.tar.gz
7ecea40
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7ecea40
Patch0:         python-cherrypy-tutorial-doc.patch
7ecea40
Patch1:         python-cherrypy-regression-test.patch
7ecea40
7ecea40
BuildArch:      noarch
7ecea40
Requires:       python-abi = %{pyver}
7ecea40
7ecea40
%description
7ecea40
CherryPy allows developers to build web applications in much the same way 
7ecea40
they would build any other object-oriented Python program. This usually 
7ecea40
results in smaller source code developed in less time.
7ecea40
7ecea40
%prep
gijs 494eb7a
%setup -q -n CherryPy-2.0.0
7ecea40
%patch0 -p1 
7ecea40
%patch1 -p1
7ecea40
7ecea40
7ecea40
%build
696d48f
%{__python} setup.py build
7ecea40
7ecea40
%install
7ecea40
rm -rf $RPM_BUILD_ROOT
7ecea40
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}
7ecea40
7ecea40
%check
7ecea40
cd cherrypy/test
7ecea40
%{__python} test.py
7ecea40
7ecea40
%clean
7ecea40
rm -rf $RPM_BUILD_ROOT
7ecea40
7ecea40
%files
7ecea40
%defattr(-,root,root,-)
7ecea40
%doc CHANGELOG.txt CHERRYPYTEAM.txt README.txt
7ecea40
%doc cherrypy/tutorial
7ecea40
%dir %{python_sitelib}/cherrypy
7ecea40
%dir %{python_sitelib}/cherrypy/lib
7ecea40
%dir %{python_sitelib}/cherrypy/lib/filter
7ecea40
%{python_sitelib}/cherrypy/*.py
7ecea40
%{python_sitelib}/cherrypy/*.pyc
7ecea40
%ghost %{python_sitelib}/cherrypy/*.pyo
7ecea40
%{python_sitelib}/cherrypy/lib/*.py
7ecea40
%{python_sitelib}/cherrypy/lib/*.pyc
7ecea40
%ghost %{python_sitelib}/cherrypy/lib/*.pyo
7ecea40
%{python_sitelib}/cherrypy/lib/filter/*.py
7ecea40
%{python_sitelib}/cherrypy/lib/filter/*.pyc
7ecea40
%ghost %{python_sitelib}/cherrypy/lib/filter/*.pyo
7ecea40
7ecea40
%changelog
gijs 494eb7a
* Sun May  8 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-1
gijs 494eb7a
- Updated to 2.0.0 final
gijs 494eb7a
- Updated python-cherrypy-tutorial-doc.patch to match new version
gijs 494eb7a
696d48f
* Wed Apr  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.0.0-0.2.b
696d48f
- Removed CFLAGS
696d48f
7ecea40
* Wed Mar 23 2005 Gijs Hollestelle <gijs[AT]gewis.nl> 2.0.0-0.1.b
7ecea40
- Initial Fedora Package