Update to new out-of-source build mechanism

This commit is contained in:
Neal Gompa 2020-07-05 14:31:32 -04:00
parent be08d4ffcf
commit 1998276a61
1 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,6 @@
# Force out of source build
%undefine __cmake_in_source_build
# #
%global mydocs __tmp_docdir %global mydocs __tmp_docdir
# #
@ -61,11 +64,11 @@ online (http://%{name}.org).
%build %build
%cmake . %cmake
%make_build %cmake_build
%install %install
%make_install %cmake_install
mkdir -p %{mydocs} mkdir -p %{mydocs}
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs} mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
@ -76,7 +79,7 @@ rm -f %{mydocs}/html/installdox
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README.md,AUTHORS} rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
%check %check
ctest %ctest
%files %files