Группа :: Система/Основа
Пакет: prelink
Главная Изменения Спек Патчи Загрузить Bugs and FR
# This spec for backport to M24 is autogenerated. Do not edit it.
%define date 20050901
Name: prelink
Version: 0.3.6
Release: alt0.M24.3
Summary: An ELF prelinking utility
License: GPL
Group: System/Base
Source: ftp://people.redhat.com/jakub/prelink/%name-%date.tar.bz2
Source2: %name.conf
Source3: %name.cron
Source4: %name.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
BuildRequires: rpm-build-compat >= 0.4
%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.
%package static
Summary: An ELF prelinking utility statically linked.
Group: System/Base
%description static
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.
This version is statically compiled.
%prep
%setup -qn %name
%build
%define _configure_script ../configure
mkdir %name{-static,-dynamic}
pushd %name-static
%configure --disable-shared
%make_build
%__make -C testsuite check-harder
%__make -C testsuite check-cycle
popd
pushd %name-dynamic
%configure --enable-shared
subst 's,-all-static,,' src/Makefile
%make_build
%__make -C testsuite check-harder
%__make -C testsuite check-cycle
popd
%install
%makeinstall -C %name-dynamic
%__install -m755 %name-static/src/%name %buildroot%_sbindir/%name.static
%__mkdir_p %buildroot%_sysconfdir/rpm/macros.d
%__cp -a %SOURCE2 %buildroot%_sysconfdir
%__mkdir_p %buildroot%_sysconfdir/{sysconfig,cron.daily}
%__install -m755 %SOURCE3 %buildroot%_sysconfdir/cron.daily/%name
%__cp -a %SOURCE4 %buildroot%_sysconfdir/sysconfig/%name
%__chmod 644 %buildroot%_sysconfdir/{sysconfig/%name,%name.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/%name %name -y library
EOF
%__chmod 644 %buildroot%_sysconfdir/rpm/macros.d/%name
%__mkdir_p %buildroot/%_var/{lib/misc,log}
touch %buildroot%_localstatedir/misc/%name.full
touch %buildroot%_localstatedir/misc/%name.quick
touch %buildroot%_localstatedir/misc/%name.force
touch %buildroot%_var/log/%name.log
%post
touch %_localstatedir/misc/%name.force
%files
%doc doc/%name.pdf
%verify(not md5 size mtime) %config(noreplace) %_sysconfdir/%name.conf
%verify(not md5 size mtime) %config(noreplace) %_sysconfdir/sysconfig/%name
%_sysconfdir/rpm/macros.d/%name
%_sysconfdir/cron.daily/%name
%_sbindir/%name
%_bindir/execstack
%_man8dir/prelink.8*
%_man8dir/execstack.8*
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/%name.full
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/%name.quick
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/%name.force
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_var/log/%name.log
%files static
%_sbindir/%name.static
%changelog
…
Полный changelog можно просмотреть здесь
%define date 20050901
Name: prelink
Version: 0.3.6
Release: alt0.M24.3
Summary: An ELF prelinking utility
License: GPL
Group: System/Base
Source: ftp://people.redhat.com/jakub/prelink/%name-%date.tar.bz2
Source2: %name.conf
Source3: %name.cron
Source4: %name.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
BuildRequires: rpm-build-compat >= 0.4
%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.
%package static
Summary: An ELF prelinking utility statically linked.
Group: System/Base
%description static
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.
This version is statically compiled.
%prep
%setup -qn %name
%build
%define _configure_script ../configure
mkdir %name{-static,-dynamic}
pushd %name-static
%configure --disable-shared
%make_build
%__make -C testsuite check-harder
%__make -C testsuite check-cycle
popd
pushd %name-dynamic
%configure --enable-shared
subst 's,-all-static,,' src/Makefile
%make_build
%__make -C testsuite check-harder
%__make -C testsuite check-cycle
popd
%install
%makeinstall -C %name-dynamic
%__install -m755 %name-static/src/%name %buildroot%_sbindir/%name.static
%__mkdir_p %buildroot%_sysconfdir/rpm/macros.d
%__cp -a %SOURCE2 %buildroot%_sysconfdir
%__mkdir_p %buildroot%_sysconfdir/{sysconfig,cron.daily}
%__install -m755 %SOURCE3 %buildroot%_sysconfdir/cron.daily/%name
%__cp -a %SOURCE4 %buildroot%_sysconfdir/sysconfig/%name
%__chmod 644 %buildroot%_sysconfdir/{sysconfig/%name,%name.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/%name %name -y library
EOF
%__chmod 644 %buildroot%_sysconfdir/rpm/macros.d/%name
%__mkdir_p %buildroot/%_var/{lib/misc,log}
touch %buildroot%_localstatedir/misc/%name.full
touch %buildroot%_localstatedir/misc/%name.quick
touch %buildroot%_localstatedir/misc/%name.force
touch %buildroot%_var/log/%name.log
%post
touch %_localstatedir/misc/%name.force
%files
%doc doc/%name.pdf
%verify(not md5 size mtime) %config(noreplace) %_sysconfdir/%name.conf
%verify(not md5 size mtime) %config(noreplace) %_sysconfdir/sysconfig/%name
%_sysconfdir/rpm/macros.d/%name
%_sysconfdir/cron.daily/%name
%_sbindir/%name
%_bindir/execstack
%_man8dir/prelink.8*
%_man8dir/execstack.8*
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/%name.full
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/%name.quick
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/misc/%name.force
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_var/log/%name.log
%files static
%_sbindir/%name.static
%changelog
…
Полный changelog можно просмотреть здесь