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
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
strip $RPM_BUILD_ROOT/%{_prefix}/bin/* || true
|
# rpmbuild automatically strips... strip $RPM_BUILD_ROOT/%{_bindir}/* || true
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
/usr/bin/patchelf
|
%{_bindir}/patchelf
|
||||||
/usr/share/doc/patchelf/README
|
%doc %{_docdir}/patchelf/README
|
||||||
/usr/share/man/man1/patchelf.1.gz
|
%{_mandir}/man1/patchelf.1.gz
|
||||||
|
|
Loading…
Reference in New Issue