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
#
@ -57,15 +60,15 @@ online (http://%{name}.org).
%prep
%autosetup -n %{name}-%{name}-%{version}
%autosetup -n %{name}-%{name}-%{version}
%build
%cmake .
%make_build
%cmake
%cmake_build
%install
%make_install
%cmake_install
mkdir -p %{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}
%check
ctest
%ctest
%files