SHA256
6
0
forked from pool/ncurses

Update to ncurses-6.2-20200829

OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=504
This commit is contained in:
2020-08-31 14:02:28 +00:00
committed by Git OBS Bridge
parent 82e1c12567
commit 938360d730
5 changed files with 116 additions and 51 deletions

View File

@@ -48,6 +48,7 @@ BuildRequires: gpm-devel
%else
BuildRequires: gpm
%endif
BuildRequires: makedepend
%define terminfo() %{_datadir}/%{0}/%{1}
%define tabset() %{_datadir}/%{0}/%{1}
# bug437293
@@ -78,6 +79,7 @@ Source7: baselibs.conf
Patch0: ncurses-6.2.dif
Patch1: ncurses-5.9-ibm327x.dif
Patch2: ncurses-5.7-tack.dif
Patch3: awk-scripts.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _miscdir %{_datadir}/misc
%global _incdir %{_includedir}
@@ -314,9 +316,14 @@ tar -xzf %{S:5}
mv tack-* tack
%patch1 -p0 -b .327x
%patch2 -p0 -b .hs
%patch3 -p0 -b .xyz
%patch0 -p0 -b .p0
%build
#
# Do not run auto(re)conf here as this will fail later on ncurses
# is build with special autoconf based on autoconf-2.13 at upstream
#
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
#
# Note that there is a test if the system call poll(2) really works
@@ -534,6 +541,7 @@ mv tack-* tack
# It has been verified several times that this works.
#
c=$(grep '^ *$ *\./configure' config.log)
make depend
make -C c++ etip.h
make %{?_smp_mflags}
#
@@ -580,6 +588,7 @@ mv tack-* tack
#
find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c
make depend
make -C c++ etip.h
make %{?_smp_mflags}
%else
@@ -675,6 +684,7 @@ mv tack-* tack
find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c
%endif
make depend
make -C c++ etip.h
make %{?_smp_mflags}
sed -ri 's@^(LDFLAGS=)$@\1-L\\${libdir}@
@@ -736,6 +746,7 @@ includedir5=%{_incdir}/ncurses5' "$pc"
find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c
%endif
make depend
make -C c++ etip.h
make %{?_smp_mflags}
# must not use %jobs here (would lead to: ln: ncurses.h already exists)
@@ -809,6 +820,7 @@ includedir5=%{_incdir}/ncurses5' "$pc"
find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c
%endif
make depend
make -C c++ etip.h
make %{?_smp_mflags}
sed -ri 's@^(LDFLAGS=)$@\1-L\\${libdir}@