build ABI 5 and ABI 6 libraries
This commit is contained in:
parent
16de9d5161
commit
f5502375c3
67
ncurses.spec
67
ncurses.spec
@ -104,36 +104,50 @@ for f in ANNOUNCE; do
|
||||
done
|
||||
|
||||
%build
|
||||
%global ncurses_options \\\
|
||||
--with-abi-version=5 \\\
|
||||
--with-shared --without-ada --with-ospeed=unsigned \\\
|
||||
--enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \\\
|
||||
--with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo \\\
|
||||
--enable-overwrite \\\
|
||||
--enable-pc-files \\\
|
||||
--with-pkg-config-libdir=%{_libdir}/pkgconfig \\\
|
||||
--with-termlib=tinfo \\\
|
||||
--with-chtype=long \\\
|
||||
--with-cxx-shared \\\
|
||||
--with-xterm-kbs=DEL
|
||||
common_options="\
|
||||
--enable-colorfgbg \
|
||||
--enable-hard-tabs \
|
||||
--enable-overwrite \
|
||||
--enable-pc-files \
|
||||
--enable-xmc-glitch \
|
||||
--with-cxx-shared \
|
||||
--with-ospeed=unsigned \
|
||||
--with-pkg-config-libdir=%{_libdir}/pkgconfig \
|
||||
--with-shared \
|
||||
--with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo \
|
||||
--with-termlib=tinfo \
|
||||
--with-ticlib=tic \
|
||||
--with-xterm-kbs=DEL \
|
||||
--without-ada"
|
||||
abi5_options="--with-chtype=long"
|
||||
|
||||
mkdir narrowc widec
|
||||
cd narrowc
|
||||
ln -s ../configure .
|
||||
%configure %{ncurses_options} --with-ticlib
|
||||
make %{?_smp_mflags} libs
|
||||
make %{?_smp_mflags} -C progs
|
||||
for abi in 5 6; do
|
||||
for char in narrowc widec; do
|
||||
mkdir $char$abi
|
||||
pushd $char$abi
|
||||
ln -s ../configure .
|
||||
|
||||
cd ../widec
|
||||
ln -s ../configure .
|
||||
%configure %{ncurses_options} --enable-widec --without-progs
|
||||
make %{?_smp_mflags} libs
|
||||
cd ..
|
||||
[ $abi = 6 -a $char = widec ] && progs=yes || progs=no
|
||||
|
||||
%configure $(
|
||||
echo $common_options --with-abi-version=$abi
|
||||
[ $abi = 5 ] && echo $abi5_options
|
||||
[ $char = widec ] && echo --enable-widec
|
||||
[ $progs = yes ] || echo --without-progs
|
||||
)
|
||||
|
||||
make %{?_smp_mflags} libs
|
||||
[ $progs = yes ] && make %{?_smp_mflags} -C progs
|
||||
|
||||
popd
|
||||
done
|
||||
done
|
||||
|
||||
%install
|
||||
make -C narrowc DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data}
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.*
|
||||
make -C widec DESTDIR=$RPM_BUILD_ROOT install.{libs,includes,man}
|
||||
make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||
make -C widec5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||
make -C narrowc6 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||
make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man}
|
||||
|
||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||
chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a
|
||||
@ -187,6 +201,7 @@ echo "INPUT(-lncursesw)" > $RPM_BUILD_ROOT%{_libdir}/libcursesw.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}/pkgconfig/*_g.pc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user