From 7ecea40b4a518d43d08c927fd099a9b79ef8ed51 Mon Sep 17 00:00:00 2001 From: Ignacio Vazquez-Abrams Date: Apr 06 2005 09:53:01 +0000 Subject: auto-import python-cherrypy-2.0.0-0.1.b on branch devel from python-cherrypy-2.0.0-0.1.b.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..88bdf6f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +CherryPy-2.0.0b.tar.gz diff --git a/python-cherrypy-regression-test.patch b/python-cherrypy-regression-test.patch new file mode 100644 index 0000000..cd13523 --- /dev/null +++ b/python-cherrypy-regression-test.patch @@ -0,0 +1,8 @@ +--- CherryPy-2.0.0b/cherrypy/test/test.py-orig 2005-03-20 20:24:17.437466584 +0100 ++++ CherryPy-2.0.0b/cherrypy/test/test.py 2005-03-20 20:23:39.860179200 +0100 +@@ -186,4 +186,4 @@ + # - test hidden classes + # ... + +-raw_input('hit enter') ++sys.exit(len(failedList)) diff --git a/python-cherrypy-tutorial-doc.patch b/python-cherrypy-tutorial-doc.patch new file mode 100644 index 0000000..9e8d183 --- /dev/null +++ b/python-cherrypy-tutorial-doc.patch @@ -0,0 +1,12 @@ +# Do not build tutorial and test +--- CherryPy-2.0.0b/setup.py-orig 2005-03-20 20:16:11.392356672 +0100 ++++ CherryPy-2.0.0b/setup.py 2005-03-20 20:16:27.167958416 +0100 +@@ -22,7 +22,7 @@ + author_email="team@cherrypy.org", + url="http://www.cherrypy.org", + license="BSD", +- packages=["cherrypy", "cherrypy.lib", "cherrypy.lib.filter", "cherrypy.tutorial", "cherrypy.test"], ++ packages=["cherrypy", "cherrypy.lib", "cherrypy.lib.filter"], + download_url="http://trac.cherrypy.org/cgi-bin/trac.cgi/wiki/CherryPyDownload" + ) + diff --git a/python-cherrypy.spec b/python-cherrypy.spec new file mode 100644 index 0000000..0fc01fb --- /dev/null +++ b/python-cherrypy.spec @@ -0,0 +1,63 @@ +%define pyver %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()") +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-cherrypy +Version: 2.0.0 +Release: 0.1.b +Summary: A pythonic, object-oriented web development framework +Group: Development/Libraries +License: BSD +URL: http://www.cherrypy.org/ +Source0: http://dl.sf.net/cherrypy/CherryPy-2.0.0b.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch0: python-cherrypy-tutorial-doc.patch +Patch1: python-cherrypy-regression-test.patch + +BuildArch: noarch +Requires: python-abi = %{pyver} + +%description +CherryPy allows developers to build web applications in much the same way +they would build any other object-oriented Python program. This usually +results in smaller source code developed in less time. + +%prep +%setup -q -n CherryPy-2.0.0b +%patch0 -p1 +%patch1 -p1 + + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix} + +%check +cd cherrypy/test +%{__python} test.py + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc CHANGELOG.txt CHERRYPYTEAM.txt README.txt +%doc cherrypy/tutorial +%dir %{python_sitelib}/cherrypy +%dir %{python_sitelib}/cherrypy/lib +%dir %{python_sitelib}/cherrypy/lib/filter +%{python_sitelib}/cherrypy/*.py +%{python_sitelib}/cherrypy/*.pyc +%ghost %{python_sitelib}/cherrypy/*.pyo +%{python_sitelib}/cherrypy/lib/*.py +%{python_sitelib}/cherrypy/lib/*.pyc +%ghost %{python_sitelib}/cherrypy/lib/*.pyo +%{python_sitelib}/cherrypy/lib/filter/*.py +%{python_sitelib}/cherrypy/lib/filter/*.pyc +%ghost %{python_sitelib}/cherrypy/lib/filter/*.pyo + +%changelog +* Wed Mar 23 2005 Gijs Hollestelle 2.0.0-0.1.b +- Initial Fedora Package diff --git a/sources b/sources index e69de29..f75515b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1a7822256854f67ab1b3def7923d9920 CherryPy-2.0.0b.tar.gz