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