Skip to content

Commit 2ebc5c6

Browse files
committed
* An RPM spec file for PatchELF.
1 parent 9369fb5 commit 2ebc5c6

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
SUBDIRS = src tests
22

3-
EXTRA_DIST = COPYING README
3+
EXTRA_DIST = COPYING README patchelf.spec patchelf.spec.in
4+
5+
patchelf.spec: patchelf.spec.in
6+
sed -e "s^@version\@^$(VERSION)^g" < patchelf.spec.in > patchelf.spec

patchelf.spec.in

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Summary: A utility for patching ELF binaries
2+
Name: patchelf
3+
Version: @version@
4+
Release: 1
5+
License: GPL
6+
URL: http://nix.cs.uu.nl/patchelf.html
7+
Source0: %{name}-@[email protected]
8+
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
9+
Prefix: /usr
10+
11+
%description
12+
13+
PatchELF is simple utility for modifing existing ELF executables and
14+
libraries. It can change the dynamic loader ("ELF interpreter") of
15+
executables and change the RPATH of executables and libraries.
16+
17+
%prep
18+
%setup -q
19+
20+
%build
21+
./configure --prefix=%{_prefix}
22+
make
23+
make check
24+
25+
%install
26+
rm -rf $RPM_BUILD_ROOT
27+
make DESTDIR=$RPM_BUILD_ROOT install
28+
strip $RPM_BUILD_ROOT/%{_prefix}/bin/* || true
29+
30+
%clean
31+
rm -rf $RPM_BUILD_ROOT
32+
33+
%files
34+
/

0 commit comments

Comments
 (0)