disable compat libs on RHEL >= 10
This commit is contained in:
parent
a9323cc700
commit
0c9797b8c8
15
ncurses.spec
15
ncurses.spec
@ -1,3 +1,8 @@
|
||||
%if 0%{?rhel} >= 10
|
||||
%bcond_with compat_libs
|
||||
%else
|
||||
%bcond_without compat_libs
|
||||
%endif
|
||||
%global revision 20240113
|
||||
Summary: Ncurses support utilities
|
||||
Name: ncurses
|
||||
@ -39,6 +44,7 @@ discontinued 4.4 BSD classic curses library.
|
||||
|
||||
This package contains the ncurses libraries.
|
||||
|
||||
%if %{with compat_libs}
|
||||
%package compat-libs
|
||||
Summary: Ncurses compatibility libraries
|
||||
Requires: %{name}-base = %{version}-%{release}
|
||||
@ -51,6 +57,7 @@ discontinued 4.4 BSD classic curses library.
|
||||
|
||||
This package contains the ABI version 5 of the ncurses libraries for
|
||||
compatibility.
|
||||
%endif
|
||||
|
||||
%package c++-libs
|
||||
Summary: Ncurses C++ bindings
|
||||
@ -142,7 +149,7 @@ common_options="\
|
||||
--without-ada"
|
||||
abi5_options="--with-chtype=long"
|
||||
|
||||
for abi in 5 6; do
|
||||
for abi in %{?with_compat_libs:5} 6; do
|
||||
for char in narrowc widec; do
|
||||
mkdir $char$abi
|
||||
pushd $char$abi
|
||||
@ -165,9 +172,11 @@ for abi in 5 6; do
|
||||
done
|
||||
|
||||
%install
|
||||
%if %{with compat_libs}
|
||||
make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||
rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.5*
|
||||
make -C widec5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||
%endif
|
||||
make -C narrowc6 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||
rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.6*
|
||||
make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man}
|
||||
@ -236,7 +245,9 @@ xz NEWS
|
||||
|
||||
%ldconfig_scriptlets c++-libs
|
||||
|
||||
%if %{with compat_libs}
|
||||
%ldconfig_scriptlets compat-libs
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc ANNOUNCE AUTHORS NEWS.xz README TO-DO
|
||||
@ -249,8 +260,10 @@ xz NEWS
|
||||
%exclude %{_libdir}/libncurses++*.so.6*
|
||||
%{_libdir}/lib*.so.6*
|
||||
|
||||
%if %{with compat_libs}
|
||||
%files compat-libs
|
||||
%{_libdir}/lib*.so.5*
|
||||
%endif
|
||||
|
||||
%files c++-libs
|
||||
%{_libdir}/libncurses++*.so.6*
|
||||
|
Loading…
Reference in New Issue
Block a user