2004-09-09 11:11:50 +00:00
|
|
|
Summary: A library for editing typed command lines.
|
2004-09-09 11:10:18 +00:00
|
|
|
Name: readline
|
2004-09-09 11:12:34 +00:00
|
|
|
Version: 4.2a
|
|
|
|
Release: 3
|
2004-09-09 11:11:50 +00:00
|
|
|
License: GPL
|
2004-09-09 11:10:18 +00:00
|
|
|
Group: System Environment/Libraries
|
2004-09-09 11:12:34 +00:00
|
|
|
Source: ftp://ftp.gnu.org/gnu/readline-%{version}.tar.bz2
|
2004-09-09 11:10:18 +00:00
|
|
|
Patch0: readline-2.2.1-guard.patch
|
2004-09-09 11:11:17 +00:00
|
|
|
Patch1: readline-4.1-outdated.patch
|
2004-09-09 11:11:40 +00:00
|
|
|
Patch2: readline-4.2-fixendkey.patch
|
2004-09-09 11:11:17 +00:00
|
|
|
Patch3: readline-4.1-booleancase.patch
|
2004-09-09 11:10:18 +00:00
|
|
|
Prereq: /sbin/install-info /sbin/ldconfig
|
|
|
|
Buildroot: %{_tmppath}/%{name}-root
|
2004-09-09 11:12:34 +00:00
|
|
|
BuildRequires: sed autoconf252
|
2004-09-09 11:10:18 +00:00
|
|
|
|
|
|
|
%description
|
2004-09-09 11:11:50 +00:00
|
|
|
The Readline library provides a set of functions that allow users to
|
|
|
|
edit command lines. Both Emacs and vi editing modes are available. The
|
|
|
|
Readline library includes additional functions for maintaining a list
|
|
|
|
of previously-entered command lines for recalling or editing those
|
|
|
|
lines, and for performing csh-like history expansion on previous
|
|
|
|
commands.
|
2004-09-09 11:10:18 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files needed to develop programs which use the readline library.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: readline = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2004-09-09 11:11:50 +00:00
|
|
|
The Readline library provides a set of functions that allow users to
|
|
|
|
edit typed command lines. If you want to develop programs that will
|
|
|
|
use the readline library, you need to have the readline-devel package
|
|
|
|
installed. You also need to have the readline package installed.
|
2004-09-09 11:10:18 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .guard
|
2004-09-09 11:11:17 +00:00
|
|
|
%patch1 -p1 -b .outdated
|
|
|
|
%patch2 -p1 -b .fixendkey
|
2004-09-09 11:11:40 +00:00
|
|
|
# XXX don't bother about this
|
|
|
|
#%patch3 -p1 -b .booleancase
|
2004-09-09 11:12:34 +00:00
|
|
|
autoconf || autoconf-2.52
|
|
|
|
# Work around autoconf 2.5x being broken
|
|
|
|
echo "LIBVERSION=4.2" >configure.new
|
|
|
|
cat configure >>configure.new
|
|
|
|
mv -f configure.new configure
|
|
|
|
chmod 0755 configure
|
2004-09-09 11:10:18 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make all shared
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
|
|
|
2004-09-09 11:12:34 +00:00
|
|
|
%makeinstall
|
2004-09-09 11:10:18 +00:00
|
|
|
|
2004-09-09 11:11:17 +00:00
|
|
|
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/*.so*
|
2004-09-09 11:10:18 +00:00
|
|
|
|
|
|
|
{ cd ${RPM_BUILD_ROOT}
|
|
|
|
gzip -9nf .%{_infodir}/*.info*
|
|
|
|
rm -f .%{_infodir}/dir
|
|
|
|
}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir
|
|
|
|
/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir
|
|
|
|
/sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_infodir}/*.info*
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/readline
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 11:12:34 +00:00
|
|
|
* Mon Mar 4 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-3
|
|
|
|
- Rebuild
|
|
|
|
|
|
|
|
* Mon Nov 26 2001 Matt Wilson <msw@redhat.com> 4.2a-2
|
|
|
|
- removed the manual symlinking of .so, readline handles this by itself
|
|
|
|
- call only %%makeinstall, not %%makeinstall install install-shared as
|
|
|
|
this makes bogus .old files in the buildroot
|
|
|
|
|
|
|
|
* Tue Nov 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-1
|
|
|
|
- 4.2a
|
|
|
|
|
|
|
|
* Tue Oct 2 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-4
|
|
|
|
- Work around autoconf bug
|
|
|
|
|
|
|
|
* Mon Oct 1 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-3
|
|
|
|
- Don't use readline's internal re-implementation of strpbrk on systems
|
|
|
|
that have strpbrk - the system implementation is faster and better maintained.
|
|
|
|
|
2004-09-09 11:11:50 +00:00
|
|
|
* Tue Aug 7 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-2
|
|
|
|
- Make sure headers can be included from C++ applications (#51131)
|
|
|
|
(Patch based on Debian's with the bugs removed ;) )
|
|
|
|
|
2004-09-09 11:11:40 +00:00
|
|
|
* Wed May 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- update to 4.2 and adapt patches
|
|
|
|
|
2004-09-09 11:11:17 +00:00
|
|
|
* Fri Apr 6 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- change the paths listed for the header files in the man page to reflect
|
|
|
|
the location changes from previous versions (#35073)
|
|
|
|
- note that "on" is acceptable instead of "On" in the man page (#21327)
|
|
|
|
|
|
|
|
* Thu Mar 8 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- fix reading of end key termcap value (@7 is correct, was kH) (#30884)
|
|
|
|
|
|
|
|
* Tue Jan 30 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- mark the man page as currently out-of-date (#25294)
|
|
|
|
|
|
|
|
* Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- FHS packaging (64bit systems need to use libdir).
|
2004-09-09 11:10:54 +00:00
|
|
|
|
2004-09-09 11:10:18 +00:00
|
|
|
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- summaries from specspo.
|
|
|
|
|
|
|
|
* Wed Aug 2 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
|
|
|
- use "rm -f" in specfile
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
* Mon Jun 5 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- FHS packaging.
|
|
|
|
|
|
|
|
* Tue Mar 21 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- 4.1
|
|
|
|
|
|
|
|
* Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 4.0
|
|
|
|
|
|
|
|
* Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- added guard patch from Taneli Huuskonen <huuskone@cc.helsinki.fi>
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- auto rebuild in the new build environment (release 4)
|
|
|
|
|
|
|
|
* Sun Jul 26 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- updated to 2.2.1
|
|
|
|
|
|
|
|
* Wed May 06 1998 Prospector System <bugs@redhat.com>
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
* Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- don't package /usr/info/dir
|
|
|
|
|
|
|
|
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- devel package moved to Development/Libraries
|
|
|
|
|
|
|
|
* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- updated to 2.2
|
|
|
|
|
|
|
|
* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
- spec file cleanups
|
|
|
|
|
|
|
|
* Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- added proper sonames
|
|
|
|
|
|
|
|
* Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- updated to readline 2.1
|
|
|
|
|
|
|
|
* Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- built against glibc
|