!67 [sync] PR-54: Fixed the issue of not stripped
From: @openeuler-sync-bot Reviewed-by: @yanan-rock Signed-off-by: @yanan-rock
This commit is contained in:
commit
2fbb4952c5
22
ncurses.spec
22
ncurses.spec
@ -1,5 +1,5 @@
|
||||
%if %{?openEuler:1}0
|
||||
%global ENABLE_RELOC 1
|
||||
%global ENABLE_RELOC 0
|
||||
%endif
|
||||
|
||||
%if %{ENABLE_RELOC}
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
Name: ncurses
|
||||
Version: 6.3
|
||||
Release: 9
|
||||
Release: 10
|
||||
Summary: Terminal control library
|
||||
License: MIT
|
||||
URL: https://invisible-island.net/ncurses/ncurses.html
|
||||
@ -151,7 +151,9 @@ for abi in 5 6; do
|
||||
done
|
||||
done
|
||||
%if %{?ENABLE_RELOC}
|
||||
cp widec6/lib/libtinfo.so.%{version} ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation
|
||||
objreloc widec6/lib/libtinfo.so.%{version}
|
||||
mv -f widec6/lib/libtinfo.so.%{version}.relocation ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation
|
||||
rm -rf widec6/lib/libtinfo.so.%{version}.prim
|
||||
%endif
|
||||
|
||||
%install
|
||||
@ -163,8 +165,9 @@ rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.6*
|
||||
make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man}
|
||||
|
||||
%if %{?ENABLE_RELOC}
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/sysboost
|
||||
mv ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation $RPM_BUILD_ROOT%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_libdir}
|
||||
mv ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_libdir}libtinfo.so.%{version}.relocation
|
||||
chmod 400 ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_libdir}libtinfo.so.%{version}.relocation
|
||||
%endif
|
||||
|
||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||
@ -246,7 +249,6 @@ xz NEWS
|
||||
%files libs
|
||||
%{_libdir}/lib*.so.6*
|
||||
%exclude %{_libdir}/libncurses++*.so.6*
|
||||
%exclude %{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||
|
||||
%files devel
|
||||
%{_bindir}/ncurses*-config
|
||||
@ -275,10 +277,16 @@ xz NEWS
|
||||
|
||||
%if %{?ENABLE_RELOC}
|
||||
%files relocation
|
||||
%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||
/usr/lib/relocation/%{_libdir}libtinfo.so.%{version}.relocation
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Jun 5 2023 liutie <liutie4@huawei.com> - 6.3-10
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: Fixed the issue of not stripped
|
||||
|
||||
* Mon May 22 2023 liutie <liutie4@huawei.com> - 6.3-9
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user