Patch2: %{name}-findruby.patch
Patch3: %{name}-tests.patch
Patch4: %{name}-freetype2.patch
+Patch5: %{name}-findruby2.patch
URL: http://www.cmake.org/
%{?with_gui:BuildRequires: QtGui-devel}
BuildRequires: libarchive-devel
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: bash-completion >= 2.0
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description -n bash-completion-%{name}
bash-completion for cmake.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
cat > "init.cmake" <<EOF
SET (CURSES_INCLUDE_PATH "/usr/include/ncurses" CACHE PATH " " FORCE)