Generate the relocation subpackage
(cherry picked from commit b247b46265bf6a410121ed90c48fc2dc3d2f4d50)
This commit is contained in:
parent
66fa3b5763
commit
cfdcb8272e
21
ncurses.spec
21
ncurses.spec
@ -1,5 +1,5 @@
|
|||||||
%if %{?openEuler:1}0
|
%if %{?openEuler:1}0
|
||||||
%global ENABLE_RELOC 0
|
%global ENABLE_RELOC 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{ENABLE_RELOC}
|
%if %{ENABLE_RELOC}
|
||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
Name: ncurses
|
Name: ncurses
|
||||||
Version: 6.3
|
Version: 6.3
|
||||||
Release: 8
|
Release: 9
|
||||||
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
|
||||||
@ -150,6 +150,9 @@ for abi in 5 6; do
|
|||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
%if %{?ENABLE_RELOC}
|
||||||
|
cp widec6/lib/libtinfo.so.%{version} ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
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}
|
make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man}
|
||||||
|
|
||||||
%if %{?ENABLE_RELOC}
|
%if %{?ENABLE_RELOC}
|
||||||
cp ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version}.relocation
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/sysboost
|
||||||
ln -sf ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.6
|
mv ${RPM_BUILD_DIR}/libtinfo.so.%{version}.relocation $RPM_BUILD_ROOT%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||||
@ -243,7 +246,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}/libtinfo.so.%{version}.relocation
|
%exclude %{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/ncurses*-config
|
%{_bindir}/ncurses*-config
|
||||||
@ -272,10 +275,16 @@ xz NEWS
|
|||||||
|
|
||||||
%if %{?ENABLE_RELOC}
|
%if %{?ENABLE_RELOC}
|
||||||
%files relocation
|
%files relocation
|
||||||
%{_libdir}/libtinfo.so.%{version}.relocation
|
%{_libdir}/sysboost/libtinfo.so.%{version}.relocation
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon May 22 2023 liutie <liutie4@huawei.com> - 6.3-8
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user