diff --git a/cmssw-tool-conf.spec b/cmssw-tool-conf.spec index e41f548dfcc..85b0872800b 100644 --- a/cmssw-tool-conf.spec +++ b/cmssw-tool-conf.spec @@ -95,6 +95,7 @@ Requires: grpc Requires: onnxruntime Requires: triton-inference-client Requires: hdf5 +Requires: yaml-cpp Requires: yoda Requires: fftw3 Requires: fftjet diff --git a/scram-tools.file/tools/yaml-cpp/yaml-cpp.xml b/scram-tools.file/tools/yaml-cpp/yaml-cpp.xml index 5deda30efee..7a65516c036 100644 --- a/scram-tools.file/tools/yaml-cpp/yaml-cpp.xml +++ b/scram-tools.file/tools/yaml-cpp/yaml-cpp.xml @@ -1,10 +1,9 @@ - + - + - diff --git a/yaml-cpp.spec b/yaml-cpp.spec new file mode 100644 index 00000000000..f3316de28b8 --- /dev/null +++ b/yaml-cpp.spec @@ -0,0 +1,26 @@ +### RPM external yaml-cpp 0.7.0 + +Source: https://github.com/jbeder/yaml-cpp/archive/refs/tags/%{n}-%{realversion}.tar.gz + +BuildRequires: cmake ninja + +%prep +%setup -n %{n}-%{realversion} + +%build +rm -rf ../build +mkdir ../build +cd ../build + +cmake ../%{n}-%{realversion} \ + -G Ninja \ + -DCMAKE_INSTALL_PREFIX:PATH="%i" \ + -DCMAKE_BUILD_TYPE=Release \ + -DYAML_BUILD_SHARED_LIBS=ON \ + -DYAML_CPP_BUILD_TESTS=OFF + +ninja -v %{makeprocesses} + +%install +cd ../build +ninja %{makeprocesses} install