6d37b97
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
e61f8c9
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
6d37b97
6d37b97
Name:           python-paste-deploy
76eab30
Version:        1.1
76eab30
Release:        1%{?dist}
6d37b97
Summary:        Load, configure, and compose WSGI applications and servers
6d37b97
Group:          System Environment/Libraries
6d37b97
License:        MIT
6d37b97
URL:            http://pythonpaste.org/deploy
6d37b97
Source0:        http://cheeseshop.python.org/packages/source/P/PasteDeploy/PasteDeploy-%{version}.tar.gz
6d37b97
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6d37b97
BuildArch:      noarch
76c3ec2
BuildRequires:  python-setuptools python-devel
6d37b97
Requires:       python-paste
6d37b97
6d37b97
%description
6d37b97
This tool provides code to load WSGI applications and servers from
6d37b97
URIs; these URIs can refer to Python Eggs for INI-style configuration
6d37b97
files.  PasteScript provides commands to serve applications based on
6d37b97
this configuration file.
6d37b97
6d37b97
%prep
6d37b97
%setup -q -n PasteDeploy-%{version}
6d37b97
6d37b97
6d37b97
%build
6d37b97
%{__python} setup.py build
6d37b97
6d37b97
6d37b97
%install
6d37b97
rm -rf %{buildroot}
6d37b97
%{__python} setup.py install --single-version-externally-managed \
6d37b97
                             --skip-build -O1 --root=%{buildroot}
6d37b97
6d37b97
echo '%defattr (0644,root,root,0755)' > pyfiles
6d37b97
find %{buildroot}%{python_sitelib}/paste/deploy -type d | \
6d37b97
        sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles
6d37b97
find %{buildroot}%{python_sitelib}/paste/deploy -not -type d | \
6d37b97
        sed 's:%{buildroot}\(.*\):\1:' >> pyfiles
6d37b97
6d37b97
%clean
6d37b97
rm -rf %{buildroot}
6d37b97
6d37b97
6d37b97
%files -f pyfiles
6d37b97
%defattr(-,root,root,-)
6d37b97
%doc docs/*
e61f8c9
%{python_sitelib}/PasteDeploy-%{version}-py%{pyver}*
6d37b97
6d37b97
6d37b97
6d37b97
%changelog
76eab30
* Sat Mar  3 2007 Luke Macken <lmacken@redhat.com> - 1.1-1
76eab30
- 1.1
76eab30
76c3ec2
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> - 1.0-2
76c3ec2
- Add python-devel to BuildRequires
e61f8c9
- 1.0
e61f8c9
28df7eb
* Sun Sep 17 2006 Luke Macken <lmacken@redhat.com> - 0.9.6-1
28df7eb
- 0.9.6
28df7eb
f401a1a
* Sun Sep  3 2006 Luke Macken <lmacken@redhat.com> - 0.5-4
f401a1a
- Rebuild for FC6
f401a1a
6d37b97
* Mon Aug 21 2006 Luke Macken <lmacken@redhat.com> - 0.5-3
6d37b97
- Include .pyo files instead of ghosting them.
6d37b97
6d37b97
* Mon Jul 24 2006 Luke Macken <lmacken@redhat.com> - 0.5-2
6d37b97
- Fix docs inclusion
6d37b97
- Rename package to python-paste-deploy
6d37b97
- Fix inconsistent use of buildroots
6d37b97
6d37b97
* Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 0.5-1
6d37b97
- Initial package