File: patchelf.spec.in

package info (click to toggle)
patchelf 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 692 kB
  • ctags: 2,011
  • sloc: cpp: 2,825; sh: 1,587; makefile: 63; ansic: 32
file content (38 lines) | stat: -rw-r--r-- 818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Summary: A utility for patching ELF binaries

Name: patchelf
Version: @PACKAGE_VERSION@
Release: 1
License: GPL
Group: Development/Tools
URL: http://nixos.org/patchelf.html
Source0: %{name}-@PACKAGE_VERSION@.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-buildroot
Prefix: /usr

%description

PatchELF is a simple utility for modifing existing ELF executables and
libraries.  It can change the dynamic loader ("ELF interpreter") of
executables and change the RPATH of executables and libraries.

%prep
%setup -q

%build
./configure --prefix=%{_prefix}
make
make check

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
strip $RPM_BUILD_ROOT/%{_prefix}/bin/* || true

%clean
rm -rf $RPM_BUILD_ROOT

%files
/usr/bin/patchelf
/usr/share/doc/patchelf/README
/usr/share/man/man1/patchelf.1.gz