!62 [sync] PR-52: Generate the relocation subpackage
From: @openeuler-sync-bot Reviewed-by: @yanan-rock Signed-off-by: @yanan-rock
This commit is contained in:
commit
bd1eb687ac
21
ncurses.spec
21
ncurses.spec
@ -1,5 +1,5 @@
|
||||
%if %{?openEuler:1}0
|
||||
%global ENABLE_RELOC 0
|
||||
%global ENABLE_RELOC 1
|
||||
%endif
|
||||
|
||||
%if %{ENABLE_RELOC}
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
Name: ncurses
|
||||
Version: 6.3
|
||||
Release: 8
|
||||
Release: 9
|
||||
Summary: Terminal control library
|
||||
License: MIT
|
||||
URL: https://invisible-island.net/ncurses/ncurses.html
|
||||
@ -150,6 +150,9 @@ for abi in 5 6; do
|
||||
popd
|
||||
done
|
||||
done
|
||||
%if %{?ENABLE_RELOC}
|
||||
cp widec6/lib/libtinfo.so.%{version} ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation
|
||||
%endif
|
||||
|
||||
%install
|
||||
make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||
@ -160,8 +163,8 @@ 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}
|
||||
cp ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version}.relocation
|
||||
ln -sf ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.6
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/sysboost
|
||||
mv ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation $RPM_BUILD_ROOT%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||
%endif
|
||||
|
||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||
@ -243,7 +246,7 @@ xz NEWS
|
||||
%files libs
|
||||
%{_libdir}/lib*.so.6*
|
||||
%exclude %{_libdir}/libncurses++*.so.6*
|
||||
%exclude %{_libdir}/libtinfo.so.%{version}.relocation
|
||||
%exclude %{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||
|
||||
%files devel
|
||||
%{_bindir}/ncurses*-config
|
||||
@ -272,10 +275,16 @@ xz NEWS
|
||||
|
||||
%if %{?ENABLE_RELOC}
|
||||
%files relocation
|
||||
%{_libdir}/libtinfo.so.%{version}.relocation
|
||||
%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon May 22 2023 liutie <liutie4@huawei.com> - 6.3-9
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: Generate the relocation subpackage
|
||||
|
||||
* Mon May 22 2023 liutie <liutie4@huawei.com> - 6.3-8
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user