Use location macros
Fixes %files bug when prefix is not "/usr"
This commit is contained in:
parent
b202ad239e
commit
1000fe4b0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue