1bcdb37
Summary: A library for editing typed command lines
cvsdist 97b492d
Name: readline
6316085
Version: 5.2
5f2281c
Release: 9%{?dist}
77527ff
License: GPLv2+
cvsdist 97b492d
Group: System Environment/Libraries
885fb9c
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
c6de18b
Source: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
6316085
Patch1: readline-5.2-shlib.patch
1bcdb37
Patch2: readline-5.2-001.patch
a0fe47e
Patch3: readline-5.2-002.patch
b9b9176
Patch4: readline-5.2-003.patch
b9b9176
Patch5: readline-5.2-004.patch
36f5292
Patch6: readline-5.2-005.patch
36f5292
Patch7: readline-5.2-006.patch
36f5292
Patch8: readline-5.2-007.patch
5f2281c
Patch9: readline-5.2-008.patch
5f2281c
Patch10: readline-5.2-009.patch
5f2281c
Patch11: readline-5.2-010.patch
5f2281c
Patch12: readline-5.2-011.patch
6316085
Requires(post): /sbin/install-info
6316085
Requires(preun): /sbin/install-info
db57ac3
BuildRequires: ncurses-devel
6316085
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist 97b492d
cvsdist 97b492d
%description
cvsdist 9d21a70
The Readline library provides a set of functions that allow users to
cvsdist 9d21a70
edit command lines. Both Emacs and vi editing modes are available. The
cvsdist 9d21a70
Readline library includes additional functions for maintaining a list
cvsdist 9d21a70
of previously-entered command lines for recalling or editing those
cvsdist 9d21a70
lines, and for performing csh-like history expansion on previous
cvsdist 9d21a70
commands.
cvsdist 97b492d
cvsdist 97b492d
%package devel
1bcdb37
Summary: Files needed to develop programs which use the readline library
cvsdist 97b492d
Group: Development/Libraries
6316085
Requires: %{name} = %{version}-%{release}
db57ac3
Requires: ncurses-devel
6316085
Requires(post): /sbin/install-info
6316085
Requires(preun): /sbin/install-info
cvsdist 97b492d
cvsdist 97b492d
%description devel
cvsdist 9d21a70
The Readline library provides a set of functions that allow users to
cvsdist 9d21a70
edit typed command lines. If you want to develop programs that will
cvsdist 9d21a70
use the readline library, you need to have the readline-devel package
cvsdist 9d21a70
installed. You also need to have the readline package installed.
cvsdist 97b492d
1bcdb37
%package static
1bcdb37
Summary: Static libraries for the readline library
1bcdb37
Group: Development/Libraries
1bcdb37
Requires: %{name}-devel = %{version}-%{release}
1bcdb37
1bcdb37
%description static
1bcdb37
The readline-static package contains the static version of the readline
1bcdb37
library.
1bcdb37
cvsdist 97b492d
%prep
cvsdist 97b492d
%setup -q
6316085
%patch1 -p1 -b .shlib
1bcdb37
%patch2 -p0 -b .001
a0fe47e
%patch3 -p0 -b .002
b9b9176
%patch4 -p0 -b .003
b9b9176
%patch5 -p0 -b .004
36f5292
%patch6 -p0 -b .005
36f5292
%patch7 -p0 -b .006
36f5292
%patch8 -p0 -b .007
5f2281c
%patch9 -p0 -b .008
5f2281c
%patch10 -p0 -b .009
5f2281c
%patch11 -p0 -b .010
5f2281c
%patch12 -p0 -b .011
cvsdist e894259
c6de18b
pushd examples
c6de18b
rm -f rlfe/configure
c6de18b
iconv -f iso8859-1 -t utf8 -o rl-fgets.c{_,}
c6de18b
touch -r rl-fgets.c{,_}
c6de18b
mv -f rl-fgets.c{_,}
c6de18b
popd
cvsdist 97b492d
cvsdist 97b492d
%build
c6de18b
export CPPFLAGS="-I%{_includedir}/ncurses"
cvsdist 97b492d
%configure
1bcdb37
make %{?_smp_mflags}
cvsdist 97b492d
cvsdist 97b492d
%install
6316085
rm -rf $RPM_BUILD_ROOT
cvsdist 97b492d
6316085
make DESTDIR=$RPM_BUILD_ROOT install
cvsdist 97b492d
6316085
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
cvsdist 97b492d
cvsdist 97b492d
%clean
6316085
rm -rf $RPM_BUILD_ROOT
cvsdist 97b492d
cvsdist 97b492d
%post
cvsdist 97b492d
/sbin/ldconfig
cvsdist 97b492d
/sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir
6316085
/sbin/install-info %{_infodir}/rluserman.info.gz %{_infodir}/dir
6316085
:
cvsdist 97b492d
cvsdist 97b492d
%postun -p /sbin/ldconfig
cvsdist 97b492d
cvsdist 97b492d
%preun
cvsdist 97b492d
if [ $1 = 0 ]; then
cvsdist 97b492d
   /sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir
