[python-http-parser] Initial import #803601

Bohuslav Kabrda bkabrda at fedoraproject.org
Thu Mar 15 14:13:00 UTC 2012


commit 86505550c6885e8e62635cbd4742a8a8e034e491
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Thu Mar 15 15:12:52 2012 +0100

    Initial import #803601

 .gitignore              |    1 +
 python-http-parser.spec |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..274a6d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/http-parser-0.7.5.tar.gz
diff --git a/python-http-parser.spec b/python-http-parser.spec
new file mode 100644
index 0000000..bed71b5
--- /dev/null
+++ b/python-http-parser.spec
@@ -0,0 +1,46 @@
+Name:           python-http-parser
+Version:        0.7.5
+Release:        2%{?dist}
+Summary:        HTTP request/response parser for Python
+
+License:        MIT
+URL:            https://github.com/benoitc/http-parser/
+Source0:        http://pypi.python.org/packages/source/h/http-parser/http-parser-0.7.5.tar.gz
+
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+
+%filter_provides_in %{python_sitearch}/http_parser/parser.so
+%filter_setup
+
+%description
+HTTP request/response parser for Python compatible with Python 2.x
+(>=2.5.4), Python 3 and Pypy. If possible a C parser based on
+http-parser_ from Ryan Dahl will be used.
+
+%prep
+%setup -q -n http-parser-%{version}
+
+
+%build
+CFLAGS="%{optflags}" %{__python} setup.py build
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot} --install-data %{python_sitearch}
+
+
+%files
+%doc LICENSE README.rst
+%{python_sitearch}/http_parser*
+
+
+%changelog
+* Thu Mar 15 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.7.5-2
+- Removed unneeded rm -rf %%{buildroot}.
+- Placed all files under the %%{python_sitearch}.
+- Filtered provide of the .so file.
+
+* Thu Mar 15 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.7.5-1
+- Initial package.
+
diff --git a/sources b/sources
index e69de29..bf9980c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0a1092f4920f2e77d86aa3602281d4a0  http-parser-0.7.5.tar.gz


More information about the scm-commits mailing list