diff --git a/utf8cpp.spec b/utf8cpp.spec index 2771792..c66523a 100644 --- a/utf8cpp.spec +++ b/utf8cpp.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build # This package only contains header files. %global debug_package %{nil} @@ -48,21 +49,16 @@ This project currently only contains header files, which can be found in the %patch0 -p1 -b .gtest %patch1 -p1 -b .noarch #%%patch10 -p1 -mkdir build %build -pushd build %cmake3 \ -DUTF8_TESTS=ON \ -DUTF8_SAMPLES=ON \ - .. -%make_build -popd + %{nil} +%cmake3_build %install -pushd build -%make_install -popd +%cmake3_install pushd %{buildroot}%{_includedir} ln -s utf8cpp/utf8.h ./ mkdir utf8 @@ -72,9 +68,7 @@ done popd %check -pushd build -%make_build test -popd +%ctest %files devel %doc README.md samples/docsample.cpp