add clang compile support

This commit is contained in:
liyunfei 2023-09-25 11:11:24 +08:00
parent 49fb136670
commit 3da1af5fa2

View File

@ -2,7 +2,7 @@
%global debug_package %{nil} %global debug_package %{nil}
Name: scipy Name: scipy
Version: 1.10.1 Version: 1.10.1
Release: 1 Release: 2
Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering
License: Qhull and Apache-2.0 License: Qhull and Apache-2.0
URL: https://www.scipy.org URL: https://www.scipy.org
@ -59,6 +59,7 @@ export SCIPY_USE_PYTHRAN=0
export CFLAGS="$RPM_OPT_FLAGS -lm" export CFLAGS="$RPM_OPT_FLAGS -lm"
export LDFLAGS="$RPM_LD_FLAGS -Wall -shared" export LDFLAGS="$RPM_LD_FLAGS -Wall -shared"
pushd %{py3dir} pushd %{py3dir}
%global _hardening_clang_cflags %{nil}
env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\ env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\
OPENBLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \ OPENBLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
%py3_build %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/* %config(noreplace) /etc/ld.so.conf.d/*
%changelog %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 * Mon Jul 10 2023 wangkai <13474090681@163.com> - 1.10.1-1
- Update to 1.10.1 - Update to 1.10.1