b4837b448159f892ad9a053690655ce80519be15
[external/prelink.git] / packaging / prelink.spec
1 Name:       prelink
2 Summary:    An ELF prelinking utility
3 Version:    20100106
4 Release:    0
5 Group:      System/Base
6 License:    GPLv2+
7 Source0:    http://people.redhat.com/jakub/prelink/%{name}-%{version}.tar.gz
8 Source1:    prelink.conf
9 Requires:   /bin/find
10 Requires:   /bin/awk
11 Requires:   /bin/grep
12 BuildRequires:  elfutils-libelf-devel-static
13 BuildRequires:  glibc-static
14
15
16 %description
17 The prelink package contains a utility which modifies ELF shared libraries
18 and executables, so that far fewer relocations need to be resolved at runtime
19 and thus programs come up faster.
20
21
22
23
24 %prep
25 %setup -q -n %{name}
26
27
28 %build
29 %configure \
30         --disable-shared \
31         --disable-libtool-lock \
32         --disable-dependency-tracking
33
34 make %{?jobs:-j%jobs}
35
36 %install
37 rm -rf %{buildroot}
38 %make_install
39
40 mkdir -p %{buildroot}%{_sysconfdir}
41 cp -af %{SOURCE1} %{buildroot}%{_sysconfdir}
42
43 %remove_docs
44
45
46
47 %files
48 %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/prelink.conf
49 %{_prefix}/sbin/prelink
50 %{_prefix}/bin/execstack
51
52