Files
patchelf/patchelf.spec.in
Eelco Dolstra 326f168c02 Use underscores in versions to keep RPM happy
RPM doesn't allow dashes in version numbers, so use an underscore
instead.  Also, let Autoconf generate the RPM spec file.
2011-12-14 16:35:50 +01:00

37 lines
737 B
RPMSpec

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}-@PACKAGE_VERSION@.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-buildroot
Prefix: /usr
%description
PatchELF is a 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 --prefix=%{_prefix}
make
make check
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
strip $RPM_BUILD_ROOT/%{_prefix}/bin/* || true
%clean
rm -rf $RPM_BUILD_ROOT
%files
/