15
0
Sascha Peilicke
2011-09-23 12:01:57 +00:00
committed by Git OBS Bridge
parent c813b83f33
commit 8e43a63f8f
4 changed files with 15 additions and 16 deletions

View File

@@ -16,18 +16,18 @@
#
%define mod_name http-parser
Name: python-http-parser
Version: 0.6.0
Version: 0.7.0
Release: 0
Url: https://github.com/benoitc/http-parser/
Summary: HTTP Request/Response Parser for Python in C
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/h/http-parser/http-parser-0.6.0.tar.bz2
Source: http://pypi.python.org/packages/source/h/http-parser/http-parser-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel python-setuptools
BuildRequires: python-devel
BuildRequires: python-distribute
%if 0%{?suse_version}
%py_requires
%endif
@@ -38,21 +38,15 @@ BuildRequires: python-devel python-setuptools
HTTP request/response parser for Python in C under MIT License, based on
http-parser from Ryan Dahl.
%prep
%setup -q -n %{mod_name}-%{version}
%setup -q -n http-parser-%{version}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
python setup.py build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Yikes
rm -rf %{buildroot}/usr/http_parser
%clean
rm -rf %{buildroot}
rm -rf %{buildroot}%{python_sitelib}/http_parser/{LICENSE,MANIFEST.in,NOTICE,README.rst,THANKS} # Remove junk
%files
%defattr(-,root,root)