Blob Blame Raw
Name:           Spawning
Version:        0.9.7
Release:        7%{?dist}
Summary:        A HTTP server for hosting WSGI python web applications

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

BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
BuildRequires:  help2man
BuildRequires:  python2-eventlet >= 0.9.9
Requires:       python2-eventlet >= 0.9.9
Requires:       python2-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

%build
%{__python2} setup.py build


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

sed -i -e 1d $RPM_BUILD_ROOT/%{python2_sitelib}/spawning/spawning_controller.py
sed -i -e 1d $RPM_BUILD_ROOT/%{python2_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/%{python2_sitelib} help2man $RPM_BUILD_ROOT/%{_bindir}/spawning > $RPM_BUILD_ROOT/%{_mandir}/man1/spawning.1



%files
%doc AUTHORS.txt LICENSE.txt NEWS.txt README.rst rc-scripts
%{python2_sitelib}/*
%{_bindir}/spawning
%{_mandir}/man1/spawning.1*


%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sun Jul 15 2018 Kevin Fenzi <kevin@scrye.com> - 0.9.7-6
- Clean up FTBFS and modernize spec.
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Tue Feb 06 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.7-4
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat Oct 15 2016 Kevin Fenzi <kevin@scrye.com> - 0.9.7-1
- Update to 0.9.7. Fixes bug #1385284

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-10
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* 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.