diff --git a/rivet.spec b/rivet.spec index d132df66c84..37705c9712e 100644 --- a/rivet.spec +++ b/rivet.spec @@ -7,7 +7,7 @@ Source: git+https://gitlab.com/hepcedar/rivet.git?obj=master/%{n}-%{realversion} Source99: scram-tools.file/tools/eigen/env Patch0: rivet-duplicate-libs -Requires: hepmc3 fastjet fastjet-contrib yoda hdf5 highfive onnxruntime +Requires: hepmc3 fastjet fastjet-contrib yoda hdf5 highfive BuildRequires: python3 py3-cython autotools %prep @@ -46,8 +46,8 @@ sed -i "/_pow10 only defined for positive powers/d" include/Rivet/Tools/Particle PYTHON=$(which python3) \ ./configure --disable-silent-rules --prefix=%{i} --with-hepmc=${HEPMC3_ROOT} \ --with-fastjet=${FASTJET_ROOT} --with-fjcontrib=${FASTJET_CONTRIB_ROOT} --with-yoda=${YODA_ROOT} \ - --disable-doxygen --disable-pdfmanual --with-pic \ - --with-hdf5=${HDF5_ROOT}/bin/h5pcc --with-highfive=${HIGHFIVE_ROOT} --enable-onnxrt=${ONNXRUNTIME_ROOT} \ + --disable-doxygen --with-pic \ + --with-hdf5=${HDF5_ROOT}/bin/h5pcc --with-highfive=${HIGHFIVE_ROOT} \ CXX="mpicxx" CPPFLAGS="-I${BOOST_ROOT}/include" CXXFLAGS="${CXXFLAGS}" # The following hack insures that the bins with the library linked explicitly # rather than indirectly, as required by the gold linker @@ -55,7 +55,7 @@ perl -p -i -e "s|LIBS = $|LIBS = -lHepMC3|g" bin/Makefile make %{makeprocesses} all %install -make install +make install sed -i -e 's|^#!.*python.*|#!/usr/bin/env python3|' %{i}/bin/* %post