812c7d
%if !(0%{?fedora} > 12 || 0%{?rhel} > 5)
3c99ba
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
812c7d
%endif
7ecea4
7ecea4
Name:           python-cherrypy
812c7d
Version:        3.1.2
863c69
Release:        6%{?dist}
3c99ba
Summary:        Pythonic, object-oriented web development framework
7ecea4
Group:          Development/Libraries
7ecea4
License:        BSD
7ecea4
URL:            http://www.cherrypy.org/
812c7d
Source0:        http://download.cherrypy.org/cherrypy/%{version}/CherryPy-%{version}.tar.gz
76cb75
Patch0:         python-cherrypy-tutorial-doc.patch
db088e
Patch1: python-cherrypy-changederrormessage.patch
76cb75
7ecea4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7ecea4
7ecea4
BuildArch:      noarch
7ecea4
d023a6
BuildRequires:  python-devel
ab776b
BuildRequires:  python-setuptools-devel
ab776b
BuildRequires:  tidy
d023a6
7ecea4
%description
7ecea4
CherryPy allows developers to build web applications in much the same way 
7ecea4
they would build any other object-oriented Python program. This usually 
7ecea4
results in smaller source code developed in less time.
7ecea4
7ecea4
%prep
812c7d
%setup -q -n CherryPy-%{version}
8d018c
%patch0 -p1
db088e
%patch1 -p1 -b .errmsg
7ecea4
76cb75
%{__sed} -i 's/\r//' README.txt cherrypy/tutorial/README.txt cherrypy/tutorial/tutorial.conf
7ecea4
7ecea4
%build
696d48
%{__python} setup.py build
7ecea4
7ecea4
%install
7ecea4
rm -rf $RPM_BUILD_ROOT
76cb75
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
7ecea4
8d018c
%check
8d018c
cd cherrypy/test
ab776b
# The tidy tool test needs tidy in the test dir
ab776b
ln -s %{_bindir}/tidy tidy
3c99ba
PYTHONPATH='../../' %{__python} test.py --dumb
7ecea4
7ecea4
%clean
7ecea4
rm -rf $RPM_BUILD_ROOT
7ecea4
7ecea4
%files
7ecea4
%defattr(-,root,root,-)
76cb75
%doc README.txt
7ecea4
%doc cherrypy/tutorial
ab776b
%{_bindir}/cherryd
d6211a
%{python_sitelib}/*
7ecea4
7ecea4
%changelog
863c69
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-6
863c69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
863c69
1cb484
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
1cb484
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1cb484
db088e
* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-4
db088e
- Fix a failing unittest with newer python
db088e
812c7d
* Sat Apr 24 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-3
812c7d
- Revert a try at 3.2.x-rc1 as the tests won't pass without some work.
3c99ba
620ea1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-2
620ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
620ea1
ab776b
* Tue Jun 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
ab776b
- New upstream with python-2.6 fixes.
ab776b
- BR tidy for tests.
ab776b
6e5f56
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
6e5f56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6e5f56
2913c4
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.1-1
2913c4
- Update to 3.1.1
2913c4
- Fix python-2.6 build errors
2913c4
- Make test code non-interactive via cmdline switch
2913c4
- Refresh the no test and tutorial patch
2913c4
f95d87
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.3-3
f95d87
- Rebuild for Python 2.6
f95d87
0a5f2f
* Tue Jan 22 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-2
0a5f2f
- Forgot to upload the tarball.
0a5f2f
76cb75
* Mon Jan 21 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-1
76cb75
- Upgrade to 3.0.3.
76cb75
bfbbae
* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-2
bfbbae
- EINTR Patch needed to be forwarded ported as well as it is only applied to
bfbbae
  CP trunk (3.x).
bfbbae
8d018c
* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-1
bfbbae
- Update to new upstream which rolls in the backported security fix.
8d018c
- Refresh other patches to apply against new version.
8d018c
- Change to new canonical source URL.
8d018c
- Reenable tests.
8d018c
d6211a
* Sun Jan  6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.2.1-8
d6211a
- Fix a security bug with a backport of http://www.cherrypy.org/changeset/1775
d6211a
- Include the egginfo files as well as the python files.
d6211a
ab8ae7
* Sat Nov  3 2007 Luke Macken <lmacken@redhat.com> 2.2.1-7
ab8ae7
- Apply backported fix from http://www.cherrypy.org/changeset/1766
ab8ae7
  to improve CherryPy's SIGSTOP/SIGCONT handling (Bug #364911).
ab8ae7
  Thanks to Nils Philippsen for the patch.
ab8ae7
7b6e26
* Mon Feb 19 2007 Luke Macken <lmacken@redhat.com> 2.2.1-6
7b6e26
- Disable regression tests until we can figure out why they
7b6e26
  are dying in mock.
7b6e26
d023a6
* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-5
d023a6
- Add python-devel to BuildRequires
d023a6
2d503d
* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-4
2d503d
- Rebuild for python 2.5
2d503d
dcc8b1
* Mon Sep 18 2006 Luke Macken <lmacken@redhat.com> 2.2.1-3
dcc8b1
- Rebuild for FC6
dcc8b1
- Include pyo files instead of ghosting them
dcc8b1
cdbe45
* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-2
cdbe45
- Rebuild
cdbe45
51ab42
* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-1
51ab42
- Update to 2.2.1
51ab42
- Remove unnecessary python-abi requirement
51ab42
gijs 580479
* Sat Apr 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.2.0-1
gijs 580479
- Update to 2.2.0
gijs 580479
gijs 46ca0a
* Wed Feb 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.1.1-1
gijs 46ca0a
- Update to 2.1.1 (Security fix)
gijs 46ca0a
gijs 3f6a5b
* Tue Nov  1 2005 Gijs Hollestelle <gijs@gewis.nl> 2.1.0-1
gijs 3f6a5b
- Updated to 2.1.0
gijs 3f6a5b
gijs 03c3ce
* Sat May 14 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-2
gijs 03c3ce
- Added dist tag
gijs 03c3ce
gijs 494eb7
* Sun May  8 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-1
gijs 494eb7
- Updated to 2.0.0 final
gijs 494eb7
- Updated python-cherrypy-tutorial-doc.patch to match new version
gijs 494eb7
696d48
* Wed Apr  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.0.0-0.2.b
696d48
- Removed CFLAGS
696d48
7ecea4
* Wed Mar 23 2005 Gijs Hollestelle <gijs[AT]gewis.nl> 2.0.0-0.1.b
7ecea4
- Initial Fedora Package