diff --git a/python-http-parser.changes b/python-http-parser.changes index 45603bf..29be1fd 100644 --- a/python-http-parser.changes +++ b/python-http-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 2 12:42:31 UTC 2019 - Tomáš Chvátal + +- Regen cython code to fix an issue with python 3.7 + ------------------------------------------------------------------- Fri Sep 1 18:01:25 UTC 2017 - jengelh@inai.de diff --git a/python-http-parser.spec b/python-http-parser.spec index 554b321..04b893b 100644 --- a/python-http-parser.spec +++ b/python-http-parser.spec @@ -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