| |
@@ -2,7 +2,7 @@
|
| |
|
| |
Name: python-http-parser
|
| |
Version: 0.8.3
|
| |
- Release: 19%{?dist}
|
| |
+ Release: 20%{?dist}
|
| |
Summary: HTTP request/response parser for Python
|
| |
|
| |
License: MIT
|
| |
@@ -37,6 +37,7 @@
|
| |
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: python3-setuptools
|
| |
+ BuildRequires: python3-Cython
|
| |
|
| |
%description -n python3-http-parser
|
| |
HTTP request/response parser for Python compatible with Python 2.x
|
| |
@@ -49,15 +50,21 @@
|
| |
%setup -q -n http-parser-%{version}
|
| |
%patch0 -p1
|
| |
|
| |
+ # Rename the Makefile so it can be used to rebuild the Cython files.
|
| |
+ mv Makefile.ext Makefile
|
| |
+
|
| |
+ # Remove the cythonized files in order to regenerate them during build.
|
| |
+ rm $(grep -rl '/\* Generated by Cython')
|
| |
|
| |
%build
|
| |
- %py2_build
|
| |
%py3_build
|
| |
+ %py2_build
|
| |
+
|
| |
|
| |
|
| |
%install
|
| |
- %py2_install
|
| |
%py3_install
|
| |
+ %py2_install
|
| |
|
| |
|
| |
%files -n python2-http-parser
|
| |
@@ -73,6 +80,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Sat Jun 01 2019 Charalampos Stratakis <cstratak@redhat.com> - 0.8.3-20
|
| |
+ - Recythonize the sources
|
| |
+
|
| |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-19
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |