summaryrefslogtreecommitdiff
path: root/patchelf.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'patchelf.spec.in')
-rw-r--r--patchelf.spec.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/patchelf.spec.in b/patchelf.spec.in
new file mode 100644
index 0000000..5569026
--- /dev/null
+++ b/patchelf.spec.in
@@ -0,0 +1,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}-%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
+Prefix: /usr
+
+%description
+
+PatchELF is a simple utility for modifying 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
+# rpmbuild automatically strips... strip $RPM_BUILD_ROOT/%%{_bindir}/* || true
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%{_bindir}/patchelf
+%doc %{_docdir}/patchelf/README.md
+%{_mandir}/man1/patchelf.1.gz