forked from pool/ncurses
Update to ncurses 6.1-20190209
OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=409
This commit is contained in:
parent
4977a451ed
commit
fbd20f1e7e
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f1a51e5b75b221b3cea5e19cd8388fb8e74c2bedf1dbaffbd643b392908043d9
|
oid sha256:07a4a4b7ef4373d244ebcb1a70273cc62120c6aeebb62d269991a0ccbc552445
|
||||||
size 1282692
|
size 1285004
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
man/man_db.renames | 2
|
man/man_db.renames | 2
|
||||||
man/ncurses.3x | 4 +
|
man/ncurses.3x | 4 +
|
||||||
misc/gen-pkgconfig.in | 7 +-
|
misc/gen-pkgconfig.in | 7 +-
|
||||||
misc/ncurses-config.in | 2
|
|
||||||
misc/terminfo.src | 138 ++++++++++++++++++++++++++++++++++---------
|
misc/terminfo.src | 138 ++++++++++++++++++++++++++++++++++---------
|
||||||
ncurses/Makefile.in | 2
|
ncurses/Makefile.in | 2
|
||||||
ncurses/curses.priv.h | 2
|
ncurses/curses.priv.h | 2
|
||||||
@ -19,7 +18,7 @@
|
|||||||
ncurses/tinfo/read_termcap.c | 21 ++++--
|
ncurses/tinfo/read_termcap.c | 21 ++++--
|
||||||
progs/Makefile.in | 4 -
|
progs/Makefile.in | 4 -
|
||||||
test/test.priv.h | 4 -
|
test/test.priv.h | 4 -
|
||||||
20 files changed, 249 insertions(+), 81 deletions(-)
|
19 files changed, 248 insertions(+), 80 deletions(-)
|
||||||
|
|
||||||
--- aclocal.m4
|
--- aclocal.m4
|
||||||
+++ aclocal.m4 2019-02-06 07:51:48.441355403 +0000
|
+++ aclocal.m4 2019-02-06 07:51:48.441355403 +0000
|
||||||
@ -398,17 +397,6 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test $name = $MAIN_LIBRARY
|
if test $name = $MAIN_LIBRARY
|
||||||
--- misc/ncurses-config.in
|
|
||||||
+++ misc/ncurses-config.in 2019-02-06 07:51:48.445355328 +0000
|
|
||||||
@@ -100,7 +100,7 @@ while test $# -gt 0; do
|
|
||||||
# compile/link
|
|
||||||
--cflags)
|
|
||||||
INCS="@PKG_CFLAGS@"
|
|
||||||
- if test "x@WITH_OVERWRITE@" = xno ; then
|
|
||||||
+ if test "${THIS%[0-5]*}" = xno ; then
|
|
||||||
INCS="$INCS -I${includesubdir}"
|
|
||||||
fi
|
|
||||||
if test "${includedir}" != /usr/include ; then
|
|
||||||
--- misc/terminfo.src
|
--- misc/terminfo.src
|
||||||
+++ misc/terminfo.src 2019-02-06 07:51:48.453355178 +0000
|
+++ misc/terminfo.src 2019-02-06 07:51:48.453355178 +0000
|
||||||
@@ -301,7 +301,9 @@ dumb|80-column dumb tty,
|
@@ -301,7 +301,9 @@ dumb|80-column dumb tty,
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 11 09:46:34 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
- Fix configure scripts as well as pkg-config configurations
|
||||||
|
that is correct paths in pkg-config and use pkg-config to
|
||||||
|
configure the configure scripts as well
|
||||||
|
- Add ncurses patch 20190209
|
||||||
|
+ add check in tic to provide warnings for mismatched number of
|
||||||
|
parameters in the documented user-capability extensions.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 6 07:45:22 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
Wed Feb 6 07:45:22 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
30
ncurses.spec
30
ncurses.spec
@ -547,10 +547,12 @@ mv tack-* tack
|
|||||||
cp -p %{root}%{_libdir}/libtinfow.so.%{version} libtinfow.so.%{version}.back
|
cp -p %{root}%{_libdir}/libtinfow.so.%{version} libtinfow.so.%{version}.back
|
||||||
%endif
|
%endif
|
||||||
ln -sf %{_incdir}/ncurses/{curses,ncurses,term,termcap}.h %{root}%{_incdir}
|
ln -sf %{_incdir}/ncurses/{curses,ncurses,term,termcap}.h %{root}%{_incdir}
|
||||||
sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncursesw" --libs "-lncursesw" \
|
|
||||||
--libs "-l%{soname_tinfo}" %{root}%{_bindir}/ncursesw6-config
|
|
||||||
mkdir pc
|
mkdir pc
|
||||||
|
PKG_CONFIG_PATH=$PWD/pc:$(pkg-config --variable pc_path pkg-config)
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
mv -f %{root}%{_libdir}/pkgconfig/*.pc pc/
|
mv -f %{root}%{_libdir}/pkgconfig/*.pc pc/
|
||||||
|
sh %{S:6} --cflags "$(pkg-config --cflags ncursesw)" --libs "$(pkg-config --libs ncursesw)" \
|
||||||
|
%{root}%{_bindir}/ncursesw6-config
|
||||||
#
|
#
|
||||||
# Some tests
|
# Some tests
|
||||||
#
|
#
|
||||||
@ -623,8 +625,6 @@ mv tack-* tack
|
|||||||
# must not use %jobs here (would lead to: ln: ncurses.h already exists)
|
# must not use %jobs here (would lead to: ln: ncurses.h already exists)
|
||||||
make install.libs install.includes DESTDIR=%{root} includedir=%{_incdir}/ncurses5 includesubdir=/ncurses libdir=%{_libdir}/ncurses5
|
make install.libs install.includes DESTDIR=%{root} includedir=%{_incdir}/ncurses5 includesubdir=/ncurses libdir=%{_libdir}/ncurses5
|
||||||
ln -sf %{_incdir}/ncurses5/ncurses/{curses,ncurses,term}.h %{root}%{_incdir}/ncurses5/
|
ln -sf %{_incdir}/ncurses5/ncurses/{curses,ncurses,term}.h %{root}%{_incdir}/ncurses5/
|
||||||
sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncurses5/ncurses -I%{_incdir}/ncurses5" --libs "-L%{_libdir}/ncurses5 -lncurses" \
|
|
||||||
--libs "-ltinfo" %{root}%{_bindir}/ncurses5-config
|
|
||||||
pushd man
|
pushd man
|
||||||
sh ../edit_man.sh normal installing %{root}%{_mandir} . ncurses5-config.1
|
sh ../edit_man.sh normal installing %{root}%{_mandir} . ncurses5-config.1
|
||||||
popd
|
popd
|
||||||
@ -637,8 +637,13 @@ mv tack-* tack
|
|||||||
tic) sed -ri 's@^(Requires.private: ).*@\1tinfo5@' "$pc" ;;
|
tic) sed -ri 's@^(Requires.private: ).*@\1tinfo5@' "$pc" ;;
|
||||||
*) sed -ri 's@^(Requires.private: ).*@\1ncurses5@' "$pc"
|
*) sed -ri 's@^(Requires.private: ).*@\1ncurses5@' "$pc"
|
||||||
esac
|
esac
|
||||||
|
sed -ri 's@^(includedir=).*@\1%{_incdir}/ncurses5/ncurses@' "$pc"
|
||||||
|
sed -ri 's@^(libdir=).*@\1%{_libdir}/ncurses5@' "$pc"
|
||||||
|
sed -ri 's@^(Libs: )(.*)@\1-L${libdir}\2@' "$pc"
|
||||||
mv -f $pc pc/${base}5.pc
|
mv -f $pc pc/${base}5.pc
|
||||||
done
|
done
|
||||||
|
sh %{S:6} --cflags "$(pkg-config --cflags ncurses5)" --libs "$(pkg-config --libs ncurses5)" \
|
||||||
|
%{root}%{_bindir}/ncurses5-config
|
||||||
|
|
||||||
#
|
#
|
||||||
# Now use --disable-widec for narrow character support.
|
# Now use --disable-widec for narrow character support.
|
||||||
@ -682,12 +687,12 @@ mv tack-* tack
|
|||||||
cp -p libtinfo.so.%{version}.back %{root}%{_libdir}/libtinfo.so.%{version}
|
cp -p libtinfo.so.%{version}.back %{root}%{_libdir}/libtinfo.so.%{version}
|
||||||
cp -p libtinfow.so.%{version}.back %{root}%{_libdir}/libtinfow.so.%{version}
|
cp -p libtinfow.so.%{version}.back %{root}%{_libdir}/libtinfow.so.%{version}
|
||||||
%endif
|
%endif
|
||||||
sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncurses" --libs "-lncurses" \
|
|
||||||
--libs "-ltinfo" %{root}%{_bindir}/ncurses6-config
|
|
||||||
pushd man
|
pushd man
|
||||||
sh ../edit_man.sh normal installing %{root}%{_mandir} . ncurses6-config.1
|
sh ../edit_man.sh normal installing %{root}%{_mandir} . ncurses6-config.1
|
||||||
popd
|
popd
|
||||||
mv -f %{root}%{_libdir}/pkgconfig/*.pc pc/
|
mv -f %{root}%{_libdir}/pkgconfig/*.pc pc/
|
||||||
|
sh %{S:6} --cflags "$(pkg-config --cflags ncurses)" --libs "$(pkg-config --libs ncurses)" \
|
||||||
|
%{root}%{_bindir}/ncurses6-config
|
||||||
#
|
#
|
||||||
# Some tests
|
# Some tests
|
||||||
#
|
#
|
||||||
@ -754,8 +759,6 @@ mv tack-* tack
|
|||||||
gcc $CFLAGS $LDFLAGS -fPIC -shared -Wl,--auxiliary=libtinfo.so.5,-soname,libtinfow.so.5,-stats,-lc \
|
gcc $CFLAGS $LDFLAGS -fPIC -shared -Wl,--auxiliary=libtinfo.so.5,-soname,libtinfow.so.5,-stats,-lc \
|
||||||
-Wl,--version-script,package/ncursesw.map -o %{root}%{_libdir}/libtinfow.so.5.9
|
-Wl,--version-script,package/ncursesw.map -o %{root}%{_libdir}/libtinfow.so.5.9
|
||||||
%endif
|
%endif
|
||||||
sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncurses5/ncursesw -I%{_incdir}/ncurses5" --libs "-L%{_libdir}/ncurses5 -lncursesw" \
|
|
||||||
--libs "-l%{soname_tinfo}" %{root}%{_bindir}/ncursesw5-config
|
|
||||||
pushd man
|
pushd man
|
||||||
sh ../edit_man.sh normal installing %{root}%{_mandir} . ncursesw5-config.1
|
sh ../edit_man.sh normal installing %{root}%{_mandir} . ncursesw5-config.1
|
||||||
popd
|
popd
|
||||||
@ -765,15 +768,16 @@ mv tack-* tack
|
|||||||
base=${pc%%.pc}
|
base=${pc%%.pc}
|
||||||
base=${base##*/}
|
base=${base##*/}
|
||||||
case "$base" in
|
case "$base" in
|
||||||
tinfo) sed -ri 's@(includedir=/usr/include/ncurses5/ncurses)w.*@\1@' "$pc" ;;
|
|
||||||
tic) sed -ri 's@(includedir=/usr/include/ncurses5/ncurses)w.*@\1@' "$pc" ;;
|
|
||||||
esac
|
|
||||||
case "$base" in
|
|
||||||
tic) sed -ri 's@^(Requires.private: ).*@\1tinfo5@' "$pc" ;;
|
tic) sed -ri 's@^(Requires.private: ).*@\1tinfo5@' "$pc" ;;
|
||||||
*) sed -ri 's@^(Requires.private: ).*@\1ncurses5@' "$pc"
|
*) sed -ri 's@^(Requires.private: ).*@\1ncurses5@' "$pc"
|
||||||
esac
|
esac
|
||||||
|
sed -ri 's@^(includedir=).*@\1%{_incdir}/ncurses5/ncursesw@' "$pc"
|
||||||
|
sed -ri 's@^(libdir=).*@\1%{_libdir}/ncurses5@' "$pc"
|
||||||
|
sed -ri 's@^(Libs: )(.*)@\1-L${libdir}\2@' "$pc"
|
||||||
mv -f $pc pc/${base}5.pc
|
mv -f $pc pc/${base}5.pc
|
||||||
done
|
done
|
||||||
|
sh %{S:6} --cflags "$(pkg-config --cflags ncursesw5)" --libs "$(pkg-config --libs ncursesw5)" \
|
||||||
|
%{root}%{_bindir}/ncursesw5-config
|
||||||
|
|
||||||
%install
|
%install
|
||||||
PATH=$PWD/gzip:$PATH
|
PATH=$PWD/gzip:$PATH
|
||||||
@ -981,7 +985,7 @@ mv tack-* tack
|
|||||||
grep -v -F -x -f default.list -f screen.list -f iterm.list \
|
grep -v -F -x -f default.list -f screen.list -f iterm.list \
|
||||||
> extension.list
|
> extension.list
|
||||||
rm -f %{buildroot}%{_prefix}/lib/terminfo
|
rm -f %{buildroot}%{_prefix}/lib/terminfo
|
||||||
mv pc/*.pc %{buildroot}%{_libdir}/pkgconfig/
|
cp -p pc/*.pc %{buildroot}%{_libdir}/pkgconfig/
|
||||||
|
|
||||||
%if 0%{?qemu_user_space_build:1}%{?_crossbuild}
|
%if 0%{?qemu_user_space_build:1}%{?_crossbuild}
|
||||||
# No test here
|
# No test here
|
||||||
|
Loading…
Reference in New Issue
Block a user