blob: 0b46c5c10e01fc3f635c585bdda57e0d2ce34feb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
Summary: Tool to optimize relocations in object files
Summary(pl): Narzędzie optymalizujące relokacje w plikach objektów
Name: prelink
Version: 20021002
Release: 3
License: GPL
Group: Development/Tools
Source0: ftp://people.redhat.com/jakub/prelink/%{name}-%{version}.tar.bz2
# Source0-md5: f6c8692c309009838ba45c6da38c8684
BuildRequires: glibc-devel >= 2.3
BuildRequires: elfutils-static
BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This program replaces relocations in object files with less expensive
ones. This allows faster run-time dynamic linking.
%description -l pl
Ten program zamienia relokacje w plikach objektów na mniej wymagające.
Dzięki temu program jest szybciej linkowany w momencie uruchomienia.
%prep
%setup -q -n %{name}
%build
%configure2_13
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rpm}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install doc/prelink.conf $RPM_BUILD_ROOT%{_sysconfdir}
cat > $RPM_BUILD_ROOT/etc/rpm/macros.prelink <<"EOF"
# rpm-4.1 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 /usr/sbin/prelink prelink -y library
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%attr(755,root,root) %{_sbindir}/*
%{_mandir}/man?/*
%attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/prelink.conf
/etc/rpm/macros.prelink
|