Use location macros

Fixes %files bug when prefix is not "/usr"
This commit is contained in:
Aaron D. Marasco 2015-09-11 12:05:23 -04:00
parent b202ad239e
commit 1000fe4b0a
1 changed files with 4 additions and 4 deletions

View File

@ -27,12 +27,12 @@ make check
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
strip $RPM_BUILD_ROOT/%{_prefix}/bin/* || true
# rpmbuild automatically strips... strip $RPM_BUILD_ROOT/%{_bindir}/* || true
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/bin/patchelf
/usr/share/doc/patchelf/README
/usr/share/man/man1/patchelf.1.gz
%{_bindir}/patchelf
%doc %{_docdir}/patchelf/README
%{_mandir}/man1/patchelf.1.gz