cvsdist 97b492d
Summary: A library for editing typed in command lines.
cvsdist 97b492d
Name: readline
cvsdist 97b492d
Version: 4.1
cvsdist 5a95ea0
Release: 5tc1
cvsdist 97b492d
Copyright: GPL
cvsdist 5a95ea0
Packager: Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
cvsdist 5a95ea0
Vendor: Red Hat, Inc.
cvsdist 97b492d
Group: System Environment/Libraries
cvsdist 97b492d
Source: ftp://ftp.gnu.org/gnu/readline-%{version}.tar.gz
cvsdist 97b492d
Patch0: readline-2.2.1-guard.patch
cvsdist 5a95ea0
# by CLE
cvsdist 5a95ea0
Patch5: http://kldp.org/~mindgame/unix/hangul/readline/readline-4.1-i18n.patch
cvsdist 97b492d
Prereq: /sbin/install-info /sbin/ldconfig
cvsdist 97b492d
Prefix: %{_prefix}
cvsdist 97b492d
Buildroot: %{_tmppath}/%{name}-root
cvsdist 97b492d
BuildRequires: sed
cvsdist 97b492d
cvsdist 97b492d
%description
cvsdist 97b492d
The readline library reads a line from the terminal and returns it,
cvsdist 97b492d
allowing the user to edit the line with standard emacs editing keys.
cvsdist 97b492d
The readline library allows programmers to provide an easy to use and
cvsdist 97b492d
more intuitive interface for users.
cvsdist 97b492d
cvsdist 97b492d
If you want to develop programs that will use the readline library,
cvsdist 97b492d
you'll also need to install the readline-devel package.
cvsdist 97b492d
cvsdist 97b492d
%package devel
cvsdist 97b492d
Summary: Files needed to develop programs which use the readline library.
cvsdist 97b492d
Group: Development/Libraries
cvsdist 97b492d
Requires: readline = %{version}
cvsdist 97b492d
cvsdist 97b492d
%description devel
cvsdist 97b492d
The readline library will read a line from the terminal and return it.
cvsdist 97b492d
Use of the readline library allows programmers to provide an easy
cvsdist 97b492d
to use and more intuitive interface for users.
cvsdist 97b492d
cvsdist 97b492d
If you want to develop programs which will use the readline library,
cvsdist 97b492d
you'll need to have the readline-devel package installed.  You'll also
cvsdist 97b492d
need to have the readline package installed.
cvsdist 97b492d
cvsdist 97b492d
%prep
cvsdist 97b492d
%setup -q
cvsdist 97b492d
%patch0 -p1 -b .guard
cvsdist 5a95ea0
%patch5 -p1 -b .i18n
cvsdist 97b492d
cvsdist 97b492d
%build
cvsdist 97b492d
%configure
cvsdist 97b492d
make all shared
cvsdist 97b492d
cvsdist 97b492d
%install
cvsdist 97b492d
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
cvsdist 97b492d
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
cvsdist 97b492d
cvsdist 97b492d
%makeinstall install install-shared
cvsdist 97b492d
cvsdist 97b492d
chmod 755 ${RPM_BUILD_ROOT}/%{prefix}/lib/*.so*
cvsdist 97b492d
cvsdist 97b492d
{ cd ${RPM_BUILD_ROOT}
cvsdist 97b492d
  ln -sf libreadline.so.%{version} .%{_libdir}/libreadline.so
cvsdist 97b492d
  ln -sf libhistory.so.%{version} .%{_libdir}/libhistory.so
cvsdist 97b492d
  ln -sf libreadline.so.%{version} \
cvsdist 97b492d
  	.%{_libdir}/libreadline.so.`echo %{version} | sed 's^\..*^^g'`
cvsdist 97b492d
  ln -sf libhistory.so.%{version} \
cvsdist 97b492d
  	.%{_libdir}/libhistory.so.`echo %{version} | sed 's^\..*^^g'`
cvsdist 97b492d
  gzip -9nf .%{_infodir}/*.info*
cvsdist 97b492d
  rm -f .%{_infodir}/dir
cvsdist 97b492d
}
cvsdist 97b492d
 
cvsdist 97b492d
%clean
cvsdist 97b492d
[ "${RPM_BUILD_ROOT}" != "/" ] && 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
cvsdist 97b492d
/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir
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
cvsdist 97b492d
   /sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir
cvsdist 97b492d
fi
cvsdist 97b492d
cvsdist 97b492d
%files
cvsdist 97b492d
%defattr(-,root,root)
cvsdist 97b492d
%{_mandir}/man*/*
cvsdist 97b492d
%{_infodir}/*.info*
cvsdist 97b492d
%{_libdir}/lib*.so.*
cvsdist 97b492d
cvsdist 97b492d
%files devel
cvsdist 97b492d
%defattr(-,root,root)
cvsdist 97b492d
%{_includedir}/readline
cvsdist 97b492d
%{_libdir}/lib*.a
cvsdist 97b492d
%{_libdir}/lib*.so
cvsdist 97b492d
cvsdist 97b492d
%changelog
cvsdist 5a95ea0
* Sun Dec 10 2000 Chih-Wei Huang <cwhuang@linux.org.tw>
cvsdist 5a95ea0
- add i18n patch
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