Skip to content

Commit

Permalink
Merge pull request #8410 from forthommel/yaml-cpp
Browse files Browse the repository at this point in the history
Imported yaml-cpp 0.7.0
  • Loading branch information
smuzaffar authored Mar 28, 2023
2 parents 5c40fac + e210a93 commit f870055
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Requires: grpc
Requires: onnxruntime
Requires: triton-inference-client
Requires: hdf5
Requires: yaml-cpp
Requires: yoda
Requires: fftw3
Requires: fftjet
Expand Down
5 changes: 2 additions & 3 deletions scram-tools.file/tools/yaml-cpp/yaml-cpp.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<tool name="yaml-cpp" version="@TOOL_VERSION@">
<info url="http://code.google.com/p/yaml-cpp/"/>
<info url="https://github.com/jbeder/yaml-cpp/"/>
<lib name="yaml-cpp"/>
<client>
<environment name="YAML_CPP_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$YAML_CPP_BASE/lib"/>
<environment name="LIBDIR" default="$YAML_CPP_BASE/lib64"/>
<environment name="INCLUDE" default="$YAML_CPP_BASE/include"/>
</client>
<use name="boost"/>
</tool>
26 changes: 26 additions & 0 deletions yaml-cpp.spec
Original file line number Diff line number Diff line change
@@ -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}-%{n}-%{realversion}

%build
rm -rf ../build
mkdir ../build
cd ../build

cmake ../%{n}-%{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

0 comments on commit f870055

Please sign in to comment.