SHA256
6
0
forked from pool/ncurses
2013-02-18 12:51:49 +00:00
committed by Git OBS Bridge
parent 64ba35888d
commit 1169b49a7c
4 changed files with 128 additions and 53 deletions

View File

@@ -19,6 +19,7 @@
Name: ncurses
#!BuildIgnore: terminfo
BuildRequires: gcc-c++
BuildRequires: screen
%if 0%{?suse_version} > 1130
BuildRequires: gpm-devel
%else
@@ -36,6 +37,7 @@ Release: 0
Summary: New curses Libraries
License: MIT
Group: System/Base
#Git: http://ncurses.scripts.mit.edu
Url: http://invisible-island.net/ncurses/ncurses.html
Source0: ncurses-%{version}.tar.bz2
Source1: ncurses-%{version}-patches.tar.bz2
@@ -273,6 +275,22 @@ rm -vf tar-copy.sh
rm -vf mk-dlls.sh
%build
%global _configure screen -L -D -m ./configure
SCREENRC=ncurses.screen
export SCREENRC
exec 0< /dev/null
SCREENLOG=$PWD/config.screen
cat > $SCREENRC<<-EOF
deflogin off
logfile $SCREENLOG
logfile flush 1
logtstamp off
log on
setsid off
scrollback 0
silence on
utf8 on
EOF
cflags ()
{
local flag=$1; shift
@@ -355,6 +373,7 @@ rm -vf mk-dlls.sh
# advantage about splitting of a libtinfo (IMHO).
#
touch --reference=README config.sub config.guess
> $SCREENLOG
%configure \
--without-ada \
--without-debug \
@@ -414,6 +433,7 @@ rm -vf mk-dlls.sh
--disable-widec \
--disable-tic-depends \
--with-ticlib=tic
cat $SCREENLOG
#
# The configure line
#
@@ -482,7 +502,9 @@ export BUILD_TIC=$PWD/../progs/tic
#
# Now use --with-pthread for reentrant pthread support (abi > 5).
#
eval ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --disable-widec --disable-ext-colors --without-progs
> $SCREENLOG
eval screen -L -D -m ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --disable-widec --disable-ext-colors --without-progs
cat $SCREENLOG
find -name fallback.o | xargs -r rm -vf
cp fallback.c.backup ncurses/fallback.c
make %{?_smp_mflags}
@@ -501,11 +523,13 @@ export BUILD_TIC=$PWD/../progs/tic
# The libs with 16 bit wide characters are binary incompatible
# to the normal 8bit wide character libs.
#
> $SCREENLOG
%if %abi >= 6
eval ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --enable-widec --enable-ext-colors --without-progs
eval screen -L -D -m ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --enable-widec --enable-ext-colors --without-progs
%else
eval ./${c#*./} --disable-ext-mouse --enable-widec --disable-ext-colors --without-progs
eval screen -L -D -m ./${c#*./} --disable-ext-mouse --enable-widec --disable-ext-colors --without-progs
%endif
cat $SCREENLOG
find -name fallback.o | xargs -r rm -vf
cp fallback.c.backup ncurses/fallback.c
make %{?_smp_mflags}
@@ -521,7 +545,9 @@ export BUILD_TIC=$PWD/../progs/tic
#
# Do both --enable-widec and --with-pthread (abi > 5).
#
eval ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --enable-widec --enable-ext-colors --without-progs
> $SCREENLOG
eval screen -L -D -m ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --enable-widec --enable-ext-colors --without-progs
cat $SCREENLOG
find -name fallback.o | xargs -r rm -vf
cp fallback.c.backup ncurses/fallback.c
make %{?_smp_mflags}