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@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@redhat.com> - 0.7.5-1
- Initial package.