]>
Commit | Line | Data |
---|---|---|
773e380d ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | # | |
5 | Summary: A utility for patching ELF binaries | |
6 | Name: patchelf | |
7 | Version: 0.3 | |
8 | Release: 1 | |
9 | License: GPL | |
10 | Group: Development/Tools | |
11 | URL: http://nix.cs.uu.nl/patchelf.html | |
12 | Source0: http://nix.cs.uu.nl/dist/nix/patchelf-0.3/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: 20d77052ae559c60e6c5efb6ea95af9b | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | PatchELF is simple utility for modifing existing ELF executables and | |
18 | libraries. It can change the dynamic loader ("ELF interpreter") of | |
19 | executables and change the RPATH of executables and libraries. | |
20 | ||
21 | %prep | |
22 | %setup -q | |
23 | ||
24 | %build | |
25 | %configure | |
26 | %{__make} | |
27 | %{?with_tests:%{__make} check} | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | %{__make} install \ | |
32 | DESTDIR=$RPM_BUILD_ROOT | |
33 | ||
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %files | |
38 | %defattr(644,root,root,755) | |
39 | %attr(755,root,root) %{_bindir}/patchelf |