forked from pool/ncurses
Accepting request 29358 from Base:System
Copy from Base:System/ncurses based on submit request 29358 from user WernerFink OBS-URL: https://build.opensuse.org/request/show/29358 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ncurses?expand=0&rev=26
This commit is contained in:
committed by
Git OBS Bridge
parent
44874ba07f
commit
a76d3e453b
71
ncurses.spec
71
ncurses.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ncurses (Version 5.6)
|
||||
# spec file for package ncurses (Version 5.7)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -31,23 +31,23 @@ AutoReqProv: on
|
||||
Obsoletes: ncurses-64bit
|
||||
%endif
|
||||
#
|
||||
Version: 5.6
|
||||
Release: 92
|
||||
Version: 5.7
|
||||
Release: 1
|
||||
Summary: New curses Libraries
|
||||
Url: http://invisible-island.net/ncurses/ncurses.html
|
||||
Source0: ncurses-5.6.tar.bz2
|
||||
Source1: ncurses-%{version}-20080804-patch.tar.bz2
|
||||
Source0: ncurses-%{version}.tar.bz2
|
||||
Source1: ncurses-%{version}-20100109-patch.tar.bz2
|
||||
Source2: handle.linux
|
||||
Source3: README.devel
|
||||
Source4: ncurses-rpmlintrc
|
||||
Source5: tack-1.06.tar.bz2
|
||||
Source5: tack-1.07.tar.bz2
|
||||
Source6: edit.sed
|
||||
Source7: baselibs.conf
|
||||
Patch0: ncurses-%{version}.dif
|
||||
Patch1: ncurses-5.3-printw.dif
|
||||
Patch2: ncurses-5.6-pthread.dif
|
||||
Patch3: ncurses-5.6-overwrite.dif
|
||||
Patch4: ncurses-5.6-tack.dif
|
||||
Patch5: ncurses-5.6-gpm.dif
|
||||
Patch1: ncurses-5.7-printw.dif
|
||||
Patch3: ncurses-5.7-overwrite.dif
|
||||
Patch4: ncurses-5.7-tack.dif
|
||||
Patch5: ncurses-5.7-gpm.dif
|
||||
Patch6: ncurses-5.6-fallback.dif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%global _sysconfdir /etc
|
||||
@@ -238,7 +238,7 @@ Authors:
|
||||
|
||||
%package -n tack
|
||||
Summary: Terminfo action checker
|
||||
License: GPL v2 or later
|
||||
License: GPLv2+
|
||||
Group: Development/Tools/Building
|
||||
Provides: ncurses-devel:%{_bindir}/tack
|
||||
Requires: ncurses = %{version}-%{release}
|
||||
@@ -259,15 +259,14 @@ Authors:
|
||||
Eric S. Raymond <esr@thyrsus.com>
|
||||
|
||||
%prep
|
||||
%setup -q -n ncurses-%{version} -b0
|
||||
%setup -q -n ncurses-%{version}
|
||||
rm -fr tack
|
||||
rm -f Ada95/src/terminal_interface-curses.adb
|
||||
rm -f mkinstalldirs
|
||||
tar Oxfj %{S:1} | patch -p1 -s
|
||||
tar xfj %{S:5}
|
||||
ln -sf tack-* tack
|
||||
mv tack-* tack
|
||||
%patch -P 1 -p0 -b .va
|
||||
%patch -P 2 -p0 -b .pt
|
||||
%patch -P 3 -p0 -b .ow
|
||||
%patch -P 4 -p0 -b .hs
|
||||
%patch -P 5 -p0 -b .gpm
|
||||
@@ -331,6 +330,8 @@ ln -sf tack-* tack
|
||||
--with-normal \
|
||||
--with-manpage-format=gzip \
|
||||
--with-manpage-renames=${PWD}/man/man_db.renames \
|
||||
--with-manpage-aliases \
|
||||
--with-manpage-tbl \
|
||||
--with-fallbacks=${FALLBK} \
|
||||
--with-ospeed=speed_t \
|
||||
--with-gpm \
|
||||
@@ -349,17 +350,22 @@ ln -sf tack-* tack
|
||||
--enable-symlinks \
|
||||
--enable-sigwinch \
|
||||
--enable-colorfgbg \
|
||||
--enable-sp-funcs \
|
||||
--enable-term-driver \
|
||||
%if %abi >= 6
|
||||
--with-pthread \
|
||||
--enable-reentrant \
|
||||
--enable-ext-mouse \
|
||||
--disable-widec \
|
||||
--enable-ext-colors \
|
||||
%else
|
||||
--without-pthread \
|
||||
--disable-reentrant \
|
||||
--disable-ext-mouse \
|
||||
--disable-widec \
|
||||
--disable-ext-colors \
|
||||
%endif
|
||||
--enable-weak-symbols \
|
||||
--enable-wgetch-events \
|
||||
--prefix=%{_prefix} \
|
||||
--exec-prefix=%{_prefix}\
|
||||
@@ -369,14 +375,15 @@ ln -sf tack-* tack
|
||||
--includedir=%{_incdir} \
|
||||
"${WITHCHTYPE}" \
|
||||
--disable-widec \
|
||||
--disable-tic-depends \
|
||||
--with-ticlib=tic
|
||||
#
|
||||
# This is a hack to be able to boot strap
|
||||
# a libncurses with correct fallback.c.
|
||||
#
|
||||
make -C include
|
||||
make -C ncurses fallback.c FALLBACK_LIST=""
|
||||
make -C progs termsort.c transform.h infocmp tic
|
||||
make %{?jobs:-j%jobs} -C include
|
||||
make %{?jobs:-j%jobs} -C ncurses fallback.c FALLBACK_LIST=""
|
||||
make %{?jobs:-j%jobs} -C progs termsort.c transform.h infocmp tic
|
||||
rm -f ncurses/fallback.c
|
||||
PATH=$PWD/progs:$OPATH
|
||||
pushd ncurses/
|
||||
@@ -385,7 +392,7 @@ ln -sf tack-* tack
|
||||
mkdir -p $TERMINFO
|
||||
sh run_cmd.sh tic -I -r -e $FALLBK ../misc/terminfo.src > terminfo.src
|
||||
sh run_cmd.sh tic -o $TERMINFO -s terminfo.src
|
||||
make fallback.c
|
||||
make %{?jobs:-j%jobs} fallback.c
|
||||
rm -rf $TERMINFO
|
||||
unset TERMINFO
|
||||
popd
|
||||
@@ -398,16 +405,17 @@ ln -sf tack-* tack
|
||||
#
|
||||
# Now rebuild libncurses and do the rest of this job
|
||||
#
|
||||
make
|
||||
make %{?jobs:-j%jobs}
|
||||
lib=%{_libdir}
|
||||
inc=%{_incdir}/ncurses
|
||||
# must not use %jobs here (would lead to: ln: ncurses.h already exists)
|
||||
make install DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
||||
ln -sf ${inc##*/}/{curses,ncurses,term,termcap}.h %{root}${inc%%/*}/
|
||||
sh %{S:6} --cflags "-I${inc}" --libs "-lncurses" %{root}%{_bindir}/ncurses5-config
|
||||
#
|
||||
# Check for tack program on base of above ncurses
|
||||
#
|
||||
pushd tack-*/
|
||||
pushd tack/
|
||||
ldd ./tack
|
||||
popd
|
||||
test ! -L tack || rm -f tack
|
||||
@@ -419,10 +427,11 @@ ln -sf tack-* tack
|
||||
#
|
||||
# Now use --with-pthread for reentrant pthread support (abi > 5).
|
||||
#
|
||||
eval ./${c#*./} --with-pthread --enable-ext-mouse --disable-widec --disable-ext-colors --without-progs
|
||||
make
|
||||
eval ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --disable-widec --disable-ext-colors --without-progs
|
||||
make %{?jobs:-j%jobs}
|
||||
lib=%{_libdir}/ncurses6
|
||||
inc=%{_incdir}/ncurses6/ncurses
|
||||
# must not use %jobs here (would lead to: ln: ncurses.h already exists)
|
||||
make install.libs install.includes DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
||||
ln -sf ${inc##*/}/{curses,ncurses,term}.h %{root}${inc%%/*}/
|
||||
sh %{S:6} --cflags "-I${inc} -I${inc%%/*}" --libs "-L${lib} -lncurses" %{root}%{_bindir}/ncurses6-config
|
||||
@@ -433,23 +442,25 @@ ln -sf tack-* tack
|
||||
# to the normal 8bit wide character libs.
|
||||
#
|
||||
%if %abi >= 6
|
||||
eval ./${c#*./} --with-pthread --enable-ext-mouse --enable-widec --enable-ext-colors --without-progs
|
||||
eval ./${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
|
||||
%endif
|
||||
make
|
||||
make %{?jobs:-j%jobs}
|
||||
lib=%{_libdir}
|
||||
inc=%{_incdir}/ncursesw
|
||||
# must not use %jobs here (would lead to: ln: ncurses.h already exists)
|
||||
make install.libs install.includes DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
||||
sh %{S:6} --cflags "-I${inc}" --libs "-lncursesw" %{root}%{_bindir}/ncursesw5-config
|
||||
%if %abi < 6
|
||||
#
|
||||
# Do both --enable-widec and --with-pthread (abi > 5).
|
||||
#
|
||||
eval ./${c#*./} --with-pthread --enable-ext-mouse --enable-widec --enable-ext-colors --without-progs
|
||||
make
|
||||
eval ./${c#*./} --with-pthread --enable-reentrant --enable-ext-mouse --enable-widec --enable-ext-colors --without-progs
|
||||
make %{?jobs:-j%jobs}
|
||||
lib=%{_libdir}/ncurses6
|
||||
inc=%{_incdir}/ncurses6/ncursesw
|
||||
# must not use %jobs here (would lead to: ln: ncurses.h already exists)
|
||||
make install.libs install.includes DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
||||
sh %{S:6} --cflags "-I${inc} -I${inc%%/*}" --libs "-L${lib} -lncursesw" %{root}%{_bindir}/ncursesw6-config
|
||||
%endif
|
||||
@@ -510,7 +521,7 @@ ln -sf tack-* tack
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
mkdir -p %{buildroot}%{_miscdir}
|
||||
cd ncurses/
|
||||
{ echo "# See annotated version in %{_defaultdocdir}/ncurses/terminfo.src.bz2"
|
||||
{ echo "# See annotated version in %{_defaultdocdir}/ncurses/terminfo.src.bz2"
|
||||
sh ./run_cmd.sh tic -C -r ../misc/terminfo.src | grep -E -v '^#'; } > termcap
|
||||
# Gererate new termcap entries for various linux consoles
|
||||
TERMCAP=termcap \
|
||||
@@ -595,11 +606,13 @@ ln -sf tack-* tack
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/clear
|
||||
%{_bindir}/reset
|
||||
%{_bindir}/tabs
|
||||
%{_bindir}/toe
|
||||
%{_bindir}/tput
|
||||
%{_bindir}/tset
|
||||
%doc %{_mandir}/man1/clear.1.gz
|
||||
%doc %{_mandir}/man1/reset.1.gz
|
||||
%doc %{_mandir}/man1/tabs.1.gz
|
||||
%doc %{_mandir}/man1/toe.1.gz
|
||||
%doc %{_mandir}/man1/tput.1.gz
|
||||
%doc %{_mandir}/man1/tset.1.gz
|
||||
|
Reference in New Issue
Block a user