[Spawning] Updated for upstream release
smilner
smilner at fedoraproject.org
Tue Sep 7 23:19:19 UTC 2010
commit 44af1e3053ea3d15d27c7016aff59931efd71af8
Author: Steve 'Ashcrow' Milner <stevem at gnulinux.net>
Date: Tue Sep 7 19:19:17 2010 -0400
Updated for upstream release
.gitignore | 3 +++
Spawning.spec | 45 ++++++++++++++++++++++++++++-----------------
sources | 3 ++-
3 files changed, 33 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ea61350..d0e545a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
Spawning-0.9.3rc2.tar.gz
spawning-without-with.patch
+/spawning-eventlet-version.patch
+/spawning-without-with.patch
+/Spawning-0.9.4.tar.gz
diff --git a/Spawning.spec b/Spawning.spec
index 59605fb..5447004 100644
--- a/Spawning.spec
+++ b/Spawning.spec
@@ -1,36 +1,43 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: Spawning
-Version: 0.9.3
-Release: 0.rc2.6%{?dist}
+Version: 0.9.4
+Release: 1%{?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/Spawning/Spawning-0.9.3rc2.tar.gz
-Patch0: spawning-without-with.patch
+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
-Requires: python-eventlet
+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 -n Spawning-0.9.3rc2
+%setup -q
+%patch0 -p0
# This patch is needed for python versions without the with statement only
%if 0%{?rhel} == 5 || 0%{?rhel} == 4
-%patch0 -p0
+%patch1 -p0
%endif
+
%build
%{__python} setup.py build
@@ -39,21 +46,18 @@ and automatic graceful upgrading of code.
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-# Rename the spawn command to spawning.
-# See upstream ticket:
-# http://github.com/rtyler/Spawning/issues/issue/8
-mv $RPM_BUILD_ROOT/%{_bindir}/spawn $RPM_BUILD_ROOT/%{_bindir}/spawning
-
-#
-# Remove python line from 2 files that are not executable
-#
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/spawn
-
+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
@@ -63,8 +67,15 @@ rm -rf $RPM_BUILD_ROOT
%doc AUTHORS.txt LICENSE.txt NEWS.txt README.rst rc-scripts
%{python_sitelib}/*
%{_bindir}/spawning
+%{_mandir}/man1/spawning.1*
+
%changelog
+* Tue Sep 7 2010 Steve 'Ashcrow' Milner <me at 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 at fedoraproject.org> - 0.9.3-0.rc2.6
- Rebuild for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
diff --git a/sources b/sources
index b78ab1a..e9966f8 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
-38fdc2e0f9494d9e6719223dd4cf366f Spawning-0.9.3rc2.tar.gz
+d0e5b275087622b3bd3d7fc9940f2bc1 spawning-eventlet-version.patch
ed148546b77dcd22bd32b0b315303721 spawning-without-with.patch
+54a7fc183a8bb2428c61e0291b8cf1d4 Spawning-0.9.4.tar.gz
More information about the scm-commits
mailing list