| |
@@ -2,12 +2,12 @@
|
| |
|
| |
Name: python-%{srcname}
|
| |
Version: 1.3.1
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 3%{?dist}
|
| |
Summary: Fast kd-tree implementation with OpenMP-enabled queries
|
| |
|
| |
License: LGPLv3+
|
| |
URL: https://github.com/storpipfugl/pykdtree
|
| |
- Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
| |
+ Source0: https://github.com/storpipfugl/pykdtree/archive/v%{version}.tar.gz
|
| |
|
| |
BuildRequires: gcc
|
| |
|
| |
@@ -28,6 +28,7 @@
|
| |
BuildRequires: python3dist(setuptools)
|
| |
BuildRequires: python3dist(nose)
|
| |
BuildRequires: python3dist(numpy)
|
| |
+ BuildRequires: python3dist(cython)
|
| |
|
| |
Requires: python3dist(numpy)
|
| |
|
| |
@@ -40,8 +41,11 @@
|
| |
# Remove bundled egg-info
|
| |
rm -rf %{srcname}.egg-info
|
| |
|
| |
+ # Remove the cythonized files in order to regenerate them during build.
|
| |
+ rm $(grep -rl '/\* Generated by Cython')
|
| |
|
| |
%build
|
| |
+ cython pykdtree/kdtree.pyx
|
| |
%py3_build
|
| |
|
| |
|
| |
@@ -60,6 +64,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Sat Jun 01 2019 Charalampos Stratakis <cstratak@redhat.com> - 1.3.1-3
|
| |
+ - Recythonize the sources
|
| |
+
|
| |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
Also use the github tarball as a source as it contains the .pyx file