restore compat-libs (ABI 5) subpackage (#2129865)
This reverts commite9317e9d5d
and commit49be85802b
.
This commit is contained in:
parent
6895264574
commit
5cfd5c978a
33
ncurses.spec
33
ncurses.spec
@ -30,7 +30,6 @@ tool captoinfo.
|
|||||||
%package libs
|
%package libs
|
||||||
Summary: Ncurses libraries
|
Summary: Ncurses libraries
|
||||||
Requires: %{name}-base = %{version}-%{release}
|
Requires: %{name}-base = %{version}-%{release}
|
||||||
Obsoletes: %{name}-compat-libs < 6.3-1
|
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
The curses library routines are a terminal-independent method of
|
The curses library routines are a terminal-independent method of
|
||||||
@ -40,6 +39,19 @@ discontinued 4.4 BSD classic curses library.
|
|||||||
|
|
||||||
This package contains the ncurses libraries.
|
This package contains the ncurses libraries.
|
||||||
|
|
||||||
|
%package compat-libs
|
||||||
|
Summary: Ncurses compatibility libraries
|
||||||
|
Requires: %{name}-base = %{version}-%{release}
|
||||||
|
|
||||||
|
%description compat-libs
|
||||||
|
The curses library routines are a terminal-independent method of
|
||||||
|
updating character screens with reasonable optimization. The ncurses
|
||||||
|
(new curses) library is a freely distributable replacement for the
|
||||||
|
discontinued 4.4 BSD classic curses library.
|
||||||
|
|
||||||
|
This package contains the ABI version 5 of the ncurses libraries for
|
||||||
|
compatibility.
|
||||||
|
|
||||||
%package c++-libs
|
%package c++-libs
|
||||||
Summary: Ncurses C++ bindings
|
Summary: Ncurses C++ bindings
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
@ -126,19 +138,19 @@ common_options="\
|
|||||||
--with-ticlib=tic \
|
--with-ticlib=tic \
|
||||||
--with-xterm-kbs=DEL \
|
--with-xterm-kbs=DEL \
|
||||||
--without-ada"
|
--without-ada"
|
||||||
|
abi5_options="--with-chtype=long"
|
||||||
|
|
||||||
abi=6
|
for abi in 5 6; do
|
||||||
|
|
||||||
if true; then
|
|
||||||
for char in narrowc widec; do
|
for char in narrowc widec; do
|
||||||
mkdir $char$abi
|
mkdir $char$abi
|
||||||
pushd $char$abi
|
pushd $char$abi
|
||||||
ln -s ../configure .
|
ln -s ../configure .
|
||||||
|
|
||||||
[ $char = widec ] && progs=yes || progs=no
|
[ $abi = 6 -a $char = widec ] && progs=yes || progs=no
|
||||||
|
|
||||||
%configure $(
|
%configure $(
|
||||||
echo $common_options --with-abi-version=$abi
|
echo $common_options --with-abi-version=$abi
|
||||||
|
[ $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
|
||||||
)
|
)
|
||||||
@ -148,9 +160,12 @@ if true; then
|
|||||||
|
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
fi
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
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
|
||||||
make -C narrowc6 DESTDIR=$RPM_BUILD_ROOT install.libs
|
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}
|
||||||
@ -208,6 +223,7 @@ echo "INPUT(-lncursesw)" > $RPM_BUILD_ROOT%{_libdir}/libcursesw.so
|
|||||||
|
|
||||||
echo "INPUT(-ltinfo)" > $RPM_BUILD_ROOT%{_libdir}/libtermcap.so
|
echo "INPUT(-ltinfo)" > $RPM_BUILD_ROOT%{_libdir}/libtermcap.so
|
||||||
|
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_bindir}/ncurses*5-config
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/terminfo
|
rm -f $RPM_BUILD_ROOT%{_libdir}/terminfo
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*_g.pc
|
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*_g.pc
|
||||||
|
|
||||||
@ -217,6 +233,8 @@ xz NEWS
|
|||||||
|
|
||||||
%ldconfig_scriptlets c++-libs
|
%ldconfig_scriptlets c++-libs
|
||||||
|
|
||||||
|
%ldconfig_scriptlets compat-libs
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc ANNOUNCE AUTHORS NEWS.xz README TO-DO
|
%doc ANNOUNCE AUTHORS NEWS.xz README TO-DO
|
||||||
%{_bindir}/[cirt]*
|
%{_bindir}/[cirt]*
|
||||||
@ -228,6 +246,9 @@ xz NEWS
|
|||||||
%exclude %{_libdir}/libncurses++*.so.6*
|
%exclude %{_libdir}/libncurses++*.so.6*
|
||||||
%{_libdir}/lib*.so.6*
|
%{_libdir}/lib*.so.6*
|
||||||
|
|
||||||
|
%files compat-libs
|
||||||
|
%{_libdir}/lib*.so.5*
|
||||||
|
|
||||||
%files c++-libs
|
%files c++-libs
|
||||||
%{_libdir}/libncurses++*.so.6*
|
%{_libdir}/libncurses++*.so.6*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user