b13877
Summary: A library for editing typed command lines
b13877
Name: readline
b13877
Version: 6.2
fd4b73
Release: 11%{?dist}
b13877
License: GPLv3+
b13877
Group: System Environment/Libraries
b13877
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
b13877
Source: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
b13877
# upstream patches
b13877
Patch1: ftp://ftp.cwru.edu/pub/bash/readline-6.2-patches/readline62-001
3b2acc
Patch2: ftp://ftp.cwru.edu/pub/bash/readline-6.2-patches/readline62-003
3b2acc
b13877
# fix file permissions, remove RPATH, use CFLAGS
b13877
Patch20: readline-6.2-shlib.patch
b13877
# add TTY input audit support
b13877
Patch21: readline-6.1-audit.patch
b13877
# isxdigit should not be defined as macro
b13877
Patch22:  readline-6.2-cppmacro.patch
b13877
# add workaround for problem in gdb
b13877
# in new version of readline needs to be deleted
b13877
Patch23:  readline-6.2-gdb.patch
75031d
Patch24:  readline-6.2-rl_trace.patch
fd4b73
Patch25:  readline-7.0-bracketed-paste.patch
b13877
Requires(post): /sbin/install-info
b13877
Requires(preun): /sbin/install-info
b13877
BuildRequires: ncurses-devel
b13877
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b13877
b13877
%description
b13877
The Readline library provides a set of functions that allow users to
b13877
edit command lines. Both Emacs and vi editing modes are available. The
b13877
Readline library includes additional functions for maintaining a list
b13877
of previously-entered command lines for recalling or editing those
b13877
lines, and for performing csh-like history expansion on previous
b13877
commands.
b13877
b13877
%package devel
b13877
Summary: Files needed to develop programs which use the readline library
b13877
Group: Development/Libraries
b13877
Requires: %{name} = %{version}-%{release}
b13877
Requires: ncurses-devel
b13877
Requires(post): /sbin/install-info
b13877
Requires(preun): /sbin/install-info
b13877
b13877
%description devel
b13877
The Readline library provides a set of functions that allow users to
b13877
edit typed command lines. If you want to develop programs that will
b13877
use the readline library, you need to have the readline-devel package
b13877
installed. You also need to have the readline package installed.
b13877
b13877
%package static
b13877
Summary: Static libraries for the readline library
b13877
Group: Development/Libraries
b13877
Requires: %{name}-devel = %{version}-%{release}
b13877
b13877
%description static
b13877
The readline-static package contains the static version of the readline
b13877
library.
b13877
b13877
%prep
b13877
%setup -q
b13877
%patch1 -p0
3b2acc
%patch2 -p0
b13877
%patch20 -p1 -b .shlib
b13877
%patch21 -p1 -b .audit
b13877
%patch22 -p1 -b .cppmacro
b13877
%patch23 -p1 -b .gdb
75031d
%patch24 -p1 -b .rl
fd4b73
%patch25 -p1 -b .bracketed-paste
b13877
b13877
pushd examples
b13877
rm -f rlfe/configure
b13877
iconv -f iso8859-1 -t utf8 -o rl-fgets.c{_,}
b13877
touch -r rl-fgets.c{,_}
b13877
mv -f rl-fgets.c{_,}
b13877
popd
b13877
b13877
%build
b13877
export CPPFLAGS="-I%{_includedir}/ncurses"
b13877
%configure
b13877
make %{?_smp_mflags}
b13877
b13877
%install
b13877
rm -rf $RPM_BUILD_ROOT
b13877
b13877
make DESTDIR=$RPM_BUILD_ROOT install
b13877
b13877
mkdir $RPM_BUILD_ROOT/%{_lib}
b13877
mv $RPM_BUILD_ROOT%{_libdir}/libreadline.so.* $RPM_BUILD_ROOT/%{_lib}
b13877
for l in $RPM_BUILD_ROOT%{_libdir}/libreadline.so; do
b13877
    ln -sf $(echo %{_libdir} | \
b13877
        sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l
b13877
done
b13877
b13877
rm -rf $RPM_BUILD_ROOT%{_datadir}/readline
b13877
rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
b13877
b13877
%clean
b13877
rm -rf $RPM_BUILD_ROOT
b13877
b13877
%post
b13877
/sbin/ldconfig
b13877
/sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir &> /dev/null
b13877
/sbin/install-info %{_infodir}/rluserman.info.gz %{_infodir}/dir &> /dev/null
b13877
:
b13877
b13877
%postun -p /sbin/ldconfig
b13877
b13877
%preun
b13877
if [ $1 = 0 ]; then
b13877
   /sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir &> /dev/null
b13877
   /sbin/install-info --delete %{_infodir}/rluserman.info.gz %{_infodir}/dir &> /dev/null
b13877
fi
b13877
:
b13877
b13877
%post devel
b13877
/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir &> /dev/null
b13877
:
b13877
b13877
%preun devel
b13877
if [ $1 = 0 ]; then
b13877
   /sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir &> /dev/null
b13877
fi
b13877
:
b13877
b13877
%files
b13877
%defattr(-,root,root,-)
b13877
%doc CHANGES COPYING NEWS README USAGE
b13877
/%{_lib}/libreadline*.so.*
b13877
%{_libdir}/libhistory*.so.*
b13877
%{_infodir}/history.info*
b13877
%{_infodir}/rluserman.info*
b13877
b13877
%files devel
b13877
%defattr(-,root,root,-)
b13877
%doc examples/*.c examples/*.h examples/rlfe
b13877
%{_includedir}/readline
b13877
%{_libdir}/lib*.so
b13877
%{_mandir}/man3/*
b13877
%{_infodir}/readline.info*
b13877
b13877
%files static
b13877
%defattr(-,root,root,-)
b13877
%{_libdir}/lib*.a
b13877
b13877
%changelog
fd4b73
* Tue Mar 12 2019 Siteshwar Vashisht <svashisht@redhat.com> - 6.2-11
fd4b73
- Add support for bracketed paste mode
fd4b73
  Resolves: #1573899
fd4b73
3b2acc
* Mon Feb 13 2017 Siteshwar Vashisht <svashisht@redhat.com> - 6.2-10
3b2acc
- Fix for slow behaviour while pasting text
3b2acc
  Resolves: #1300513
3b2acc
75031d
* Mon Mar 24 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 6.2-9
75031d
- fix for CVE-2014-2524
75031d
75031d
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 6.2-8
75031d
- Mass rebuild 2014-01-24
75031d
75031d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.2-7
75031d
- Mass rebuild 2013-12-27
75031d
b13877
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-6
b13877
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b13877
b13877
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-5
b13877
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b13877
b13877
* Wed Jan 11 2012 Lukas Nykryn <lnykryn@redhat.com> 6.2-4
b13877
- temporary fix for problem with gdb, wait for y/n (#701131)
b13877
b13877
* Wed Aug 31 2011 Lukas Nykryn <lnykryn@redhat.com> 6.2-3
b13877
- isxdigit is no longer defined as macro ic c++ (#723299)
b13877
b13877
* Tue Mar 01 2011 Miroslav Lichvar <mlichvar@redhat.com> 6.2-2
b13877
- include patch 001
b13877
b13877
* Tue Feb 15 2011 Miroslav Lichvar <mlichvar@redhat.com> 6.2-1
b13877
- update to 6.2
b13877
b13877
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-4
b13877
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b13877
b13877
* Tue Jan 18 2011 Miroslav Lichvar <mlichvar@redhat.com> 6.1-3
b13877
- include patches 001, 002 (#657758)
b13877
- add TTY input audit support (#244350)
b13877
b13877
* Wed Feb 17 2010 Lubomir Rintel <lkundrak@v3.sk> 6.1-2
b13877
- fix the version number in header
b13877
b13877
* Tue Jan 12 2010 Miroslav Lichvar <mlichvar@redhat.com> 6.1-1
b13877
- update to 6.1
b13877
b13877
* Tue Aug 25 2009 Miroslav Lichvar <mlichvar@redhat.com> 6.0-3
b13877
- include patch 004
b13877
- suppress install-info errors (#515910)
b13877
- remove dir* in infodir after install (#492097)
b13877
b13877
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0-2
b13877
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b13877
b13877
* Tue Jul 14 2009 Miroslav Lichvar <mlichvar@redhat.com> 6.0-1
b13877
- update to 6.0
b13877
- include patches 001, 002, 003
b13877
b13877
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-14
b13877
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b13877
b13877
* Sun Mar 23 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 5.2-13
b13877
- Fix the previous %%changelog entry authorship.
b13877
b13877
* Sun Mar 23 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 5.2-12
b13877
- Fix excessive prompts on CTRL-C abort while the prompt is being printed.
b13877
b13877
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.2-11
b13877
- Autorebuild for GCC 4.3
b13877
b13877
* Fri Jan 18 2008 Miroslav Lichvar <mlichvar@redhat.com> 5.2-10
b13877
- move libreadline to /lib
b13877
b13877
* Thu Jan 03 2008 Miroslav Lichvar <mlichvar@redhat.com> 5.2-9
b13877
- include upstream patches 008-011
b13877
b13877
* Mon Nov 05 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-8
b13877
- fix cursor position when prompt has one invisible character (#358231)
b13877
- merge review fixes (#226361)
b13877
- fix source URL
b13877
b13877
* Mon Aug 27 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-7
b13877
- include patches 005, 006, 007
b13877
b13877
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-6
b13877
- update license tag
b13877
b13877
* Tue May 29 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-5
b13877
- include patches 5.2-003, 5.2-004
b13877
b13877
* Thu Mar 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-4
b13877
- apply 5.2-002 patch
b13877
b13877
* Thu Mar 15 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-3
b13877
- link libreadline with libtinfo (#232277)
b13877
- include upstream 5.2-001 patch
b13877
- move static libraries to -static subpackage, spec cleanup
b13877
b13877
* Thu Nov 30 2006 Miroslav Lichvar <mlichvar@redhat.com> 5.2-2
b13877
- require ncurses-devel instead of libtermcap-devel
b13877
b13877
* Mon Nov 13 2006 Miroslav Lichvar <mlichvar@redhat.com> 5.2-1
b13877
- update to 5.2 (#213795)
b13877
- use CFLAGS when linking (#199374)
b13877
- package docs and examples (#172497)
b13877
- spec cleanup
b13877
b13877
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1-1.1
b13877
- rebuild
b13877
b13877
* Mon Jul 10 2006 Jindrich Novy <jnovy@redhat.com> 5.1-1
b13877
- update to readline-5.1
b13877
- apply new proposed upstream patches for 5.1 (001-004)
b13877
- drop "read -e" patch, applied upstream
b13877
b13877
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0-3.2.1
b13877
- bump again for double-long bug on ppc(64)
b13877
b13877
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0-3.2
b13877
- rebuilt for new gcc4.1 snapshot and glibc changes
b13877
b13877
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
b13877
- rebuilt
b13877
b13877
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 5.0-3
b13877
- Rebuild for new GCC.
b13877
b13877
* Tue Jan 18 2005 Tim Waugh <twaugh@redhat.com> 5.0-2
b13877
- Fix line-wrapping (bug #145329).
b13877
- Apply "read -e" patch from bash package.
b13877
b13877
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 5.0-1
b13877
- 5.0 (bug #144835).
b13877
b13877
* Mon Nov 29 2004 Tim Waugh <twaugh@redhat.com> 4.3-14
b13877
- Added URL tag (bug #141106).
b13877
b13877
* Thu Sep  2 2004 Jeremy Katz <katzj@redhat.com> - 4.3-13
b13877
- rebuild so that static linking against readline will work on ppc64 
b13877
  without dot symbols
b13877
b13877
* Mon Jun 28 2004 Tim Waugh <twaugh@redhat.com> 4.3-12
b13877
- Build requires libtool (bug #126589).
b13877
b13877
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
b13877
- rebuilt
b13877
b13877
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
b13877
- rebuilt
b13877
b13877
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
b13877
- rebuilt
b13877
b13877
* Fri Nov 28 2003 Thomas Woerner <twoerner@redhat.com> 4.3-9
b13877
- removed rpath
b13877
b13877
* Thu Nov  6 2003 Tim Waugh <twaugh@redhat.com> 4.3-8
b13877
- Apply upstream patches (bug #109240 among others).
b13877
b13877
* Wed Jun 25 2003 Tim Waugh <twaugh@redhat.com>
b13877
- devel package requires libtermcap-devel (bug #98015).
b13877
b13877
* Wed Jun 25 2003 Tim Waugh <twaugh@redhat.com> 4.3-7
b13877
- Fixed recursion loop (bug #92372).
b13877
b13877
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
b13877
- rebuilt
b13877
b13877
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
b13877
- rebuilt
b13877
b13877
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
b13877
- rebuild in current collinst
b13877
- BuildRequires autoconf only
b13877
b13877
* Wed Aug 07 2002 Phil Knirsch <pknirsch@redhat.com> 4.3-3
b13877
- Fixed Esc-O-M stack overflow bug.
b13877
b13877
* Mon Jul 22 2002 Phil Knirsch <pknirsch@redhat.com> 4.3-1
b13877
- Updated to latest readline release 4.3
b13877
b13877
* Thu Jul 11 2002 Phil Knirsch <pknirsch@redhat.com> 4.2a-7
b13877
- Fixed problem with alpha build.
b13877
b13877
* Wed Jul 10 2002 Phil Knirsch <pknirsch@redhat.com>
b13877
- Fixed utf8 problem (originally observed in bash).
b13877
b13877
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.2a-6
b13877
- automated rebuild
b13877
b13877
* Thu May 23 2002 Tim Powers <timp@redhat.com> 4.2a-5
b13877
- automated rebuild
b13877
b13877
* Wed Mar 20 2002 Trond Eivind Glomsrød <teg@redhat.com> 4.2a-4
b13877
- Use autoconf 2.53, not 2.52
b13877
b13877
* Mon Mar  4 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-3
b13877
- Rebuild
b13877
b13877
* Mon Nov 26 2001 Matt Wilson <msw@redhat.com> 4.2a-2
b13877
- removed the manual symlinking of .so, readline handles this by itself
b13877
- call only %%makeinstall, not %%makeinstall install install-shared as
b13877
  this makes bogus .old files in the buildroot
b13877
b13877
* Tue Nov 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-1
b13877
- 4.2a
b13877
b13877
* Tue Oct  2 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-4
b13877
- Work around autoconf bug
b13877
b13877
* Mon Oct  1 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-3
b13877
- Don't use readline's internal re-implementation of strpbrk on systems
b13877
  that have strpbrk - the system implementation is faster and better maintained.
b13877
b13877
* Tue Aug  7 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-2
b13877
- Make sure headers can be included from C++ applications (#51131)
b13877
  (Patch based on Debian's with the bugs removed ;) )
b13877
b13877
* Wed May 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
b13877
- update to 4.2 and adapt patches
b13877
b13877
* Fri Apr  6 2001 Nalin Dahyabhai <nalin@redhat.com>
b13877
- change the paths listed for the header files in the man page to reflect
b13877
  the location changes from previous versions (#35073)
b13877
- note that "on" is acceptable instead of "On" in the man page (#21327)
b13877
b13877
* Thu Mar  8 2001 Preston Brown <pbrown@redhat.com>
b13877
- fix reading of end key termcap value (@7 is correct, was kH) (#30884)
b13877
b13877
* Tue Jan 30 2001 Nalin Dahyabhai <nalin@redhat.com>
b13877
- mark the man page as currently out-of-date (#25294)
b13877
b13877
* Thu Sep  7 2000 Jeff Johnson <jbj@redhat.com>
b13877
- FHS packaging (64bit systems need to use libdir).
b13877
b13877
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
b13877
- summaries from specspo.
b13877
b13877
* Wed Aug  2 2000 Florian La Roche <Florian.LaRoche@redhat.com>
b13877
- use "rm -f" in specfile
b13877
b13877
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
b13877
- automatic rebuild
b13877
b13877
* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
b13877
- FHS packaging.
b13877
b13877
* Tue Mar 21 2000 Bernhard Rosenkraenzer <bero@redhat.com>
b13877
- 4.1
b13877
b13877
* Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
b13877
- update to 4.0
b13877
b13877
* Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
b13877
- added guard patch from Taneli Huuskonen <huuskone@cc.helsinki.fi>
b13877
b13877
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
b13877
- auto rebuild in the new build environment (release 4)
b13877
b13877
* Sun Jul 26 1998 Jeff Johnson <jbj@redhat.com>
b13877
- updated to 2.2.1
b13877
b13877
* Wed May 06 1998 Prospector System <bugs@redhat.com>
b13877
- translations modified for de, fr, tr
b13877
b13877
* Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
b13877
- don't package /usr/info/dir
b13877
b13877
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
b13877
- devel package moved to Development/Libraries
b13877
b13877
* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
b13877
- updated to 2.2
b13877
b13877
* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
b13877
- spec file cleanups
b13877
b13877
* Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
b13877
- added proper sonames
b13877
b13877
* Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
b13877
- updated to readline 2.1
b13877
b13877
* Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
b13877
- built against glibc