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

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a27f57d239cb0214d7ad8f77548d2a1a49613559d76b83aed08e464d85566d52
size 112376

3
http-parser-0.7.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f45c06019045afd5267930431284690e42ffb039ac2a433ff346a3bf92e9471f
size 135346

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 23 12:00:22 UTC 2011 - saschpe@suse.de
- Update to version 0.7.0
-------------------------------------------------------------------
Mon Jun 20 18:30:34 UTC 2011 - jfunk@funktronics.ca

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)