6316085
   /sbin/install-info --delete %{_infodir}/rluserman.info.gz %{_infodir}/dir
6316085
fi
6316085
:
6316085
6316085
%post devel
6316085
/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir
6316085
:
6316085
6316085
%preun devel
6316085
if [ $1 = 0 ]; then
cvsdist 97b492d
   /sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir
cvsdist 97b492d
fi
6316085
:
cvsdist 97b492d
cvsdist 97b492d
%files
c6de18b
%defattr(-,root,root,-)
6316085
%doc CHANGES COPYING NEWS README USAGE
cvsdist 97b492d
%{_libdir}/lib*.so.*
6316085
%{_infodir}/history.info*
6316085
%{_infodir}/rluserman.info*
cvsdist 97b492d
cvsdist 97b492d
%files devel
c6de18b
%defattr(-,root,root,-)
6316085
%doc examples/*.c examples/*.h examples/rlfe
cvsdist 97b492d
%{_includedir}/readline
cvsdist 97b492d
%{_libdir}/lib*.so
6316085
%{_mandir}/man3/*
6316085
%{_infodir}/readline.info*
cvsdist 97b492d
1bcdb37
%files static
c6de18b
%defattr(-,root,root,-)
1bcdb37
%{_libdir}/lib*.a
1bcdb37
cvsdist 97b492d
%changelog
5f2281c
* Thu Jan 03 2008 Miroslav Lichvar <mlichvar@redhat.com> 5.2-9
5f2281c
- include upstream patches 008-011
5f2281c
c6de18b
* Mon Nov 05 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-8
c6de18b
- fix cursor position when prompt has one invisible character (#358231)
c6de18b
- merge review fixes (#226361)
c6de18b
- fix source URL
c6de18b
36f5292
* Mon Aug 27 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-7
36f5292
- include patches 005, 006, 007
36f5292
77527ff
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-6
77527ff
- update license tag
77527ff
b9b9176
* Tue May 29 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-5
b9b9176
- include patches 5.2-003, 5.2-004
b9b9176
a0fe47e
* Thu Mar 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-4
a0fe47e
- apply 5.2-002 patch
a0fe47e
1bcdb37
* Thu Mar 15 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.2-3
1bcdb37
- link libreadline with libtinfo (#232277)
1bcdb37
- include upstream 5.2-001 patch
1bcdb37
- move static libraries to -static subpackage, spec cleanup
1bcdb37
db57ac3
* Thu Nov 30 2006 Miroslav Lichvar <mlichvar@redhat.com> 5.2-2
db57ac3
- require ncurses-devel instead of libtermcap-devel
db57ac3
6316085
* Mon Nov 13 2006 Miroslav Lichvar <mlichvar@redhat.com> 5.2-1
6316085
- update to 5.2 (#213795)
6316085
- use CFLAGS when linking (#199374)
6316085
- package docs and examples (#172497)
6316085
- spec cleanup
6316085
dade915
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1-1.1
dade915
- rebuild
dade915
b497441
* Mon Jul 10 2006 Jindrich Novy <jnovy@redhat.com> 5.1-1
b497441
- update to readline-5.1
b497441
- apply new proposed upstream patches for 5.1 (001-004)
b497441
- drop "read -e" patch, applied upstream
b497441
90b114c
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0-3.2.1
90b114c
- bump again for double-long bug on ppc(64)
90b114c
5b496e6
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0-3.2
5b496e6
- rebuilt for new gcc4.1 snapshot and glibc changes
5b496e6
ff4de4c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ff4de4c
- rebuilt
ff4de4c
8e490c0
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 5.0-3
8e490c0
- Rebuild for new GCC.
8e490c0
1ec2e43
* Tue Jan 18 2005 Tim Waugh <twaugh@redhat.com> 5.0-2
1ec2e43
- Fix line-wrapping (bug #145329).
3c88081
- Apply "read -e" patch from bash package.
3c88081
44dbfe0
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 5.0-1
44dbfe0
- 5.0 (bug #144835).
44dbfe0
7f9b51c
* Mon Nov 29 2004 Tim Waugh <twaugh@redhat.com> 4.3-14
885fb9c
- Added URL tag (bug #141106).
885fb9c
cvsdist db42eaf
* Thu Sep  2 2004 Jeremy Katz <katzj@redhat.com> - 4.3-13
cvsdist db42eaf
- rebuild so that static linking against readline will work on ppc64 
cvsdist db42eaf
  without dot symbols
cvsdist db42eaf
cvsdist 615e668
* Mon Jun 28 2004 Tim Waugh <twaugh@redhat.com> 4.3-12
cvsdist 615e668
- Build requires libtool (bug #126589).
cvsdist 615e668
cvsdist e6b521b
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e6b521b
- rebuilt
cvsdist e6b521b
cvsdist 5873c16
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 5873c16
- rebuilt
cvsdist 5873c16
cvsdist 5873c16
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 5873c16
- rebuilt
cvsdist 5873c16
cvsdist a673e58
* Fri Nov 28 2003 Thomas Woerner <twoerner@redhat.com> 4.3-9
cvsdist a673e58
- removed rpath
cvsdist a673e58
cvsdist a673e58
* Thu Nov  6 2003 Tim Waugh <twaugh@redhat.com> 4.3-8
cvsdist a673e58
- Apply upstream patches (bug #109240 among others).
cvsdist a673e58
cvsdist a673e58
* Wed Jun 25 2003 Tim Waugh <twaugh@redhat.com>
cvsdist a673e58
- devel package requires libtermcap-devel (bug #98015).
cvsdist a673e58
cvsdist 79d66e3
* Wed Jun 25 2003 Tim Waugh <twaugh@redhat.com> 4.3-7
cvsdist a673e58
- Fixed recursion loop (bug #92372).
cvsdist 79d66e3
cvsdist 79d66e3
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 79d66e3
- rebuilt
cvsdist 79d66e3
cvsdist 37a5b5a
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 37a5b5a
- rebuilt
cvsdist 37a5b5a
cvsdist 37a5b5a
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
cvsdist 37a5b5a
- rebuild in current collinst
cvsdist 37a5b5a
- BuildRequires autoconf only
cvsdist 37a5b5a
cvsdist bd81f10
* Wed Aug 07 2002 Phil Knirsch <pknirsch@redhat.com> 4.3-3
cvsdist e894259
- Fixed Esc-O-M stack overflow bug.
cvsdist e894259
cvsdist e894259
* Mon Jul 22 2002 Phil Knirsch <pknirsch@redhat.com> 4.3-1
cvsdist e894259
- Updated to latest readline release 4.3
cvsdist e894259
cvsdist e894259
* Thu Jul 11 2002 Phil Knirsch <pknirsch@redhat.com> 4.2a-7
cvsdist e894259
- Fixed problem with alpha build.
cvsdist e894259
cvsdist e894259
* Wed Jul 10 2002 Phil Knirsch <pknirsch@redhat.com>
cvsdist e894259
- Fixed utf8 problem (originally observed in bash).
cvsdist e894259
cvsdist e894259
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.2a-6
cvsdist e894259
- automated rebuild
cvsdist e894259
cvsdist e894259
* Thu May 23 2002 Tim Powers <timp@redhat.com> 4.2a-5
cvsdist e894259
- automated rebuild
cvsdist e894259
1bcdb37
* Wed Mar 20 2002 Trond Eivind Glomsrød <teg@redhat.com> 4.2a-4
cvsdist e86817d
- Use autoconf 2.53, not 2.52
cvsdist e86817d
cvsdist 563ef6c
* Mon Mar  4 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-3
cvsdist 563ef6c
- Rebuild
cvsdist 563ef6c
cvsdist 563ef6c
* Mon Nov 26 2001 Matt Wilson <msw@redhat.com> 4.2a-2
cvsdist 563ef6c
- removed the manual symlinking of .so, readline handles this by itself
cvsdist 563ef6c
- call only %%makeinstall, not %%makeinstall install install-shared as
cvsdist 563ef6c
  this makes bogus .old files in the buildroot
cvsdist 563ef6c
cvsdist 563ef6c
* Tue Nov 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-1
cvsdist 563ef6c
- 4.2a
cvsdist 563ef6c
cvsdist 563ef6c
* Tue Oct  2 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-4
cvsdist 563ef6c
- Work around autoconf bug
cvsdist 563ef6c
cvsdist 563ef6c
* Mon Oct  1 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-3
cvsdist 563ef6c
- Don't use readline's internal re-implementation of strpbrk on systems
cvsdist 563ef6c
  that have strpbrk - the system implementation is faster and better maintained.
cvsdist 563ef6c
cvsdist 9d21a70
* Tue Aug  7 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-2
cvsdist 9d21a70
- Make sure headers can be included from C++ applications (#51131)
cvsdist 9d21a70
  (Patch based on Debian's with the bugs removed ;) )
cvsdist 9d21a70
cvsdist 971c59d
* Wed May 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 971c59d
- update to 4.2 and adapt patches
cvsdist 971c59d
cvsdist 6f3ed5d
* Fri Apr  6 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 6f3ed5d
- change the paths listed for the header files in the man page to reflect
cvsdist 6f3ed5d
  the location changes from previous versions (#35073)
cvsdist 6f3ed5d
- note that "on" is acceptable instead of "On" in the man page (#21327)
cvsdist 6f3ed5d
cvsdist 6f3ed5d
* Thu Mar  8 2001 Preston Brown <pbrown@redhat.com>
cvsdist 6f3ed5d
- fix reading of end key termcap value (@7 is correct, was kH) (#30884)
cvsdist 6f3ed5d
cvsdist 6f3ed5d
* Tue Jan 30 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 6f3ed5d
- mark the man page as currently out-of-date (#25294)
cvsdist 6f3ed5d
cvsdist 6f3ed5d
* Thu Sep  7 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 6f3ed5d
- FHS packaging (64bit systems need to use libdir).
cvsdist 5a95ea0
cvsdist 97b492d
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 97b492d
- summaries from specspo.
cvsdist 97b492d
cvsdist 97b492d
* Wed Aug  2 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 97b492d
- use "rm -f" in specfile
cvsdist 97b492d
cvsdist 97b492d
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 97b492d
- automatic rebuild
cvsdist 97b492d
cvsdist 97b492d
* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 97b492d
- FHS packaging.
cvsdist 97b492d
cvsdist 97b492d
* Tue Mar 21 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 97b492d
- 4.1
cvsdist 97b492d
cvsdist 97b492d
* Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 97b492d
- update to 4.0
cvsdist 97b492d
cvsdist 97b492d
* Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 97b492d
- added guard patch from Taneli Huuskonen <huuskone@cc.helsinki.fi>
cvsdist 97b492d
cvsdist 97b492d
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 97b492d
- auto rebuild in the new build environment (release 4)
cvsdist 97b492d
cvsdist 97b492d
* Sun Jul 26 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 97b492d
- updated to 2.2.1
cvsdist 97b492d
cvsdist 97b492d
* Wed May 06 1998 Prospector System <bugs@redhat.com>
cvsdist 97b492d
- translations modified for de, fr, tr
cvsdist 97b492d
cvsdist 97b492d
* Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 97b492d
- don't package /usr/info/dir
cvsdist 97b492d
cvsdist 97b492d
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 97b492d
- devel package moved to Development/Libraries
cvsdist 97b492d
cvsdist 97b492d
* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 97b492d
- updated to 2.2
cvsdist 97b492d
cvsdist 97b492d
* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
cvsdist 97b492d
- spec file cleanups
cvsdist 97b492d
cvsdist 97b492d
* Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
cvsdist 97b492d
- added proper sonames
cvsdist 97b492d
cvsdist 97b492d
* Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
cvsdist 97b492d
- updated to readline 2.1
cvsdist 97b492d
cvsdist 97b492d
* Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
cvsdist 97b492d
- built against glibc