Accepting request 257365 from devel:tools:building

1

OBS-URL: https://build.opensuse.org/request/show/257365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=96
This commit is contained in:
Stephan Kulow 2014-10-19 17:27:49 +00:00 committed by Git OBS Bridge
commit 2de83d54ba
2 changed files with 29 additions and 0 deletions

View File

@ -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

View File

@ -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