Accepting request 455491 from home:jengelh:branches:Base:System

OBS-URL: https://build.opensuse.org/request/show/455491
OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=287
This commit is contained in:
Dr. Werner Fink 2017-02-09 12:31:49 +00:00 committed by Git OBS Bridge
parent 001b5ef492
commit 22ccf49e5c
2 changed files with 34 additions and 102 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Feb 3 14:17:59 UTC 2017 - jengelh@inai.de
- Drop authors block from description and ship AUTHORS intead.
- Replace canned summaries and descriptions by
package-specific ones.
- Replace |xargs rm by simpler -delete. Use modern tar options.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 3 08:00:06 UTC 2017 - werner@suse.de Fri Feb 3 08:00:06 UTC 2017 - werner@suse.de

View File

@ -49,10 +49,10 @@ Obsoletes: ncurses-64bit
# #
Version: 6.0 Version: 6.0
Release: 0 Release: 0
Summary: New curses Libraries Summary: Terminal control library
#Git: http://ncurses.scripts.mit.edu
License: MIT License: MIT
Group: System/Base Group: System/Base
#Git: http://ncurses.scripts.mit.edu
Url: http://invisible-island.net/ncurses/ncurses.html Url: http://invisible-island.net/ncurses/ncurses.html
Source0: ftp://invisible-island.net/ncurses/ncurses-6.0.tar.gz Source0: ftp://invisible-island.net/ncurses/ncurses-6.0.tar.gz
Source1: ncurses-6.0-patches.tar.bz2 Source1: ncurses-6.0-patches.tar.bz2
@ -75,19 +75,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
As soon as a text application needs to directly control its output to As soon as a text application needs to directly control its output to
the screen (if it wants to place the cursor at location (x,y) then the screen (if it wants to place the cursor at location (x,y) then
write text), ncurses is used. The panel and the forms libraries are write text), ncurses is used. The panel and the forms libraries are
included in this package. These new libraries support color, special included in this package. ncurses supports color, special
characters, and panels. characters, and panels.
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Juergen Pfeifer <Juergen.Pfeifer@t-online.de>
Eric S. Raymond <esr@thyrsus.com>
Zeyd M. Ben-Halim <zmbenhal@netcom.com>
Pavel Curtis
%package -n ncurses-utils %package -n ncurses-utils
Summary: Tools using the new curses libraries Summary: Tools using the new curses libraries
License: MIT License: MIT
@ -109,16 +99,6 @@ tset -- terminal-initialization utility
reset -- terminal initialization utility reset -- terminal initialization utility
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Eric S. Raymond <esr@thyrsus.com>
Zeyd M. Ben-Halim <zmbenhal@netcom.com>
Juergen Pfeifer <Juergen.Pfeifer@t-online.de>
Pavel Curtis
%package -n terminfo-base %package -n terminfo-base
Summary: A terminal descriptions database Summary: A terminal descriptions database
License: MIT License: MIT
@ -131,15 +111,8 @@ This database is the official successor to the 4.4BSD termcap file and
contains information about any known terminal. The ncurses library contains information about any known terminal. The ncurses library
makes use of this database to use terminals correctly. makes use of this database to use terminals correctly.
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Eric S. Raymond <esr@thyrsus.com>
%package -n libncurses5 %package -n libncurses5
Summary: The New curses Libraries Summary: Terminal control library
License: MIT License: MIT
Group: System/Libraries Group: System/Libraries
Requires: terminfo-base Requires: terminfo-base
@ -152,21 +125,13 @@ Obsoletes: ncurses-64bit
# #
%description -n libncurses5 %description -n libncurses5
The ncurses library is used by the most curses based terminal The ncurses library is used by many terminal applications for
applications for controling its output and input to the screen. controlling output to the screen and input from the user.
This package contains the library built with the version 5 ABI.
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Eric S. Raymond <esr@thyrsus.com>
Zeyd M. Ben-Halim <zmbenhal@netcom.com>
Juergen Pfeifer <Juergen.Pfeifer@t-online.de>
Pavel Curtis
%package -n libncurses6 %package -n libncurses6
Summary: The New curses Libraries Summary: Terminal control library
License: MIT License: MIT
Group: System/Libraries Group: System/Libraries
Requires: terminfo-base Requires: terminfo-base
@ -174,18 +139,10 @@ Provides: ncurses = %{version}
Recommends: ncurses-utils = %{version} Recommends: ncurses-utils = %{version}
%description -n libncurses6 %description -n libncurses6
The ncurses library is used by the most curses based terminal The ncurses library is used by many terminal applications for
applications for controling its output and input to the screen. controlling output to the screen and input from the user.
This package contains the library built with the version 6 ABI.
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Juergen Pfeifer <Juergen.Pfeifer@t-online.de>
Eric S. Raymond <esr@thyrsus.com>
Zeyd M. Ben-Halim <zmbenhal@netcom.com>
Pavel Curtis
%package -n terminfo %package -n terminfo
Summary: A terminal descriptions database Summary: A terminal descriptions database
@ -201,15 +158,8 @@ just use the Linux console, xterm, and VT100, you probably will not
need this database -- a minimal /usr/share/terminfo tree for these need this database -- a minimal /usr/share/terminfo tree for these
terminals is already included in the terminfo-base package. terminals is already included in the terminfo-base package.
Authors:
--------
Eric S. Raymond <esr@thyrsus.com>
Thomas E. Dickey <dickey@invisible-island.net>
%package -n ncurses-devel %package -n ncurses-devel
Summary: Include Files and Libraries mandatory for Development Summary: Development files for the ncurses6 terminal control library
License: MIT License: MIT
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: ncurses6-devel Provides: ncurses6-devel
@ -224,21 +174,11 @@ Obsoletes: ncurses-devel-64bit
# #
%description -n ncurses-devel %description -n ncurses-devel
This package contains all necessary include files and libraries needed This package contains the headers needed to build against
to develop applications that require these. the ncurses library in its ABI version 6 form.
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Juergen Pfeifer <Juergen.Pfeifer@t-online.de>
Eric S. Raymond <esr@thyrsus.com>
Zeyd M. Ben-Halim <zmbenhal@netcom.com>
Pavel Curtis
%package -n ncurses5-devel %package -n ncurses5-devel
Summary: Include Files and Libraries mandatory for Development Summary: Development files for the ncurses5 terminal control library
License: MIT License: MIT
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: ncurses:%{_incdir}/ncurses5/ncurses.h Provides: ncurses:%{_incdir}/ncurses5/ncurses.h
@ -248,18 +188,8 @@ Requires: ncurses = %{version}-%{release}
Requires: ncurses-devel = %{version}-%{release} Requires: ncurses-devel = %{version}-%{release}
%description -n ncurses5-devel %description -n ncurses5-devel
This package contains all necessary include files and libraries needed This package contains the headers needed to build against
to develop applications that require these. the ncurses library in its ABI version 5 form.
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Juergen Pfeifer <Juergen.Pfeifer@t-online.de>
Eric S. Raymond <esr@thyrsus.com>
Zeyd M. Ben-Halim <zmbenhal@netcom.com>
Pavel Curtis
%package -n tack %package -n tack
Summary: Terminfo action checker Summary: Terminfo action checker
@ -275,18 +205,11 @@ correctness of an existing entry, and to develop the correct pad
timings needed to ensure that screen updates do not fall behind the timings needed to ensure that screen updates do not fall behind the
incoming data stream. incoming data stream.
Authors:
--------
Daniel Weaver <danw@znyx.com>
Eric S. Raymond <esr@thyrsus.com>
%prep %prep
%setup -q %setup -q
rm -f Ada95/src/terminal_interface-curses.adb rm -f Ada95/src/terminal_interface-curses.adb
rm -f mkinstalldirs rm -f mkinstalldirs
tar xfj %{S:1} tar -xjf %{S:1}
set +x set +x
for patch in patches/ncurses*.patch for patch in patches/ncurses*.patch
do do
@ -294,11 +217,11 @@ do
done done
set -x set -x
rm -rf patches/ rm -rf patches/
find -name '*.orig' | xargs -r rm -f find -name '*.orig' -delete
# replace tack from ncurses tarball with the latest version in # replace tack from ncurses tarball with the latest version in
# separate tarball # separate tarball
rm -fr tack rm -fr tack
tar xfz %{S:5} tar -xzf %{S:5}
mv tack-* tack mv tack-* tack
%patch1 -p0 -b .327x %patch1 -p0 -b .327x
%patch4 -p0 -b .hs %patch4 -p0 -b .hs
@ -554,7 +477,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src
# #
# Now rebuild libncurses and do the rest of this job # Now rebuild libncurses and do the rest of this job
# #
find -name fallback.o | xargs -r rm -vf find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c cp fallback.c.build ncurses/fallback.c
make -C c++ etip.h make -C c++ etip.h
make %{?_smp_mflags} make %{?_smp_mflags}
@ -565,7 +488,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src
EOF EOF
%endif %endif
# 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)
find man/ -name '*.[1-8]x.*' | xargs -r rm -vf find man/ -name '*.[1-8]x.*' -print -delete
make install DESTDIR=%{root} includedir=%{_incdir} includesubdir=/ncurses libdir=%{_libdir} make install DESTDIR=%{root} includedir=%{_incdir} includesubdir=/ncurses libdir=%{_libdir}
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}/ncurses" --libs "-lncurses" --libs "-ltinfo" %{root}%{_bindir}/ncurses6-config sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncurses" --libs "-lncurses" --libs "-ltinfo" %{root}%{_bindir}/ncurses6-config
@ -606,7 +529,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src
sleep 1 sleep 1
kill $pid kill $pid
%if !0%{?_crossbuild} %if !0%{?_crossbuild}
find -name fallback.o | xargs -r rm -vf find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c cp fallback.c.build ncurses/fallback.c
%endif %endif
make -C c++ etip.h make -C c++ etip.h
@ -654,7 +577,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src
sleep 1 sleep 1
kill $pid kill $pid
%if !0%{?_crossbuild} %if !0%{?_crossbuild}
find -name fallback.o | xargs -r rm -vf find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c cp fallback.c.build ncurses/fallback.c
%endif %endif
make -C c++ etip.h make -C c++ etip.h
@ -688,7 +611,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src
sleep 1 sleep 1
kill $pid kill $pid
%if !0%{?_crossbuild} %if !0%{?_crossbuild}
find -name fallback.o | xargs -r rm -vf find -name fallback.o -print -delete
cp fallback.c.build ncurses/fallback.c cp fallback.c.build ncurses/fallback.c
%endif %endif
make -C c++ etip.h make -C c++ etip.h
@ -927,6 +850,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src
%doc %{_mandir}/man1/tput.1.gz %doc %{_mandir}/man1/tput.1.gz
%doc %{_mandir}/man1/tset.1.gz %doc %{_mandir}/man1/tset.1.gz
%doc %{_mandir}/man5/*.gz %doc %{_mandir}/man5/*.gz
%doc AUTHORS
%files -n libncurses5 %files -n libncurses5
%defattr(-,root,root) %defattr(-,root,root)