From 86505550c6885e8e62635cbd4742a8a8e034e491 Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Mar 15 2012 14:12:52 +0000 Subject: Initial import #803601 --- 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 - 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 - 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