Skip to content
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
4 changes: 3 additions & 1 deletion cepgen.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Source: https://github.com/cepgen/cepgen/archive/refs/tags/%{realversion}.tar.gz

BuildRequires: cmake ninja
Requires: gsl OpenBLAS hepmc hepmc3 lhapdf pythia6 root bz2lib zlib xz python3
# ROOT uses the json package, and seems to require that it be availble also when other packages use ROOT
Requires: json

%prep
%setup -n %{n}-%{realversion}
Expand All @@ -27,7 +29,7 @@ cmake ../%{n}-%{realversion} \
-DCMAKE_INSTALL_PREFIX:PATH="%i" \
-DCMAKE_BUILD_TYPE=Release \
-DBoost_NO_SYSTEM_PATHS=ON \
-DCMAKE_PREFIX_PATH="${BZ2LIB_ROOT};${ZLIB_ROOT};${XZ_ROOT}"
-DCMAKE_PREFIX_PATH="%{cmake_prefix_path}"

ninja -v %{makeprocesses}

Expand Down
2 changes: 2 additions & 0 deletions dd4hep.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Source: git+https://github.com/%{github_user}/DD4hep.git?obj=%{branch}/%{tag}&ex
## INCLUDE geant4-deps

Requires: root boost geant4
# ROOT uses the json package, and seems to require that it be availble also when other packages use ROOT
Requires: json

%define cmake_fixed_args \\\
-DCMAKE_INSTALL_PREFIX='%{i}' \\\
Expand Down
6 changes: 3 additions & 3 deletions root.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Source: git+https://github.com/%{github_user}/root.git?obj=%{branch}/%{tag}&expo

BuildRequires: cmake ninja

Requires: gsl libjpeg-turbo libpng libtiff giflib pcre2 python3 fftw3 xz xrootd libxml2 zlib davix tbb OpenBLAS py3-numpy lz4 freetype zstd
Requires: gsl libjpeg-turbo libpng libtiff giflib pcre2 python3 fftw3 xz xrootd libxml2 zlib davix tbb OpenBLAS py3-numpy lz4 freetype zstd json
%{!?without_cuda:Requires: cuda}

%ifos linux
Expand Down Expand Up @@ -92,7 +92,7 @@ cmake ../%{n}-%{realversion} \
-Dbuiltin_gl2ps=ON \
-Dbuiltin_afterimage=ON \
-Dbuiltin_xxhash=ON \
-Dbuiltin_nlohmannjson=ON \
-Dbuiltin_nlohmannjson=OFF \
-Darrow=OFF \
-DGSL_ROOT_DIR="${GSL_ROOT}" \
-DGSL_CBLAS_LIBRARY="${OPENBLAS_ROOT}/lib/libopenblas.%{soext}" \
Expand Down Expand Up @@ -149,7 +149,7 @@ cmake ../%{n}-%{realversion} \
-DZLIB_ROOT="${ZLIB_ROOT}" \
-DZLIB_INCLUDE_DIR="${ZLIB_ROOT}/include" \
-DZSTD_ROOT="${ZSTD_ROOT}" \
-DCMAKE_PREFIX_PATH="${LZ4_ROOT};${GSL_ROOT};${XZ_ROOT};${GIFLIB_ROOT};${FREETYPE_ROOT};${PYTHON3_ROOT};${LIBPNG_ROOT};${PCRE2_ROOT};${TBB_ROOT};${OPENBLAS_ROOT};${DAVIX_ROOT};${LIBXML2_ROOT};${ZSTD_ROOT}"
-DCMAKE_PREFIX_PATH="%{cmake_prefix_path}"

# For CMake cache variables: http://www.cmake.org/cmake/help/v3.2/manual/cmake-language.7.html#lists
# For environment variables it's OS specific: http://www.cmake.org/Wiki/CMake_Useful_Variables
Expand Down