Compare commits
No commits in common. "c8-beta" and "c9-beta" have entirely different histories.
@ -61,13 +61,6 @@ Requires: python%{python3_pkgversion}-numpy%{?_isa} = %{version}-%{release
|
||||
Requires: python%{python3_pkgversion}-devel
|
||||
Provides: python%{python3_pkgversion}-f2py = %{version}-%{release}
|
||||
|
||||
# Require alternatives version that implements the --keep-foreign flag
|
||||
Requires(postun): alternatives >= 1.19.1-1
|
||||
# python3.11 installs the alternatives master symlink to which we attach a slave
|
||||
Requires: python%{python3_pkgversion}
|
||||
Requires(post): python%{python3_pkgversion}
|
||||
Requires(postun): python%{python3_pkgversion}
|
||||
|
||||
%description -n python%{python3_pkgversion}-numpy-f2py
|
||||
This package includes a version of f2py that works properly with NumPy.
|
||||
|
||||
@ -106,9 +99,6 @@ rm f2py
|
||||
rm f2py3
|
||||
popd &> /dev/null
|
||||
|
||||
# All ghost files controlled by alternatives need to exist for the files
|
||||
# section check to succeed
|
||||
touch %{buildroot}%{_bindir}/f2py3
|
||||
|
||||
# distutils from setuptools don't have the patch that was created to avoid standard runpath here
|
||||
# we strip it manually instead
|
||||
@ -130,19 +120,6 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
||||
%{__python3} runtests.py -v --no-build -- -ra -k 'not test_ppc64_ibm_double_double128 %{?ix86_k}'
|
||||
%endif
|
||||
|
||||
%post -n python%{python3_pkgversion}-numpy-f2py
|
||||
alternatives --add-slave python3 %{_bindir}/python%{python3_version} \
|
||||
%{_bindir}/f2py3 \
|
||||
f2py3 \
|
||||
%{_bindir}/f2py%{python3_version}
|
||||
|
||||
%postun -n python%{python3_pkgversion}-numpy-f2py
|
||||
# Do this only during uninstall process (not during update)
|
||||
if [ $1 -eq 0 ]; then
|
||||
alternatives --keep-foreign --remove-slave python3 %{_bindir}/python%{python3_version} \
|
||||
f2py3
|
||||
fi
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-numpy
|
||||
%license LICENSE.txt
|
||||
@ -175,7 +152,6 @@ fi
|
||||
|
||||
%files -n python%{python3_pkgversion}-numpy-f2py
|
||||
%{_bindir}/f2py%{python3_pkgversion}
|
||||
%ghost %{_bindir}/f2py3
|
||||
%{python3_sitearch}/%{modname}/f2py
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user