Summary: Library for editing typed command lines
Name: readline
Version: 8.0
Release: r0
License: GPLv3+
Group: libs
Packager: Poky <poky@lists.yoctoproject.org>
URL: https://tiswww.case.edu/php/chet/readline/rltop.html
BuildRequires: autoconf-native
BuildRequires: automake-native
BuildRequires: gnu-config-native
BuildRequires: libtool-cross
BuildRequires: libtool-native
BuildRequires: ncurses
BuildRequires: texinfo-dummy-native
BuildRequires: virtual/aarch64-poky-linux-compilerlibs
BuildRequires: virtual/aarch64-poky-linux-gcc
BuildRequires: virtual/libc
BuildRequires: virtual/update-alternatives

%description
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.

%package -n libreadline-src
Summary: Library for editing typed command lines - Source files
License: GPLv3+
Group: devel
Provides: readline-src = 8.0

%description -n libreadline-src
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.  This package contains sources
for debugging purposes.

%package -n libreadline-dbg
Summary: Library for editing typed command lines - Debugging files
License: GPLv3+
Group: devel
Recommends: glibc-dbg
Recommends: ncurses-libtinfo-dbg
Provides: readline-dbg = 8.0

%description -n libreadline-dbg
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.  This package contains ELF
symbols and related sources for debugging purposes.

%package -n libreadline-staticdev
Summary: Library for editing typed command lines - Development files (Static Libraries)
License: GPLv3+
Group: devel
Requires: libreadline-dev = 8.0-r0
Provides: readline-staticdev = 8.0

%description -n libreadline-staticdev
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.  This package contains static
libraries for software development.

%package -n libreadline-dev
Summary: Library for editing typed command lines - Development files
License: GPLv3+
Group: devel
Requires: libreadline8 = 8.0-r0
Recommends: glibc-dev
Recommends: ncurses-dev
Recommends: ncurses-libtinfo-dev
Recommends: update-alternatives-opkg-dev
Provides: readline-dev = 8.0

%description -n libreadline-dev
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.  This package contains
symbolic links, header files, and related items necessary for software
development.

%package -n libreadline-doc
Summary: Library for editing typed command lines - Documentation files
License: GPLv3+
Group: doc
Requires: update-alternatives-opkg
Requires(post): update-alternatives-opkg
Requires(preun): update-alternatives-opkg
Provides: /usr/share/man/man3/history.3
Provides: readline-doc = 8.0

%description -n libreadline-doc
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.  This package contains
documentation.

%package -n libreadline-locale
Summary: Library for editing typed command lines
License: GPLv3+
Group: libs
Provides: readline-locale = 8.0

%description -n libreadline-locale
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.

%package -n libreadline8
Summary: Library for editing typed command lines
License: GPLv3+
Group: libs
Requires: ld-linux-aarch64.so.1()(64bit)
Requires: ld-linux-aarch64.so.1(GLIBC_2.17)(64bit)
Requires: libc.so.6()(64bit)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Requires: libc6 >= 2.31+git0+4f0a61f753
Requires: libtinfo.so.5()(64bit)
Requires: libtinfo5 >= 6.2
Requires: rtld(GNU_HASH)
Requires(post): ld-linux-aarch64.so.1()(64bit)
Requires(post): ld-linux-aarch64.so.1(GLIBC_2.17)(64bit)
Requires(post): libc.so.6()(64bit)
Requires(post): libc.so.6(GLIBC_2.17)(64bit)
Requires(post): libc6 >= 2.31+git0+4f0a61f753
Requires(post): libtinfo.so.5()(64bit)
Requires(post): libtinfo5 >= 6.2
Requires(post): rtld(GNU_HASH)
Provides: libhistory.so.8()(64bit)
Provides: libreadline.so.8()(64bit)
Provides: readline = 8.0

%description -n libreadline8
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed in.
Both Emacs and vi editing modes are available. The Readline library
includes  additional functions to maintain a list of previously-entered
command lines, to recall and perhaps reedit those   lines, and perform csh-
like history expansion on previous commands.

