Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e68864066b1c2342f8c6568e41210012 > files > 2

Spawning-0.9.5-2.fc15.src.rpm

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           Spawning
Version:        0.9.5
Release:        2%{?dist}
Summary:        A HTTP server for hosting WSGI python web applications

Group:          Development/Languages
License:        MIT
URL:            http://pypi.python.org/pypi/Spawning
Source0:        http://pypi.python.org/packages/source/S/%{name}/%{name}-%{version}.tar.gz
Patch0:         spawning-eventlet-version.patch
Patch1:         spawning-without-with.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python-setuptools
BuildRequires:  help2man
BuildRequires:  python-eventlet >= 0.9.9
Requires:       python-eventlet >= 0.9.9
Requires:       python-setuptools


%description
Spawning is a wsgi server which supports multiple processes, 
multiple threads, green threads, non-blocking HTTP io, 
and automatic graceful upgrading of code.


%prep
%setup -q
%patch0 -p0
# This patch is needed for python versions without the with statement only
%if 0%{?rhel} == 5 || 0%{?rhel} == 4
%patch1 -p0
%endif



%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

sed -i -e 1d $RPM_BUILD_ROOT/%{python_sitelib}/spawning/spawning_controller.py
sed -i -e 1d $RPM_BUILD_ROOT/%{python_sitelib}/spawning/spawning_child.py

# Fix permissions on example init script to not pull in deps
# It's only an example file.
chmod 644 rc-scripts/init.d/spawning*

# Generate a man page
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib} help2man $RPM_BUILD_ROOT/%{_bindir}/spawning > $RPM_BUILD_ROOT/%{_mandir}/man1/spawning.1


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc AUTHORS.txt LICENSE.txt NEWS.txt README.rst rc-scripts
%{python_sitelib}/*
%{_bindir}/spawning
%{_mandir}/man1/spawning.1*


%changelog
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Dec 29 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9.5-1
- Update for upstream for release.

* Tue Sep  7 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9.4-2
- Updated spawning-without-with.patch for current release.

* Tue Sep  7 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9.4-1
- Update for upstream release.
- Added man page
- Aded spawning-eventlet-version.patch (see http://github.com/rtyler/Spawning/issues/#issue/17)

* Sat Jul 31 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.3-0.rc2.6
- Rebuild for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Sun Jul 18 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9.3-0.rc2.5
- Applied patch from BZ#613615 removing the with statement for EPEL <= 5
- added setuptools as a dependency

* Sat May 01 2010 Kevin Fenzi <kevin@tummy.com> - 0.9.3-0.rc2.4
- Fix permissions on doc files. 

* Fri Apr 30 2010 Kevin Fenzi <kevin@tummy.com> - 0.9.3-0.rc2.3
- Strip out env lines from some files. 
- Add rc-scripts as doc files. 

* Thu Apr 29 2010 Kevin Fenzi <kevin@tummy.com> - 0.9.3-0.rc2.2
- Add python-eventlet Requires

* Wed Apr 28 2010 Kevin Fenzi <kevin@tummy.com> - 0.9.3-0.rc2.1
- Initial version for review.