Blob Blame 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.2
Release:        1%{?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 Aug 11 2009 Till Maas <opensource@till.name> - 1.0.2-1
- Update to new upstream release

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-3
- Rebuild for Python 2.6

* 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