!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
|
%if %{?openEuler:1}0
|
||||||
%global ENABLE_RELOC 1
|
%global ENABLE_RELOC 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{ENABLE_RELOC}
|
%if %{ENABLE_RELOC}
|
||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
Name: ncurses
|
Name: ncurses
|
||||||
Version: 6.3
|
Version: 6.3
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: Terminal control library
|
Summary: Terminal control library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://invisible-island.net/ncurses/ncurses.html
|
URL: https://invisible-island.net/ncurses/ncurses.html
|
||||||
@ -151,7 +151,9 @@ for abi in 5 6; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
%if %{?ENABLE_RELOC}
|
%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
|
%endif
|
||||||
|
|
||||||
%install
|
%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}
|
make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man}
|
||||||
|
|
||||||
%if %{?ENABLE_RELOC}
|
%if %{?ENABLE_RELOC}
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/sysboost
|
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_libdir}
|
||||||
mv ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation $RPM_BUILD_ROOT%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
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
|
%endif
|
||||||
|
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||||
@ -246,7 +249,6 @@ xz NEWS
|
|||||||
%files libs
|
%files libs
|
||||||
%{_libdir}/lib*.so.6*
|
%{_libdir}/lib*.so.6*
|
||||||
%exclude %{_libdir}/libncurses++*.so.6*
|
%exclude %{_libdir}/libncurses++*.so.6*
|
||||||
%exclude %{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/ncurses*-config
|
%{_bindir}/ncurses*-config
|
||||||
@ -275,10 +277,16 @@ xz NEWS
|
|||||||
|
|
||||||
%if %{?ENABLE_RELOC}
|
%if %{?ENABLE_RELOC}
|
||||||
%files relocation
|
%files relocation
|
||||||
%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
/usr/lib/relocation/%{_libdir}libtinfo.so.%{version}.relocation
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon May 22 2023 liutie <liutie4@huawei.com> - 6.3-9
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user