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