%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-script Version: 1.7.5 Release: 4%{?dist} Summary: A pluggable command-line frontend Group: System Environment/Libraries # paste/script/wsgiserver/ is BSD licensed from CherryPy # paste/script/util/subprocess24.py is MIT or Python # string24.py may also be MIT or Python (looks to have come from the python-2.4 release) # The rest of the code is MIT. License: MIT and BSD and (MIT or Python) URL: http://pythonpaste.org/script Source0: http://pypi.python.org/packages/source/P/PasteScript/PasteScript-%{version}.tar.gz Patch0: paste-system-uuid.patch Patch1: paste-unbundle.patch Patch2: paste-script-use-system-tempita.patch # https://bitbucket.org/ianb/pastescript/changeset/a19e462769b4 Patch3: paste-script-a19e462769b4.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python2-devel %if 0%{?fedora} && 0%{?fedora} < 13 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools %endif BuildRequires: python-paste-deploy Requires: python-paste >= 1.3 Requires: python-paste-deploy Requires: python-cheetah Requires: python-setuptools Requires: pyOpenSSL Requires: python-cherrypy %description Paster is pluggable command-line frontend, including commands to setup package file layouts Built-in features: * Creating file layouts for packages. For instance a setuptools-ready file layout. * Serving up web applications, with configuration based on paste.deploy %prep %setup -q -n PasteScript-%{version} %patch0 -p1 -b .uuid %patch1 -p1 -b .unbundle %patch2 -p1 -b .tempita %patch3 -p1 -b .groups find docs -type f -exec chmod 0644 \{\} \; %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root=%{buildroot} rm -fr %{buildroot}%{python_sitelib}/tests #%check #PYTHONPATH=$(pwd):tests/fake_packages/FakePlugin.egg python setup.py test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs/* %{python_sitelib}/* %{_bindir}/paster %changelog * Mon Feb 27 2012 Luke Macken <lmacken@redhat.com> - 1.7.5-4 - Remove the conflicting tests module (#797813) * Thu Feb 23 2012 Luke Macken <lmacken@redhat.com> - 1.7.5-3 - Apply a patch from upstream to fix a security issue when running Paster as root (#796790) * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Nov 08 2011 Luke Macken <lmacken@redhat.com> - 1.7.5-1 - Update to 1.7.5 * Fri Oct 28 2011 Luke Macken <lmacken@redhat.com> - 1.7.4.2-1 - Update to 1.7.4.2 - Update the unbundle patch * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.7.3-6 - Use system tempita instead of tempita bundled in paste * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.3-5 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sat Jul 3 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.7.3-4 - Few cleanups - License tag fix - Unbundle libraries - Require python-cherrypy for now; might want to move the bundled library out of cherrypy in the future * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> - 1.7.3-1 - Update to 1.7.3 - Remove copydir_re_fix.patch * Tue Dec 9 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.6.3-5 - Add patch for copydir re error - (http://trac.pythonpaste.org/pythonpaste/ticket/313) * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.6.3-4 - Rebuild for Python 2.6 * Mon Oct 6 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 1.6.3-3 - Require python-setuptools - BuildRequire python-paste-deploy * Sat Jun 14 2008 Luke Macken <lmacken@redhat.com> - 1.6.3-1 - Update to Paste 1.6.3 * Mon Mar 10 2008 Luke Macken <lmacken@redhat.com> - 1.6.2-2 - Require python-paste >= 1.3 * Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 1.6.2-1 - Update to 1.6.2 * Wed Oct 3 2007 Luke Macken <lmacken@redhat.com> - 1.3.6-1 - 1.3.6 * Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> - 1.3.5-2 - Update for python-setuptools changes in rawhide * Sun Jul 8 2007 Luke Macken <lmacken@redhat.com> - 1.3.5-1 - 1.3.5 * Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> - 1.1-1 - 1.1 * Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> - 1.0-4 - Add python-devel to BuildRequires - Python 2.5 fixes - 1.0 * Sun Sep 17 2006 Luke Macken <lmacken@redhat.com> - 0.9.8-1 - 0.9.8 * Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 0.9-5 - Rebuild for FC6 * Mon Aug 21 2006 Luke Macken <lmacken@redhat.com> - 0.9-4 - Include .pyo files instead of ghosting them. * Sat Jul 29 2006 Luke Macken <lmacken@redhat.com> - 0.9-3 - Require python-paste-deploy * Wed Jul 26 2006 Luke Macken <lmacken@redhat.com> - 0.9-2 - Rename to python-paste-script - Use consistent buildroot variables - Fix docs inclusion * Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 0.9-1 - Initial package