Signed-off-by: Kefu Chai <kchai@redhat.com>
%endif
BuildRequires: bc
BuildRequires: gperf
-BuildRequires: cmake
+%if 0%{?rhel} == 7
+BuildRequires: cmake3 > 3.5
+%else
+BuildRequires: cmake > 3.5
+%endif
BuildRequires: cryptsetup
BuildRequires: fuse-devel
%if 0%{?rhel} == 7
mkdir build
cd build
-cmake .. \
+%if 0%{?rhel} == 7
+CMAKE=cmake3
+%else
+CMAKE=cmake
+%endif
+${CMAKE} .. \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
Alfredo Deza <adeza@redhat.com>,
Build-Depends: bc,
btrfs-tools,
- cmake,
+ cmake (>= 3.5),
cpio,
cryptsetup-bin | cryptsetup,
cython,
mkdir build
cd build
NPROC=${NPROC:-$(nproc)}
-cmake -DBOOST_J=$NPROC $ARGS "$@" ..
+if type cmake3 > /dev/null 2>&1 ; then
+ CMAKE=cmake3
+else
+ CMAKE=cmake
+fi
+${CMAKE} -DBOOST_J=$NPROC $ARGS "$@" ..
# minimal config to find plugins
cat <<EOF > ceph.conf