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:
parent
be6e97f17a
commit
c813b83f33
3
http-parser-0.6.0.tar.bz2
Normal file
3
http-parser-0.6.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a27f57d239cb0214d7ad8f77548d2a1a49613559d76b83aed08e464d85566d52
|
||||||
|
size 112376
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8c9bf6488fe5b0941b7ceaa0f4852d5f47857761d84d0fc7c6f79b64f9b19889
|
|
||||||
size 129222
|
|
@ -25,7 +25,7 @@ Url: https://github.com/benoitc/http-parser/
|
|||||||
Summary: HTTP Request/Response Parser for Python in C
|
Summary: HTTP Request/Response Parser for Python in C
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel python-setuptools
|
BuildRequires: python-devel python-setuptools
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@ -40,14 +40,16 @@ http-parser from Ryan Dahl.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{mod_name}-%{version}%{extraver}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
# Yikes
|
||||||
|
rm -rf %{buildroot}/usr/http_parser
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -55,6 +57,6 @@ rm -rf %{buildroot}
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE NOTICE README.rst examples
|
%doc LICENSE NOTICE README.rst examples
|
||||||
%{python_sitelib}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user