Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported yaml-cpp 0.7.0 #8410

Merged
merged 2 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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