Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-flup
Version:        1.0
Release:        2%{?dist}
Summary:        Random assortment of WSGI servers for python

Group:          Development/Libraries
License:        BSD
URL:            http://trac.saddi.com/flup
Source0:        http://www.saddi.com/software/flup/dist/flup-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch

%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel
%else
BuildRequires: python-setuptools >= 0.6c6
%endif


%description
This package contains classes to create WSGI servers in python, e.g. fastcgi.


%prep
%setup -q -n flup-%{version}


%build
python setup.py build


%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT

python setup.py install --skip-build --root $RPM_BUILD_ROOT 


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc ChangeLog
%{python_sitelib}/*


%changelog
* Tue Oct 23 2007 Till Maas <opensource till name> - 1.0-2
- Fedora <= 7: python-setuptools needs to be 0.6c6 or newer
- Move build to %%build

* Mon Oct 22 2007 Till Maas <opensource till name> - 1.0-1
- initial spec