diff --git a/.cvsignore b/.cvsignore index e69de29..50b1bc6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +flup-1.0.tar.gz diff --git a/python-flup.spec b/python-flup.spec new file mode 100644 index 0000000..cb3259c --- /dev/null +++ b/python-flup.spec @@ -0,0 +1,58 @@ +%{!?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 - 1.0-2 +- Fedora <= 7: python-setuptools needs to be 0.6c6 or newer +- Move build to %%build + +* Mon Oct 22 2007 Till Maas - 1.0-1 +- initial spec diff --git a/sources b/sources index e69de29..1b8d9a1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +530801fe835fd9a680457e443eb95578 flup-1.0.tar.gz