From 3c4a01356f2364c2d0d520e2ccce4a1a3b952d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Palancher?= Date: Wed, 8 Nov 2023 16:32:02 +0100 Subject: [PATCH] rpm: use %cmake macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documentation about these macros is available in Fedora project packaging guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/ One notable advantage of these macros is that they transparently define compiler and linker flags with distribution defaults. Signed-off-by: RĂ©mi Palancher --- mpifileutils.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mpifileutils.spec b/mpifileutils.spec index b3a0f81a..94619f00 100644 --- a/mpifileutils.spec +++ b/mpifileutils.spec @@ -17,15 +17,12 @@ File utilities designed for scalability and performance. %setup -q %build -#topdir=`pwd` -#installdir=$topdir/install - -cmake ./ -DWITH_DTCMP_PREFIX=${installdir} -DWITH_LibCircle_PREFIX=${installdir} -DCMAKE_INSTALL_PREFIX=%{buildroot} -DENABLE_LUSTRE=ON -DENABLE_XATTRS=ON -make +%{cmake} ./ -DWITH_DTCMP_PREFIX=${installdir} -DWITH_LibCircle_PREFIX=${installdir} -DCMAKE_INSTALL_PREFIX=%{buildroot} -DENABLE_LUSTRE=ON -DENABLE_XATTRS=ON +%{cmake_build} %install rm -rf %{buildroot} -make install DESTDIR=%{buildroot} +%{cmake_install} %files