%{!?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-script
Version: 1.3.6
Release: 1%{?dist}
Summary: A pluggable command-line frontend
Group: System Environment/Libraries
License: MIT
URL: http://pythonpaste.org/script
Source0: http://cheeseshop.python.org/packages/source/P/PasteScript/PasteScript-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
Requires: python-paste, python-paste-deploy, python-cheetah
%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}
%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/script -type d | \
sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles
find %{buildroot}%{python_sitelib}/paste/script -not -type d | \
sed 's:%{buildroot}\(.*\):\1:' >> pyfiles
%clean
rm -rf %{buildroot}
%files -f pyfiles
%defattr(-,root,root,-)
%doc docs/*
%{python_sitelib}/PasteScript-%{version}-py%{pyver}*
%{_bindir}/paster
%changelog
* 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