Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37570516
en ru br
Репозитории ALT
S:8.2.1-alt1
5.1: 5.2.13-alt1
4.1: 5.2.11-alt1
4.0: 5.1.4-alt3
3.0: 4.3-alt7
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: readline

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: readline
%define rl_version 5.2
%define rl_patch 11
%define srcname readline-%rl_version
Version: %rl_version.%rl_patch
Release: alt1

Summary: A library for editing typed in command lines
License: GPLv2+
Group: System/Libraries
Url: http://www.gnu.org/software/readline/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.gnu.org/gnu/readline/readline-%rl_version.tar.gz

# ftp://ftp.gnu.org/gnu/readline/readline-%rl_version-patches/
Source: readline-%version.tar

Patch: readline-%version-%release.patch

# Automatically added by buildreq on Mon Sep 02 2002

BuildRequires: libtinfo-devel

%define compat_list %nil
%define lib_suffix %nil
%{expand:%%define lib_suffix %(test %_lib != lib64 && echo %%nil || echo '()(64bit)')}

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

%package -n lib%name-devel
Summary: Files needed to develop programs which use the readline library
Group: Development/C
Provides: readline-devel = %version-%release
Obsoletes: readline-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 readline 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
%patch -p1

%build
# This is required to fix some "implicit declaration" warnings.
%add_optflags -D_GNU_SOURCE

# Link with libtinfo unconditionally.

export bash_cv_termcap_lib=libtinfo

# Workaround for buildreq/strace.

%{?__buildreqs:export bash_cv_must_reinstall_sighandlers=no}

# Fix temporary file handling.

sed -i 's,/tmp/,,g' *.m4
autoconf

%configure
rm doc/*.info

%make_build all examples documentation

%install
%makeinstall

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

soname=`objdump -p %buildroot%_libdir/libreadline.so |awk '/SONAME/ {print $2}'`
[ -n "$soname" ]
mkdir -p %buildroot/%_lib
for f in %buildroot%_libdir/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
ln -snf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/*.so.* %buildroot/%_lib/

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

# Replace libreadline.so symlink with a linker script.

rm %buildroot%_libdir/libreadline.so
cat >%buildroot%_libdir/libreadline.so <<__EOF__
/* GNU ld script */
GROUP(/%_lib/$soname AS_NEEDED(-lhistory))
__EOF__

# Relocate and fix documentation.

%define docdir %_docdir/readline-%version
mkdir -p %buildroot%docdir
cp -a README CHANGE* USAGE examples \
%buildroot%docdir/
bzip2 -9 %buildroot%docdir/CHANGE*
cp -p config.h posixstat.h xmalloc.h \
%buildroot%docdir/examples/
pushd %buildroot%docdir/examples
sed -i 's,\.\./shlib/lib\([^.]\+\)\.so,-l\1,' Makefile
sed -i 's,^\(top_srcdir *=\).*,\1 %_includedir/readline,g;s,^\(LDFLAGS *=\).*,\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 {readline,history,rluserman}.info

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

%files -n lib%name
/%_lib/*
%if "%compat_list" != ""
%_libdir/*.so.*
%endif

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

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

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin