[python-socketpool] Initial import #804004
Bohuslav Kabrda
bkabrda at fedoraproject.org
Fri Mar 16 12:22:57 UTC 2012
commit a2198ad865194be4d356c4f10789749af7af06e5
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Fri Mar 16 13:22:49 2012 +0100
Initial import #804004
.gitignore | 1 +
python-socketpool.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e9c4a84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/socketpool-0.3.0.tar.gz
diff --git a/python-socketpool.spec b/python-socketpool.spec
new file mode 100644
index 0000000..4a85258
--- /dev/null
+++ b/python-socketpool.spec
@@ -0,0 +1,45 @@
+%global pypi_name socketpool
+
+Name: python-%{pypi_name}
+Version: 0.3.0
+Release: 2%{?dist}
+Summary: A simple Python socket pool
+
+License: Public Domain or MIT
+URL: https://github.com/benoitc/%{pypi_name}
+Source0: http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+
+%description
+Socket pool is a simple socket pool that supports multiple factories and
+backends. It can easily be used by gevent, eventlet or any other library.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+rm -rf %{pypi_name}.egg-info
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot} --install-data %{_docdir}
+mv examples %{buildroot}%{_docdir}/%{pypi_name}/
+
+
+%files
+%doc %{_docdir}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}*
+
+
+%changelog
+* Fri Mar 16 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.3.0-2
+- Added the %%{pypi_name} macro for the package name.
+- Removed bundled egg-info directory.
+
+* Fri Mar 16 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.3.0-1
+- Initial package.
+
diff --git a/sources b/sources
index e69de29..53bb284 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0dc2d75bb532ffe97c55202cb872df7e socketpool-0.3.0.tar.gz
More information about the scm-commits
mailing list