%post -n libreadline-doc
# libreadline-doc - postinst
#!/bin/sh
set -e
	update-alternatives --install /usr/share/man/man3/history.3 history.3 /usr/share/man/man3/history.3.readline 100


%preun -n libreadline-doc
# libreadline-doc - prerm
#!/bin/sh
if [ "$1" = "0" ] ; then
set -e
	update-alternatives --remove  history.3 /usr/share/man/man3/history.3.readline
fi

%post -n libreadline8
# libreadline8 - postinst
#!/bin/sh
set -e
if [ x"$D" = "x" ]; then
	if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
fi


%files -n libreadline-src
%defattr(-,-,-,-)
%dir "/usr"
%dir "/usr/src"
%dir "/usr/src/debug"
%dir "/usr/src/debug/readline"
%dir "/usr/src/debug/readline/8.0-r0"
%dir "/usr/src/debug/readline/8.0-r0/readline-8.0"
"/usr/src/debug/readline/8.0-r0/readline-8.0/keymaps.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/vi_mode.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/kill.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/history.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/parse-colors.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/rltypedefs.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/display.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/text.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/search.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/macro.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/rltty.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/readline.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/rlmbutil.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/parens.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/signals.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/parse-colors.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/xmalloc.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/terminal.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/rltty.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/rlprivate.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/histfile.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/rlshell.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/misc.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/emacs_keymap.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/keymaps.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/tilde.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/undo.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/mbutil.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/compat.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/histlib.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/colors.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/callback.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/tilde.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/histexpand.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/funmap.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/history.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/bind.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/complete.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/nls.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/xmalloc.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/input.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/xfree.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/histsearch.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/vi_keymap.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/util.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/shell.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/colors.c"
"/usr/src/debug/readline/8.0-r0/readline-8.0/readline.h"
"/usr/src/debug/readline/8.0-r0/readline-8.0/isearch.c"

%files -n libreadline-dbg
%defattr(-,-,-,-)
%dir "/usr"
%dir "/usr/lib"
%dir "/usr/lib/.debug"
"/usr/lib/.debug/libreadline.so.8.0"
"/usr/lib/.debug/libhistory.so.8.0"

%files -n libreadline-staticdev
%defattr(-,-,-,-)
%dir "/usr"
%dir "/usr/lib"
"/usr/lib/libhistory.a"
"/usr/lib/libreadline.a"

%files -n libreadline-dev
%defattr(-,-,-,-)
%dir "/usr"
%dir "/usr/include"
%dir "/usr/lib"
%dir "/usr/include/readline"
"/usr/include/readline/keymaps.h"
"/usr/include/readline/history.h"
"/usr/include/readline/rlstdc.h"
"/usr/include/readline/rltypedefs.h"
"/usr/include/readline/rlconf.h"
"/usr/include/readline/chardefs.h"
"/usr/include/readline/tilde.h"
"/usr/include/readline/readline.h"
%dir "/usr/lib/pkgconfig"
"/usr/lib/libreadline.so"
"/usr/lib/libhistory.so"
"/usr/lib/pkgconfig/readline.pc"

%files -n libreadline-doc
%defattr(-,-,-,-)
%dir "/usr"
%dir "/usr/share"
%dir "/usr/share/doc"
%dir "/usr/share/man"
%dir "/usr/share/info"
%dir "/usr/share/doc/readline"
"/usr/share/doc/readline/CHANGES"
"/usr/share/doc/readline/INSTALL"
"/usr/share/doc/readline/README"
%dir "/usr/share/man/man3"
"/usr/share/man/man3/history.3.readline"
"/usr/share/man/man3/readline.3"
"/usr/share/info/rluserman.info"
"/usr/share/info/history.info"
"/usr/share/info/readline.info"

%files -n libreadline8
%defattr(-,-,-,-)
%dir "/etc"
%dir "/usr"
%config "/etc/inputrc"
%dir "/usr/lib"
"/usr/lib/libreadline.so.8.0"
"/usr/lib/libhistory.so.8"
"/usr/lib/libreadline.so.8"
"/usr/lib/libhistory.so.8.0"