(In reply to Ralf Habacker from comment #5) > 2. convert all references to use the new package > > cat out.log | xargs gawk -i inplace '$1 == "BuildRequires:" && $2 == > "cmake" { gsub(/cmake/, "mingw32-cross-cmake", $0);} { print $0 }' The following commands should be used here to drop the original cmake version cat out.log | xargs gawk -i inplace '$1 == "BuildRequires:" && $2 == "cmake" { gsub(/cmake.*$/, "mingw32-cross-cmake", $0);} { print $0 }'