Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37892470
en ru br
ALT Linux repositórios
S:8.2.1-alt1
5.0: 5.2.11-alt2
4.1: 5.2.11-alt1
4.0: 5.1.4-alt3
3.0: 4.3-alt7

Group :: Sistema/Bibliotecas
RPM: readline

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: readline
Version: 4.3
Release: alt7

Summary: A library for editing typed in command lines
License: GPL
Group: System/Libraries

Source: ftp://ftp.gnu.org/pub/gnu/%name/%name-%version.tar.bz2

Patch1: ftp://ftp.cwru.edu/pub/bash/%name-%version-patches/readline43-001
Patch2: ftp://ftp.cwru.edu/pub/bash/%name-%version-patches/readline43-002
Patch3: ftp://ftp.cwru.edu/pub/bash/%name-%version-patches/readline43-003
Patch4: ftp://ftp.cwru.edu/pub/bash/%name-%version-patches/readline43-004
Patch5: ftp://ftp.cwru.edu/pub/bash/%name-%version-patches/readline43-005

Patch11: %name-4.1-rh-man.patch
Patch12: %name-4.3-alt-nls.patch
Patch13: %name-4.3-alt-warning_fixes.patch
Patch14: %name-4.3-rh-histexpand-utf8.patch
Patch15: %name-4.3-alt-shlib.patch

Patch21: %name-4.3-deb-delete.patch
Patch22: %name-4.3-deb-alt-inputrc.patch
Patch23: %name-4.3-deb-header.patch
Patch24: %name-4.3-deb-slow-multibyte.patch
Patch25: %name-4.3-deb-doc.patch

# Automatically added by buildreq on Mon Sep 02 2002

BuildRequires: libtinfo-devel

%define compat_list 3 3.0 4.0 4.1 4.2

%package -n lib%name
Summary: A library for editing typed in command lines
Group: System/Libraries
Obsoletes: %name
Provides: %name = %version
Provides: %(for n in %compat_list; do echo -n "libhistory.so.$n lib%name.so.$n "; done)

%package -n lib%name-devel
Summary: Files needed to develop programs which use the %name library
Group: Development/C
Provides: %name-devel = %version
Obsoletes: %name-devel
PreReq: lib%name = %version-%release
Requires(post): %install_info
Requires(preun): %uninstall_info

%package -n lib%name-devel-static
Summary: Files needed to develop statically linked programs which use the %name library
Group: Development/C
Requires: lib%name-devel = %version-%release

%description
The readline library reads a line from the terminal and returns it,
allowing the user to edit the line with standard emacs editing keys.

%description -n lib%name
The readline library reads a line from the terminal and returns it,
allowing the user to edit the line with standard emacs editing keys.

%description -n lib%name-devel
The readline library reads a line from the terminal and returns it,
allowing the user to edit the line with standard emacs editing keys.

This package contains the files needed to develop programs which use
the readline library to provide an easy to use and more intuitive
command line interface for users.

%description -n lib%name-devel-static
The readline library reads a line from the terminal and returns it,
allowing the user to edit the line with standard emacs editing keys.

This package contains the files needed to develop statically linked
programs which use the readline library to provide an easy to use
and more intuitive command line interface for users.

%prep
%setup -q

%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p0

%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1

%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1

find -type f -name \*.orig -print -delete

%build
# This fixes some "implicit declaration" warnings.
%add_optflags -D_GNU_SOURCE

# Link with libtinfo.

export bash_cv_termcap_lib=libtinfo

# Workaround for buildreq/strace.

%{?__buildreqs:export bash_cv_must_reinstall_sighandlers=no}

%configure
rm -f doc/*.info

%make_build all examples documentation

%install
%makeinstall

# Relocate shared libraries from %_libdir/ to /%_lib/.

%__mkdir_p $RPM_BUILD_ROOT/%_lib
for f in $RPM_BUILD_ROOT%_libdir/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__ln_s -nf ../../%_lib/"$t" "$f"
done
mv $RPM_BUILD_ROOT%_libdir/*.so.* $RPM_BUILD_ROOT/%_lib/

for n in %name history; do
t=`objdump -p "$RPM_BUILD_ROOT%_libdir/lib$n.so" |awk '/SONAME/ {print $2}'`
for v in %compat_list; do
%__ln_s "../../%_lib/$t" "$RPM_BUILD_ROOT%_libdir/lib$n.so.$v"
done
done

# Relocate and fix documentation.

%define docdir %_docdir/%name-%version
%__mkdir_p $RPM_BUILD_ROOT%docdir
cp -a README CHANGE* USAGE examples \
$RPM_BUILD_ROOT%docdir/
cp -p config.h posixstat.h \
$RPM_BUILD_ROOT%docdir/examples/
pushd $RPM_BUILD_ROOT%docdir/examples
%__subst 's,^\(top_srcdir *=\).*,\1 %_includedir/%name,g;s,^\(\(LDFLAGS\|READLINE_LIB\|HISTORY_LIB\) *=\).*,\1,g' Makefile
make clean
popd

%set_verify_elf_method strict

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%post -n lib%name-devel
%install_info {%name,history,rluserman}.info

%preun -n lib%name-devel
%uninstall_info {%name,history,rluserman}.info

%files -n lib%name
/%_lib/*
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*
%_mandir/man?/*
%_infodir/*.info*
%docdir

%files -n lib%name-devel-static
%_libdir/*.a

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009