diff --git a/cmake.changes b/cmake.changes index 4668097..1c70660 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 17 11:53:37 UTC 2014 - olaf@aepfle.de + +- Remove . from PATH to fix check + ------------------------------------------------------------------- Fri Sep 12 16:59:17 UTC 2014 - idonmez@suse.com diff --git a/cmake.spec b/cmake.spec index 0f9e605..8defa67 100644 --- a/cmake.spec +++ b/cmake.spec @@ -86,6 +86,30 @@ sed -i \ %fdupes %{buildroot}%{_datadir}/cmake %check +%if 0%{?suse_version} <= 1140 +# http://public.kitware.com/Bug/view.php?id=13237 +# 0013237: 25 - FindPackageTest (Failed) +# Our 11.4 and older have . in PATH, as a result check fails. +# Having '.' in PATH is not needed anyway, so remove it here. +oIFS=$IFS +IFS=: +NPATH= +for path in $PATH +do + if test "$path" = "." + then + continue + fi + if test -n "$NPATH" + then + NPATH="$NPATH:$path" + else + NPATH="$path" + fi +done +IFS=$oIFS +export PATH=$NPATH +%endif # Excluded tests: # TestUpload: uses internet connection # SimpleInstall: seems to fail due to RPATH strictness