%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: python-paste Version: 1.7.2 Release: 2 Summary: Tools for using a Web Server Gateway Interface stack Group: System Environment/Libraries License: MIT URL: http://pythonpaste.org Source0: http://cheeseshop.python.org/packages/source/P/Paste/Paste-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools-devel %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} %{__sed} -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py # clean docs directory pushd docs rm StyleGuide.txt *.css */*.css */*.js popd %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --single-version-externally-managed \ --skip-build -O1 --root=%{buildroot} echo '%defattr (0644,root,root,0755)' > pyfiles find %{buildroot}%{python_sitelib}/paste -type d | \ sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles find %{buildroot}%{python_sitelib}/paste -not -type d -not -name '*.pyo' | \ sed 's:%{buildroot}\(.*\):\1:' >> pyfiles find %{buildroot}%{python_sitelib}/paste -not -type d -name '*.pyo' | \ sed 's:%{buildroot}\(.*\):%ghost \1:' >> pyfiles %clean rm -rf %{buildroot} %files -f pyfiles %defattr(-,root,root,-) %doc docs/* %{python_sitelib}/Paste-%{version}-py%{pyver}* %changelog * 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