已合并
do not remove rpath for shared objects #67
Funda Wang创建于 2025年7月28日
do not remove rpath for shared objects #67
已合并
Funda Wang创建于 2025年7月28日
从master合入到master
共 12 个文件变更+15-19
@@ -0,0 +1,2 @@
1+*.gz filter=lfs diff=lfs merge=lfs -text
2+*.zip filter=lfs diff=lfs merge=lfs -text
@@ -0,0 +1,2 @@
1+[lfs]
2+ url = https://artlfs.openeuler.openatom.cn/src-openEuler/scipy
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview
Mscipy.spec+11-19
@@ -1,7 +1,11 @@
1%global debug_package %{nil}1%global debug_package %{nil}
2+ 
3+# The code is not safe to build with LTO
4+%global _lto_cflags %{nil}
5+ 
2Name: scipy6Name: scipy
3Version: 1.15.37Version: 1.15.3
4-Release: 18+Release: 2
5Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering9Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering
6License: Qhull and Apache-2.010License: Qhull and Apache-2.0
7URL: https://www.scipy.org11URL: https://www.scipy.org
@@ -93,7 +97,7 @@ env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\
93popd97popd
94 98 
95%install99%install
96-export CFLAGS="$RPM_OPT_FLAGS -lm"100+export CFLAGS="$RPM_OPT_FLAGS"
97 101 
98pushd %{py3dir}102pushd %{py3dir}
99env FFLAGS="$RPM_OPT_FLAGS -fPIC" \103env FFLAGS="$RPM_OPT_FLAGS -fPIC" \
@@ -102,29 +106,17 @@ popd
102 106 
103find %{buildroot} -type f -name '*.so' -exec strip '{}' ';'107find %{buildroot} -type f -name '*.so' -exec strip '{}' ';'
104 108 
105-cd $RPM_BUILD_ROOT/usr
106-file `find -type f`| grep -w ELF | awk -F":" '{print $1}' | for i in `xargs`
107-do
108- chrpath -d $i
109-done
110-cd -
111-mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
112-echo "%{_bindir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
113-echo "%{_libdir}/%{name}" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
114- 
115-%post
116-/sbin/ldconfig
117- 
118-%postun
119-/sbin/ldconfig
120- 
121%files -n python3-scipy109%files -n python3-scipy
122%license LICENSE.txt110%license LICENSE.txt
123%{python3_sitearch}/scipy111%{python3_sitearch}/scipy
124%{python3_sitearch}/*.dist-info112%{python3_sitearch}/*.dist-info
125-%config(noreplace) /etc/ld.so.conf.d/*
126 113 
127%changelog114%changelog
115+* Mon Jul 28 2025 Funda Wang <fundawang@yeah.net> - 1.15.3-2
116+- do not remove rpath for shared objects, as the package itself is using
117+ special tweaked rpath for shared libraries to work
118+- do not build with lto, it may cause crash
119+ 
128* Thu Jul 03 2025 Liu Chao <liuchao173@huawei.com> - 1.15.3-1120* Thu Jul 03 2025 Liu Chao <liuchao173@huawei.com> - 1.15.3-1
129- Upgrade to 1.15.3 because numpy upgrades to 2.3.0121- Upgrade to 1.15.3 because numpy upgrades to 2.3.0
130 122 
Binary files do not support preview