fix issues about can not find libtinfo.so.6
(cherry picked from commit 4e9200ccbe11c2a8756d653272a13e7184764ed2)
This commit is contained in:
parent
4567d1c58f
commit
dc73e90bff
18
ncurses.spec
18
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: 7
|
Release: 8
|
||||||
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
|
||||||
@ -160,8 +160,8 @@ 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}
|
||||||
objreloc ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.6.3
|
cp ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version}.relocation
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.6.3.prim
|
ln -sf ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.6
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||||
@ -243,7 +243,7 @@ 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}/*.relocation
|
%exclude %{_libdir}/libtinfo.so.%{version}.relocation
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/ncurses*-config
|
%{_bindir}/ncurses*-config
|
||||||
@ -272,10 +272,16 @@ xz NEWS
|
|||||||
|
|
||||||
%if %{?ENABLE_RELOC}
|
%if %{?ENABLE_RELOC}
|
||||||
%files relocation
|
%files relocation
|
||||||
%{_libdir}/libtinfo.so.6.3.relocation
|
%{_libdir}/libtinfo.so.%{version}.relocation
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 22 2023 liutie <liutie4@huawei.com> - 6.3-8
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: Fix can not find libtinfo.so.6
|
||||||
|
|
||||||
* Mon May 8 2023 liutie <liutie4@huawei.com> - 6.3-7
|
* Mon May 8 2023 liutie <liutie4@huawei.com> - 6.3-7
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user