Skip to content

Commit

Permalink
Merge pull request hpc#564 from rezib/fix/spec
Browse files Browse the repository at this point in the history
rpm: use %cmake macros
  • Loading branch information
adammoody authored Nov 29, 2023
2 parents fac50e0 + 847020b commit a80a6da
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions mpifileutils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a80a6da

Please sign in to comment.