diff --git a/dist/lfs-5.1/ncurses/ncurses.spec b/../../ltib/dist/lfs-5.1/ncurses/ncurses.spec index e26f6b5..b4c7a38 100644 --- a/dist/lfs-5.1/ncurses/ncurses.spec +++ b/../../ltib/dist/lfs-5.1/ncurses/ncurses.spec @@ -11,6 +11,7 @@ Group : System Environment/Libraries Source : ncurses-5.3.tar.gz Patch0 : ncurses-5.3-etip-2.patch Patch1 : ncurses-5.3-vsscanf.patch +Patch2 : ncurses-5.3-wint_t.patch BuildRoot : %{_tmppath}/%{name} Prefix : %{pfx} @@ -21,13 +22,21 @@ Prefix : %{pfx} %setup %patch0 -p1 %patch1 -p1 +%patch2 -p1 %Build CFLAGS="%{optflags} -DPURE_TERMINFO -DSVR4_CURSES" %define optflags $CFLAGS +if [ "$GNUTARCH" != m68knommu ] +then ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \ --with-install-prefix=$RPM_BUILD_ROOT --mandir=%{_mandir} \ --with-shared --without-debug --without-cxx-binding +else +./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \ + --with-install-prefix=$RPM_BUILD_ROOT --mandir=%{_mandir} \ + --without-shared --without-debug --without-cxx-binding +fi make -j1 HOSTCC="$BUILDCC" sed -e 's%$srcdir/shlib tic$suffix%/usr/bin/tic$suffix%' \ @@ -39,7 +48,10 @@ mv misc/run_tic.sh.tmp misc/run_tic.sh rm -rf $RPM_BUILD_ROOT make -j1 install DESTDIR=$RPM_BUILD_ROOT/%{pfx} includedir=%{_prefix}/include/ncurses libdir=%{_prefix}/lib mandir=%{_mandir} +if [ "$GNUTARCH" != m68knommu ] +then chmod 755 $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/*.5.3 +fi #chmod 644 $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/libncurses++.a for i in curses.h eti.h form.h menu.h ncurses.h panel.h term.h unctrl.h do