Packages: "test" and "test-debug" targets for rpm.

This commit is contained in:
Andrei Belov
2018-01-26 17:44:26 +03:00
parent 7fe8f72364
commit 9d1410a0bb
3 changed files with 28 additions and 4 deletions

View File

@@ -77,9 +77,11 @@ dynamically via an API.
--cc-opt="%{CC_OPT}" \
--ld-opt="%{LD_OPT}"
%{__make} %{?_smp_mflags}
%{__mv} build build-nodebug
%install
%{__rm} -rf %{buildroot}
%{__ln_s} build-nodebug build
DESTDIR=%{buildroot} make unitd-install
%{__install} -m755 %{bdir}/build-debug/unitd \
%{buildroot}%{_sbindir}/unitd-debug