To fix RPM build errors:
File not found:
/home/abuild/rpmbuild/BUILDROOT/boost-1.83.0-1.1.x86_64/usr/share/boosttestsuite.log
Change-Id: I6e5e60e3805a796c8148490a8e6338cc830ae01c
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
../b2 --user-config=../user-config.jam --v2 man
%endif
-%check
%if 0%{?run_tests}
BOOST_LIBS="chrono,program_options,thread,system,filesystem,date_time,regex,serialization,iostreams,random,test"
install -m 0755 %{SOURCE1003} ./
echo "RUN run_test.sh"
./run_test.sh %{version} $BOOST_LIBS %{testlogfile} || exit 0
-
-install -D -m 644 %{testlogfile} $RPM_BUILD_ROOT%{_datadir}/boosttestsuite.log
%endif
%install
+%if 0%{?run_tests}
+install -D -m 644 %{testlogfile} $RPM_BUILD_ROOT%{_datadir}/boosttestsuite.log
+%endif
+
# Read shared build instructions
. ./.build