3 %bcond_without tests # build without tests
5 Summary: A utility for patching ELF binaries
10 Group: Development/Tools
11 URL: https://github.com/NixOS/patchelf
12 Source0: https://github.com/NixOS/patchelf/releases/download/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5: d387eee9325414be0b1a80c8fbd2745f
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 PatchELF is simple utility for modifing existing ELF executables and
18 libraries. It can change the dynamic loader ("ELF interpreter") of
19 executables and change the RPATH of executables and libraries.
22 %setup -q -n %{name}-%{version}.20210805.a949ff2
27 %{?with_tests:%{__make} check}
30 rm -rf $RPM_BUILD_ROOT
32 DESTDIR=$RPM_BUILD_ROOT
35 rm -rf $RPM_BUILD_ROOT
38 %defattr(644,root,root,755)
40 %attr(755,root,root) %{_bindir}/patchelf
41 %{_mandir}/man1/patchelf.1*