%if 0%{?fedora} < 13 && 0%{?rhel} < 6 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif Name: python-paste Version: 1.7.4 Release: 3%{?dist} Summary: Tools for using a Web Server Gateway Interface stack Group: System Environment/Libraries # Most of the code is MIT # paste/exceptions/collector.py is ZPLv2.0 # paste/evalexception/mochikit/MochiKit.js AFL or MIT # paste/lint.py MIT or Apache v2 # subproccess24.py PySourceColor.py, Python # doctest24.py, Public Domain License: MIT and ZPLv2.0 and Python and Public Domain and (AFL or MIT) and (MIT or ASL 2.0) URL: http://pythonpaste.org Source0: http://cheeseshop.python.org/packages/source/P/Paste/Paste-%{version}.tar.gz # In one remaining place, make sure we check for string in the stdlib before we use our copy Patch0: paste-unbundle-stdlib.patch # Use a system version of python-tempita before our bundled copy Patch1: paste-unbundle-tempita.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %if 0%{?fedora} && 0%{?fedora} < 13 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools %endif Requires: python-tempita Requires: pyOpenSSL %description These provide several pieces of "middleware" (or filters) that can be nested to build web applications. Each piece of middleware uses the WSGI (PEP 333) interface, and should be compatible with other middleware based on those interfaces. %prep %setup -q -n Paste-%{version} # Strip #! lines that make these seeme like scripts %{__sed} -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py # clean docs directory pushd docs rm StyleGuide.txt popd %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs/* %{python_sitelib}/* %changelog * Fri Jul 2 2010 Toshio Kuratomi - 1.7.4-3 - Require pyOpenSSL so that we get SSL capabilities * Thu Jul 1 2010 Toshio Kuratomi - 1.7.4-2 - Unbundle tempita and don't rely on utils.string24 * Thu Jun 24 2010 Luke Macken - 1.7.4-1 - 1.7.4 security release * Sun Jul 26 2009 Fedora Release Engineering - 1.7.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jun 22 2009 Kyle VanderBeek - 1.7.2-3 - Package formerly ghost'ed .pyo files - Update to current python package methods * Thu Feb 26 2009 Fedora Release Engineering - 1.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Jan 06 2009 Luke Macken - 1.7.2-1 - Update to 1.7.2 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.7.1-2 - Rebuild for Python 2.6 * Sat Jun 14 2008 Luke Macken - 1.7.1-1 - Update to Paste 1.7.1 * Thu Feb 28 2008 Luke Macken - 1.6-1 - Update to 1.6 * Wed Oct 3 2007 Luke Macken - 1.4.2-1 - 1.4.2 * Sun Sep 2 2007 Luke Macken - 1.4-2 - Update for python-setuptools changes in rawhide * Sat Jul 8 2007 Luke Macken - 1.4-1 - 1.4 * Sat Mar 3 2007 Luke Macken - 1.2.1-1 - 1.2.1 * Sat Dec 9 2006 Luke Macken - 1.0-2 - Add python-devel to BuildRequires - 1.0 * Sun Sep 17 2006 Luke Macken - 0.9.8.1-1 - 0.9.8.1 * Sun Sep 3 2006 Luke Macken - 0.9.3-5 - Rebuild for FC6 * Wed Jul 19 2006 Luke Macken - 0.9.3-4 - Use a smarter shebang removal expression * Wed Jul 19 2006 Luke Macken - 0.9.3-3 - Fix doc inclusion * Sat Jul 15 2006 Luke Macken - 0.9.3-2 - Clean up docs directory - Remove shebang from from non-executable scripts - Use consistent build root variables * Mon Jul 10 2006 Luke Macken - 0.9.3-1 - Initial package