File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 11SUBDIRS = 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
Original file line number Diff line number Diff line change 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+ /
You can’t perform that action at this time.
0 commit comments