Independently generate the objreloc tool
This commit is contained in:
parent
cbd9fe2c7d
commit
bcdd8d2c77
40
ncurses.spec
40
ncurses.spec
@ -1,6 +1,15 @@
|
|||||||
|
%if %{?openEuler:1}0
|
||||||
|
%global ENABLE_RELOC 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{ENABLE_RELOC}
|
||||||
|
%global ldflags_options -Wl,--emit-relocs
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
Name: ncurses
|
Name: ncurses
|
||||||
Version: 6.3
|
Version: 6.3
|
||||||
Release: 6
|
Release: 7
|
||||||
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
|
||||||
@ -87,6 +96,16 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
This package contains development documentation, manuals
|
This package contains development documentation, manuals
|
||||||
for interface function, and related documents.
|
for interface function, and related documents.
|
||||||
|
|
||||||
|
%if %{?ENABLE_RELOC}
|
||||||
|
%package relocation
|
||||||
|
Summary: Relocations for %{name}
|
||||||
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
BuildRequires: sysboost-devel
|
||||||
|
|
||||||
|
%description relocation
|
||||||
|
Relocations for %{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
@ -123,7 +142,7 @@ for abi in 5 6; do
|
|||||||
[ $abi = 5 ] && echo $abi5_options
|
[ $abi = 5 ] && echo $abi5_options
|
||||||
[ $char = widec ] && echo --enable-widec
|
[ $char = widec ] && echo --enable-widec
|
||||||
[ $progs = yes ] || echo --without-progs
|
[ $progs = yes ] || echo --without-progs
|
||||||
)
|
) LDFLAGS="%{?ldflags_options}"
|
||||||
|
|
||||||
make %{?_smp_mflags} libs
|
make %{?_smp_mflags} libs
|
||||||
[ $progs = yes ] && make %{?_smp_mflags} -C progs
|
[ $progs = yes ] && make %{?_smp_mflags} -C progs
|
||||||
@ -140,6 +159,11 @@ make -C narrowc6 DESTDIR=$RPM_BUILD_ROOT install.libs
|
|||||||
rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.6*
|
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}
|
||||||
|
objreloc ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.6.3
|
||||||
|
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/libtinfo.so.6.3.prim
|
||||||
|
%endif
|
||||||
|
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||||
chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a
|
chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a
|
||||||
|
|
||||||
@ -219,6 +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
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/ncurses*-config
|
%{_bindir}/ncurses*-config
|
||||||
@ -245,7 +270,18 @@ xz NEWS
|
|||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
%{_mandir}/man7/*
|
%{_mandir}/man7/*
|
||||||
|
|
||||||
|
%if %{?ENABLE_RELOC}
|
||||||
|
%files relocation
|
||||||
|
%{_libdir}/libtinfo.so.6.3.relocation
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 8 2023 liutie <liutie4@huawei.com> - 6.3-7
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: Independently generate the objreloc tool
|
||||||
|
|
||||||
* Tue Feb 28 2023 zhujunhao <zhujunhao11@huawei.com> - 6.3-6
|
* Tue Feb 28 2023 zhujunhao <zhujunhao11@huawei.com> - 6.3-6
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user