]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - patchelf/patchelf.nm
patchelf: New package
[people/stevee/ipfire-3.x.git] / patchelf / patchelf.nm
CommitLineData
c35dff53
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = patchelf
7version = 0.17.2
8release = 1
9
10groups = Development/Tools
11url = http://nixos.org/patchelf.html
12license = GPLv3+
13summary = A utility for patching ELF binaries
14
15description
16 PatchELF is a simple utility for modifying an existing ELF executable
17 or library. It can change the dynamic loader ("ELF interpreter")
18 of an executable and change the RPATH of an executable or library.
19end
20
21source_dl = https://github.com/NixOS/%{name}/archive/%{version}/
22sources = %{thisapp}.tar.gz
23
24build
25 requires
26 autoconf
27 automake
28 end
29
30 prepare_cmds
31 # Remove shipped elf header file and
32 # use the one from glibc instead.
33 rm -rvf src/elf.h
34
35 # Disable test which requires DT_JMPREL.
36 # Our default compiler configuration does not allow to
37 # compile such an elf file.
38 sed -i '/phdr-corruption.sh/d' tests/Makefile.am
39
40 ./bootstrap.sh
41 end
42
43 test
44 make check
45 end
46end
47
48packages
49 package %{name}
50
51 package %{name}-debuginfo
52 template DEBUGINFO
53 end
54end