Compare commits
No commits in common. "c10s" and "c8-beta" have entirely different histories.
@ -1 +0,0 @@
|
|||||||
1
|
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
/numpy-1.23.4.tar.gz
|
SOURCES/numpy-1.23.5.tar.gz
|
||||||
/numpy-1.23.5.tar.gz
|
|
||||||
|
1
.python3.11-numpy.metadata
Normal file
1
.python3.11-numpy.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
6c7f2278b4ddd113b30821e7e4d5f246dc3ee735 SOURCES/numpy-1.23.5.tar.gz
|
@ -61,6 +61,13 @@ Requires: python%{python3_pkgversion}-numpy%{?_isa} = %{version}-%{release
|
|||||||
Requires: python%{python3_pkgversion}-devel
|
Requires: python%{python3_pkgversion}-devel
|
||||||
Provides: python%{python3_pkgversion}-f2py = %{version}-%{release}
|
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
|
%description -n python%{python3_pkgversion}-numpy-f2py
|
||||||
This package includes a version of f2py that works properly with NumPy.
|
This package includes a version of f2py that works properly with NumPy.
|
||||||
|
|
||||||
@ -99,6 +106,9 @@ rm f2py
|
|||||||
rm f2py3
|
rm f2py3
|
||||||
popd &> /dev/null
|
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
|
# distutils from setuptools don't have the patch that was created to avoid standard runpath here
|
||||||
# we strip it manually instead
|
# 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}'
|
%{__python3} runtests.py -v --no-build -- -ra -k 'not test_ppc64_ibm_double_double128 %{?ix86_k}'
|
||||||
%endif
|
%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
|
%files -n python%{python3_pkgversion}-numpy
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
@ -152,6 +175,7 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
|||||||
|
|
||||||
%files -n python%{python3_pkgversion}-numpy-f2py
|
%files -n python%{python3_pkgversion}-numpy-f2py
|
||||||
%{_bindir}/f2py%{python3_pkgversion}
|
%{_bindir}/f2py%{python3_pkgversion}
|
||||||
|
%ghost %{_bindir}/f2py3
|
||||||
%{python3_sitearch}/%{modname}/f2py
|
%{python3_sitearch}/%{modname}/f2py
|
||||||
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
|
|
||||||
product_versions:
|
|
||||||
- rhel-9
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
15
plan.fmf
15
plan.fmf
@ -1,15 +0,0 @@
|
|||||||
execute:
|
|
||||||
how: tmt
|
|
||||||
discover:
|
|
||||||
how: shell
|
|
||||||
tests:
|
|
||||||
- name: bundled tests
|
|
||||||
require:
|
|
||||||
- gcc
|
|
||||||
- python3.11-pytest
|
|
||||||
- python3.11-numpy
|
|
||||||
- python3.11-pip
|
|
||||||
duration: 30m
|
|
||||||
test: |
|
|
||||||
pip3.11 install hypothesis==6.45.0 typing_extensions==4.4.0 &&
|
|
||||||
python3.11 -c 'import numpy; assert numpy.test()'
|
|
Loading…
Reference in New Issue
Block a user