From 773e380dd520f226736ba9d1f31580e22befdc6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 4 Mar 2008 19:31:25 +0000 Subject: [PATCH 1/1] - new, based on bundled spec Changed files: patchelf.spec -> 1.1 --- patchelf.spec | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 patchelf.spec diff --git a/patchelf.spec b/patchelf.spec new file mode 100644 index 0000000..340f56c --- /dev/null +++ b/patchelf.spec @@ -0,0 +1,39 @@ +# +# Conditional build: +%bcond_without tests # build without tests +# +Summary: A utility for patching ELF binaries +Name: patchelf +Version: 0.3 +Release: 1 +License: GPL +Group: Development/Tools +URL: http://nix.cs.uu.nl/patchelf.html +Source0: http://nix.cs.uu.nl/dist/nix/patchelf-0.3/%{name}-%{version}.tar.bz2 +# Source0-md5: 20d77052ae559c60e6c5efb6ea95af9b +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +PatchELF is 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 +%{__make} +%{?with_tests:%{__make} check} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/patchelf -- 2.43.0