forked from pool/python-http-parser
- Regen cython code to fix an issue with python 3.7
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=31
This commit is contained in:
committed by
Git OBS Bridge
parent
8d7c13ea72
commit
ce7bd940f0
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 2 12:42:31 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Regen cython code to fix an issue with python 3.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 1 18:01:25 UTC 2017 - jengelh@inai.de
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-http-parser
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -23,12 +23,12 @@ Release: 0
|
||||
Summary: HTTP Request/Response Parser for Python in C
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/benoitc/http-parser/
|
||||
URL: https://github.com/benoitc/http-parser/
|
||||
Source: https://files.pythonhosted.org/packages/source/h/http-parser/http-parser-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -39,6 +39,8 @@ http-parser from Ryan Dahl.
|
||||
%setup -q -n http-parser-%{version}
|
||||
|
||||
%build
|
||||
# fix wrongly generated cyx files
|
||||
find . -name '*.pyx' -exec cython {} \;
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_build
|
||||
|
||||
@@ -48,8 +50,8 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
chmod a-x examples/*
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE NOTICE README.rst examples
|
||||
%license LICENSE
|
||||
%doc NOTICE README.rst examples
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user