]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.spec.in: use %cmake macro
authorKefu Chai <kchai@redhat.com>
Wed, 17 Feb 2021 03:52:23 +0000 (11:52 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Feb 2021 04:39:55 +0000 (12:39 +0800)
%cmake passes a bunch of default flags, so we can save some efforts.

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in

index da419f4c49083b16ea5a281698cad2ddfbdd971e..8d4825311b99da711e23d395b0bd11ab8bc33c5c 100644 (file)
@@ -1214,9 +1214,7 @@ env | sort
 
 mkdir build
 cd build
-CMAKE=cmake
-${CMAKE} .. \
-    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%cmake .. \
     -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
     -DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
     -DCMAKE_INSTALL_LOCALSTATEDIR=%{_localstatedir} \