diff --git a/SPECS/facter.spec b/SPECS/facter.spec index 7a12af0..616cd24 100644 --- a/SPECS/facter.spec +++ b/SPECS/facter.spec @@ -70,6 +70,10 @@ The ruby bindings for libfacter. %prep %autosetup -p1 +# Do not use the catch vendored in leatherman +sed -r -i 's/(LEATHERMAN_COMPONENTS)(\b.+)?(\bcatch\b)/\1\2/' CMakeLists.txt +sed -r -i 's|\$\{LEATHERMAN_CATCH_INCLUDE\}|"%{_includedir}/catch"|' \ + lib/tests/CMakeLists.txt %build %cmake . -B%{_target_platform} \