Compare commits

...

No commits in common. 'c9-beta' and 'i8c' have entirely different histories.
c9-beta ... i8c

@ -61,6 +61,13 @@ 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.
@ -99,6 +106,9 @@ 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
@ -120,6 +130,19 @@ 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
@ -152,10 +175,14 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}
%files -n python%{python3_pkgversion}-numpy-f2py
%{_bindir}/f2py%{python3_pkgversion}
%ghost %{_bindir}/f2py3
%{python3_sitearch}/%{modname}/f2py
%changelog
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.23.5-1
- Rebuilt for MSVSphere 8.8
* Fri Dec 02 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.23.5-1
- Initial package
- Fedora contributions by:

Loading…
Cancel
Save