- update to 5.2 (#213795)
- use CFLAGS when linking (#199374) - package docs and examples (#172497) - spec cleanup Resolves: #213795 #199374 #172497
This commit is contained in:
parent
dade9152d2
commit
6316085a52
@ -1,3 +1 @@
|
|||||||
readline-4.3.tar.bz2
|
readline-5.2.tar.gz
|
||||||
readline-5.0.tar.gz
|
|
||||||
readline-5.1.tar.gz
|
|
||||||
|
25
readline-5.2-shlib.patch
Normal file
25
readline-5.2-shlib.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
--- readline-5.2/support/shlib-install.shlib 2006-01-03 20:06:27.000000000 +0100
|
||||||
|
+++ readline-5.2/support/shlib-install 2006-11-13 13:51:02.000000000 +0100
|
||||||
|
@@ -71,7 +71,7 @@
|
||||||
|
case "$host_os" in
|
||||||
|
hpux*|darwin*|macosx*|linux*)
|
||||||
|
if [ -z "$uninstall" ]; then
|
||||||
|
- chmod 555 ${INSTALLDIR}/${LIBNAME}
|
||||||
|
+ chmod 755 ${INSTALLDIR}/${LIBNAME}
|
||||||
|
fi ;;
|
||||||
|
cygwin*)
|
||||||
|
IMPLIBNAME=`echo ${LIBNAME} \
|
||||||
|
--- readline-5.2/support/shobj-conf.shlib 2006-04-11 15:15:43.000000000 +0200
|
||||||
|
+++ readline-5.2/support/shobj-conf 2006-11-13 13:55:30.000000000 +0100
|
||||||
|
@@ -108,9 +108,9 @@
|
||||||
|
linux*-*|gnu*-*|k*bsd*-gnu-*)
|
||||||
|
SHOBJ_CFLAGS=-fPIC
|
||||||
|
SHOBJ_LD='${CC}'
|
||||||
|
- SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
|
||||||
|
+ SHOBJ_LDFLAGS='$(CFLAGS) -shared -Wl,-soname,$@'
|
||||||
|
|
||||||
|
- SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
|
||||||
|
+ SHLIB_XLDFLAGS='-Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
|
||||||
|
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)'
|
||||||
|
;;
|
||||||
|
|
@ -1,21 +1,15 @@
|
|||||||
Summary: A library for editing typed command lines.
|
Summary: A library for editing typed command lines.
|
||||||
Name: readline
|
Name: readline
|
||||||
Version: 5.1
|
Version: 5.2
|
||||||
Release: 1.1
|
Release: 1%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
|
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
|
||||||
Source: ftp://ftp.gnu.org/gnu/readline-%{version}.tar.gz
|
Source: ftp://ftp.gnu.org/gnu/readline-%{version}.tar.gz
|
||||||
Patch0: readline-4.1-outdated.patch
|
Patch1: readline-5.2-shlib.patch
|
||||||
Patch1: ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/readline51-001
|
Requires(post): /sbin/install-info
|
||||||
Patch2: ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/readline51-002
|
Requires(preun): /sbin/install-info
|
||||||
Patch3: ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/readline51-003
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Patch4: ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches/readline51-004
|
|
||||||
Patch6: readline-4.3-no_rpath.patch
|
|
||||||
Patch8: readline-wrap.patch
|
|
||||||
Prereq: /sbin/install-info /sbin/ldconfig
|
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
|
||||||
BuildRequires: sed autoconf libtool
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Readline library provides a set of functions that allow users to
|
The Readline library provides a set of functions that allow users to
|
||||||
@ -28,8 +22,10 @@ commands.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Files needed to develop programs which use the readline library.
|
Summary: Files needed to develop programs which use the readline library.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: readline = %{version}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: libtermcap-devel
|
Requires: libtermcap-devel
|
||||||
|
Requires(post): /sbin/install-info
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The Readline library provides a set of functions that allow users to
|
The Readline library provides a set of functions that allow users to
|
||||||
@ -39,63 +35,72 @@ installed. You also need to have the readline package installed.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .outdated
|
%patch1 -p1 -b .shlib
|
||||||
%patch1 -p0 -b .001
|
|
||||||
%patch2 -p0 -b .002
|
|
||||||
%patch3 -p0 -b .003
|
|
||||||
%patch4 -p0 -b .004
|
|
||||||
%patch6 -p1 -b .no_rpath
|
|
||||||
%patch8 -p1 -b .wrap
|
|
||||||
|
|
||||||
libtoolize --copy --force
|
rm -f examples/rlfe/configure
|
||||||
autoconf || autoconf-2.53
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make all shared
|
make all shared
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
||||||
|
|
||||||
%makeinstall
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/*.so*
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
|
|
||||||
{ cd ${RPM_BUILD_ROOT}
|
|
||||||
gzip -9nf .%{_infodir}/*.info*
|
|
||||||
rm -f .%{_infodir}/dir
|
|
||||||
}
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
/sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir
|
/sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir
|
||||||
/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir
|
/sbin/install-info %{_infodir}/rluserman.info.gz %{_infodir}/dir
|
||||||
|
:
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir
|
/sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir
|
||||||
|
/sbin/install-info --delete %{_infodir}/rluserman.info.gz %{_infodir}/dir
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
|
%post devel
|
||||||
|
/sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir
|
||||||
|
:
|
||||||
|
|
||||||
|
%preun devel
|
||||||
|
if [ $1 = 0 ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir
|
/sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir
|
||||||
fi
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_mandir}/man*/*
|
%doc CHANGES COPYING NEWS README USAGE
|
||||||
%{_infodir}/*.info*
|
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
|
%{_infodir}/history.info*
|
||||||
|
%{_infodir}/rluserman.info*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc examples/*.c examples/*.h examples/rlfe
|
||||||
%{_includedir}/readline
|
%{_includedir}/readline
|
||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
%{_infodir}/readline.info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 13 2006 Miroslav Lichvar <mlichvar@redhat.com> 5.2-1
|
||||||
|
- update to 5.2 (#213795)
|
||||||
|
- use CFLAGS when linking (#199374)
|
||||||
|
- package docs and examples (#172497)
|
||||||
|
- spec cleanup
|
||||||
|
|
||||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1-1.1
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1-1.1
|
||||||
- rebuild
|
- rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user