]> git.ipfire.org Git - ipfire-3.x.git/blob - patchelf/patchelf.nm
systemd: Build manpages again
[ipfire-3.x.git] / patchelf / patchelf.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = patchelf
7 version = 0.17.2
8 release = 1
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
44 make check
45 end
46 end
47
48 packages
49 package %{name}
50
51 package %{name}-debuginfo
52 template DEBUGINFO
53 end
54 end