]>
Commit | Line | Data |
---|---|---|
c35dff53 SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = patchelf | |
68b16b24 AB |
7 | version = 0.18.0 |
8 | release = 1 | |
c35dff53 SS |
9 | |
10 | groups = Development/Tools | |
11 | url = http://nixos.org/patchelf.html | |
12 | license = GPLv3+ | |
13 | summary = A utility for patching ELF binaries | |
14 | ||
15 | description | |
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. | |
19 | end | |
20 | ||
21 | source_dl = https://github.com/NixOS/%{name}/archive/%{version}/ | |
22 | sources = %{thisapp}.tar.gz | |
23 | ||
24 | build | |
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 | |
b877536a MT |
44 | # Ignore any failures in the testsuite |
45 | make check || true | |
c35dff53 SS |
46 | end |
47 | end | |
48 | ||
49 | packages | |
50 | package %{name} | |
51 | ||
52 | package %{name}-debuginfo | |
53 | template DEBUGINFO | |
54 | end | |
55 | end |