del rpath from some binaries and bin
This commit is contained in:
parent
9f5b27a9e5
commit
6b658e1fec
24
scipy.spec
24
scipy.spec
@ -2,14 +2,14 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
Name: scipy
|
Name: scipy
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 6
|
Release: 7
|
||||||
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
|
||||||
Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz
|
Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python3-devel python3-numpy >= 1.8.2 python3-numpy-f2py
|
BuildRequires: python3-devel python3-numpy >= 1.8.2 python3-numpy-f2py
|
||||||
BuildRequires: gcc-c++ openblas-devel gcc-gfortran git
|
BuildRequires: gcc-c++ openblas-devel gcc-gfortran git chrpath
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SciPy (pronounced "Sigh Pie") is open-source software for mathematics, science, and engineering.
|
SciPy (pronounced "Sigh Pie") is open-source software for mathematics, science, and engineering.
|
||||||
@ -74,12 +74,32 @@ popd
|
|||||||
|
|
||||||
find %{buildroot} -type f -name '*.so' -exec strip '{}' ';'
|
find %{buildroot} -type f -name '*.so' -exec strip '{}' ';'
|
||||||
|
|
||||||
|
cd $RPM_BUILD_ROOT/usr
|
||||||
|
file `find -type f`| grep -w ELF | awk -F":" '{print $1}' | for i in `xargs`
|
||||||
|
do
|
||||||
|
chrpath -d $i
|
||||||
|
done
|
||||||
|
cd -
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
||||||
|
echo "%{_bindir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
echo "%{_libdir}/%{name}" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files -n python3-scipy
|
%files -n python3-scipy
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python3_sitearch}/scipy
|
%{python3_sitearch}/scipy
|
||||||
%{python3_sitearch}/*.egg-info
|
%{python3_sitearch}/*.egg-info
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 09 2021 chenchen <chen_aka_jan@163.com> - 1.2.2-7
|
||||||
|
- del rpath for some binaries and bin
|
||||||
|
|
||||||
* Sat Sep 4 2021 zhangtao <zhangtao221@huawei.com> - 1.2.2-6
|
* Sat Sep 4 2021 zhangtao <zhangtao221@huawei.com> - 1.2.2-6
|
||||||
- Strip Dynamic library
|
- Strip Dynamic library
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user