diff --git a/drpm.spec b/drpm.spec index 9cb6ab0..d9386b4 100644 --- a/drpm.spec +++ b/drpm.spec @@ -56,24 +56,17 @@ The drpm-devel package provides a C interface (drpm.h) for the drpm library. %prep %autosetup -p1 -mkdir build %build -pushd build -%cmake .. -DWITH_ZSTD:BOOL=%{?with_zstd:ON}%{!?with_zstd:OFF} -DHAVE_LZLIB_DEVEL:BOOL=%{?suse_version:ON}%{!?suse_version:OFF} -%make_build -make doc -popd +%cmake -DWITH_ZSTD:BOOL=%{?with_zstd:ON}%{!?with_zstd:OFF} -DHAVE_LZLIB_DEVEL:BOOL=%{?suse_version:ON}%{!?suse_version:OFF} +%cmake_build +%cmake_build --target doc %install -pushd build -%make_install -popd +%cmake_install %check -pushd build -ctest -VV -popd +%ctest %if (0%{?rhel} && 0%{?rhel} < 8) || 0%{?suse_version} %post -p /sbin/ldconfig @@ -86,7 +79,7 @@ popd %license COPYING LICENSE.BSD %files devel -%doc build/doc/html/ +%doc %{_vpath_builddir}/doc/html/ %{_libdir}/lib%{name}.so %{_includedir}/%{name}.h %{_libdir}/pkgconfig/%{name}.pc