add clang compile support
This commit is contained in:
parent
49fb136670
commit
3da1af5fa2
@ -2,7 +2,7 @@
|
||||
%global debug_package %{nil}
|
||||
Name: scipy
|
||||
Version: 1.10.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering
|
||||
License: Qhull and Apache-2.0
|
||||
URL: https://www.scipy.org
|
||||
@ -59,6 +59,7 @@ export SCIPY_USE_PYTHRAN=0
|
||||
export CFLAGS="$RPM_OPT_FLAGS -lm"
|
||||
export LDFLAGS="$RPM_LD_FLAGS -Wall -shared"
|
||||
pushd %{py3dir}
|
||||
%global _hardening_clang_cflags %{nil}
|
||||
env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\
|
||||
OPENBLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
||||
%py3_build
|
||||
@ -100,6 +101,9 @@ echo "%{_libdir}/%{name}" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.c
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 11 2023 liyunfei <liyunfei@huawei.com> - 1.10.1-2
|
||||
- add clang compile support
|
||||
|
||||
* Mon Jul 10 2023 wangkai <13474090681@163.com> - 1.10.1-1
|
||||
- Update to 1.10.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user