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
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global ncurses_options \\\
|
common_options="\
|
||||||
--with-abi-version=5 \\\
|
--enable-colorfgbg \
|
||||||
--with-shared --without-ada --with-ospeed=unsigned \\\
|
--enable-hard-tabs \
|
||||||
--enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \\\
|
--enable-overwrite \
|
||||||
--with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo \\\
|
--enable-pc-files \
|
||||||
--enable-overwrite \\\
|
--enable-xmc-glitch \
|
||||||
--enable-pc-files \\\
|
--with-cxx-shared \
|
||||||
--with-pkg-config-libdir=%{_libdir}/pkgconfig \\\
|
--with-ospeed=unsigned \
|
||||||
--with-termlib=tinfo \\\
|
--with-pkg-config-libdir=%{_libdir}/pkgconfig \
|
||||||
--with-chtype=long \\\
|
--with-shared \
|
||||||
--with-cxx-shared \\\
|
--with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo \
|
||||||
--with-xterm-kbs=DEL
|
--with-termlib=tinfo \
|
||||||
|
--with-ticlib=tic \
|
||||||
|
--with-xterm-kbs=DEL \
|
||||||
|
--without-ada"
|
||||||
|
abi5_options="--with-chtype=long"
|
||||||
|
|
||||||
mkdir narrowc widec
|
for abi in 5 6; do
|
||||||
cd narrowc
|
for char in narrowc widec; do
|
||||||
ln -s ../configure .
|
mkdir $char$abi
|
||||||
%configure %{ncurses_options} --with-ticlib
|
pushd $char$abi
|
||||||
make %{?_smp_mflags} libs
|
ln -s ../configure .
|
||||||
make %{?_smp_mflags} -C progs
|
|
||||||
|
|
||||||
cd ../widec
|
[ $abi = 6 -a $char = widec ] && progs=yes || progs=no
|
||||||
ln -s ../configure .
|
|
||||||
%configure %{ncurses_options} --enable-widec --without-progs
|
%configure $(
|
||||||
make %{?_smp_mflags} libs
|
echo $common_options --with-abi-version=$abi
|
||||||
cd ..
|
[ $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
|
%install
|
||||||
make -C narrowc DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data}
|
make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.*
|
make -C widec5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
||||||
make -C widec DESTDIR=$RPM_BUILD_ROOT install.{libs,includes,man}
|
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 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||||
chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a
|
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
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user