forked from pool/python-http-parser
Fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=2
This commit is contained in:
@@ -25,7 +25,7 @@ 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.gz
|
||||
Source: http://pypi.python.org/packages/source/h/http-parser/http-parser-0.6.0.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel python-setuptools
|
||||
%if 0%{?suse_version}
|
||||
@@ -40,14 +40,16 @@ http-parser from Ryan Dahl.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}%{extraver}
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
export 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}
|
||||
@@ -55,6 +57,6 @@ rm -rf %{buildroot}
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE NOTICE README.rst examples
|
||||
%{python_sitelib}/*
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user