Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37425436
en ru br
Репозитории ALT
S:0.4.4-alt3
5.1: 0.3.10-alt1
4.1: 0.3.10-alt1
4.0: 0.3.9-alt1
3.0:
+backports:0.3.6-alt1.M30.1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: prelink

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

%define date 20050901

Name: prelink
Version: 0.3.6
Release: alt1.M30.1

Summary: An ELF prelinking utility
License: GPL
Group: System/Base

Source: ftp://people.redhat.com/jakub/prelink/prelink-%date.tar.bz2
Source2: prelink.conf
Source3: prelink.cron
Source4: prelink.sysconfig

BuildRequires: gcc-c++ elfutils-devel >= 0.72
BuildRequires: glibc-devel-static libelf-devel-static

ExclusiveArch: %ix86 alpha sparc sparc64 s390 s390x x86_64 ppc ppc64

%description
The prelink package contains a utility which modifies ELF shared libraries
and executables, so that far less relocations need to be resolved at runtime
and thus programs come up faster.

%prep
%setup -n prelink

%build
%configure --disable-shared
%make_build
echo ====================TESTING=========================
%__make -C testsuite check-harder
%__make -C testsuite check-cycle
echo ====================TESTING END=====================

%install
%makeinstall
%__mkdir_p %buildroot%_sysconfdir/rpm/macros.d
%__cp -a %SOURCE2 %buildroot%_sysconfdir
%__mkdir_p %buildroot%_sysconfdir/{sysconfig,cron.daily}
%__cp -a %SOURCE3 %buildroot%_sysconfdir/cron.daily/prelink
%__cp -a %SOURCE4 %buildroot%_sysconfdir/sysconfig/prelink
%__chmod 755 %buildroot%_sysconfdir/cron.daily/prelink
%__chmod 644 %buildroot%_sysconfdir/{sysconfig/prelink,prelink.conf}

%__cat > %buildroot%_sysconfdir/rpm/macros.d/prelink <<"EOF"
# rpm verifies prelinked libraries using a prelink undo helper.
#     Note: The 2nd token is used as argv[0] and "library" is a
#     placeholder that will be deleted and replaced with the appropriate
#     library file path.
%%__prelink_undo_cmd     %_sbindir/prelink prelink -y library
EOF
%__chmod 644 %buildroot%_sysconfdir/rpm/macros.d/prelink

%__mkdir_p %buildroot/%_var/{lib/misc,log}
touch %buildroot%_localstatedir/misc/prelink.full
touch %buildroot%_localstatedir/misc/prelink.quick
touch %buildroot%_localstatedir/misc/prelink.force
touch %buildroot%_var/log/prelink.log

%post
touch %_localstatedir/misc/prelink.force

%files
%doc doc/prelink.pdf
%verify(not md5 size mtime) %config(noreplace) %_sysconfdir/prelink.conf
%verify(not md5 size mtime) %config(noreplace) %_sysconfdir/sysconfig/prelink
%_sysconfdir/rpm/macros.d/prelink
%_sysconfdir/cron.daily/prelink
%_sbindir/prelink
%_bindir/execstack
%_man8dir/prelink.8*
%_man8dir/execstack.8*
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/prelink.full
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/prelink.quick
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/prelink.force
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_var/log/prelink.log

%changelog

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

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