Blame SPECS/readline.spec

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