diff --git a/python-numpy.changes b/python-numpy.changes index 56daac5..005b8dd 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 29 12:20:01 UTC 2019 - Colleen Murphy + +- Fix python sitearch paths for SLE_12_SP3/4 + ------------------------------------------------------------------- Mon Mar 25 10:20:50 UTC 2019 - Thomas Bechtold diff --git a/python-numpy.spec b/python-numpy.spec index 3960868..8f37eee 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -259,6 +259,15 @@ popd &> /dev/null %python2_only %{p_bindir}/f2py2* %python3_only %{p_bindir}/f2py3* %python3_only %{p_bindir}/f2py +%if %{without hpc} +%{python_sitearch}/numpy/ +%{python_sitearch}/numpy-%{version}-py*.egg-info +%exclude %{python_sitearch}/numpy/*/*/*.c +%exclude %{python_sitearch}/numpy/*/*.h +%exclude %{python_sitearch}/numpy/*/*/*.h +%exclude %{python_sitearch}/numpy/*/*/*/*.h +%exclude %{python_sitearch}/numpy/core/lib/libnpymath.a +%else %{p_python_sitearch}/numpy/ %{p_python_sitearch}/numpy-%{version}-py*.egg-info %exclude %{p_python_sitearch}/numpy/*/*/*.c @@ -266,6 +275,7 @@ popd &> /dev/null %exclude %{p_python_sitearch}/numpy/*/*/*.h %exclude %{p_python_sitearch}/numpy/*/*/*/*.h %exclude %{p_python_sitearch}/numpy/core/lib/libnpymath.a +%endif %if %{with hpc} %define hpc_module_pname python%(a=%{hpc_python_version}; echo -n ${a/.*/})-numpy @@ -279,10 +289,18 @@ popd &> /dev/null %files %{python_files devel} %defattr(-,root,root) %license LICENSE.txt +%if %{without hpc} +%{python_sitearch}/numpy/*/*/*.c +%{python_sitearch}/numpy/*/*.h +%{python_sitearch}/numpy/*/*/*.h +%{python_sitearch}/numpy/*/*/*/*.h +%{python_sitearch}/numpy/core/lib/libnpymath.a +%else %{p_python_sitearch}/numpy/*/*/*.c %{p_python_sitearch}/numpy/*/*.h %{p_python_sitearch}/numpy/*/*/*.h %{p_python_sitearch}/numpy/*/*/*/*.h %{p_python_sitearch}/numpy/core/lib/libnpymath.a +%endif %changelog