don't hardcode /usr/bin path
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
9f8104bc8a
commit
5637076541
10
zstd.spec
10
zstd.spec
@ -75,13 +75,13 @@ make -C contrib/pzstd test
|
|||||||
%install
|
%install
|
||||||
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||||
# Remove undocumented wrappers of minimal use
|
# Remove undocumented wrappers of minimal use
|
||||||
rm %{buildroot}/%{_bindir}/%{name}less
|
rm %{buildroot}%{_bindir}/%{name}less
|
||||||
rm %{buildroot}/%{_bindir}/%{name}grep
|
rm %{buildroot}%{_bindir}/%{name}grep
|
||||||
# Don't install the static lib
|
# Don't install the static lib
|
||||||
rm %{buildroot}/%{_libdir}/libzstd.a
|
rm %{buildroot}%{_libdir}/libzstd.a
|
||||||
%if %{with pzstd}
|
%if %{with pzstd}
|
||||||
install -D -m755 contrib/pzstd/pzstd %{buildroot}/usr/bin/pzstd
|
install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
|
||||||
install -D -m644 programs/%{name}.1 %{buildroot}/%{_mandir}/man1/p%{name}.1
|
install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user