patchelf/patchelf.spec.in

39 lines
835 B
Plaintext
Raw Normal View History

2007-03-21 20:49:59 +08:00
Summary: A utility for patching ELF binaries
2007-03-22 07:30:48 +08:00
2007-03-21 20:49:59 +08:00
Name: patchelf
Version: @PACKAGE_VERSION@
2007-03-21 20:49:59 +08:00
Release: 1
License: GPL
2007-03-22 07:30:48 +08:00
Group: Development/Tools
2008-08-29 21:44:37 +08:00
URL: http://nixos.org/patchelf.html
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
2007-03-21 20:49:59 +08:00
Prefix: /usr
%description
2017-04-04 18:37:43 +08:00
PatchELF is a simple utility for modifying existing ELF executables and
2007-03-21 20:49:59 +08:00
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
2007-03-21 20:49:59 +08:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/patchelf
%doc %{_docdir}/patchelf/README
%{_mandir}/man1/patchelf.1.gz