Fix build when %_bindir==%_sbindir
Preparation for https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin. %install was putting files in the wrong directory. Also, move %install above %test, because %install happens first, and %test after that.
This commit is contained in:
parent
e10017f376
commit
226ede080b
1 changed files with 4 additions and 4 deletions
|
|
@ -53,16 +53,16 @@ echo %{version}-%{release} > VERSION
|
|||
%{cargo_license} > LICENSE.dependencies
|
||||
%cargo_vendor_manifest
|
||||
|
||||
%install
|
||||
# TODO: Check that MANDIR is unused and remove
|
||||
%make_install MANDIR=%{_mandir} BINDIR=%{buildroot}%{_sbindir}
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
#cargo test --test thin_shrink -- --nocapture --test-threads=1
|
||||
%endif
|
||||
|
||||
%install
|
||||
# TODO: Check that MANDIR is unused and remove
|
||||
%make_install MANDIR=%{_mandir}
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license COPYING
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue