Group: Development/Tools
Source0: https://github.com/Eyescale/CMake/archive/%{gitref}/Eyescale-CMake-%{gitref}.tar.gz
# Source0-md5: b121851bcee76d6e99abdacf54a4512c
+Patch0: libdir.patch
URL: https://github.com/Eyescale/CMake/
Requires: cmake >= 2.8
BuildArch: noarch
%prep
%setup -q -c
+
%{__mv} CMake-* common
+%patch0 -p1
%{__rm} common/.gitignore
%{__mv} common/{CHANGES.md,LICENSE.txt,README.md} .
--- /dev/null
+--- Eyescale-CMake-2016.04/common/Common.cmake~ 2016-04-05 11:42:04.000000000 +0000
++++ Eyescale-CMake-2016.04/common/Common.cmake 2016-05-28 16:40:47.577436434 +0000
+@@ -72,7 +72,7 @@
+ add_definitions(-fPIC)
+ endif()
+ endif()
+-set(LIBRARY_DIR lib)
++set(LIBRARY_DIR lib${LIB_SUFFIX})
+
+ if(APPLE)
+ cmake_policy(SET CMP0042 NEW)