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
1 change: 0 additions & 1 deletion boost-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,5 @@ export BOOST_REGEX_LIB=`getLibName regex`
export BOOST_SERIALIZATION_LIB=`getLibName serialization`
export BOOST_IOSTREAMS_LIB=`getLibName iostream`
export BOOST_MPI_LIB=`getLibName mpi`
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
2 changes: 1 addition & 1 deletion coral-tool-conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## NOCOMPILER

Requires: pcre-toolfile
Requires: python-toolfile
Requires: python3-toolfile
Requires: expat-toolfile
Requires: boost-toolfile
Requires: frontier_client-toolfile
Expand Down
6 changes: 3 additions & 3 deletions coral-toolfile.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external coral-toolfile 1.0
### RPM external coral-toolfile 2.0
Requires: coral
%prep

Expand All @@ -14,8 +14,8 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/coral.xml
<environment name="LIBDIR" default="$CORAL_BASE/$SCRAM_ARCH/lib"/>
<environment name="INCLUDE" default="$CORAL_BASE/include/LCG"/>
</client>
<runtime name="PYTHON27PATH" default="$CORAL_BASE/$SCRAM_ARCH/python" type="path"/>
<runtime name="PYTHON27PATH" default="$CORAL_BASE/$SCRAM_ARCH/lib" type="path"/>
<runtime name="PYTHON3PATH" default="$CORAL_BASE/$SCRAM_ARCH/python" type="path"/>
<runtime name="PYTHON3PATH" default="$CORAL_BASE/$SCRAM_ARCH/lib" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<use name="root_cxxdefaults"/>
</tool>
Expand Down
4 changes: 2 additions & 2 deletions coral.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### RPM cms coral CORAL_2_3_21
%define tag 03471dd59bed93d6e20ad6c4b6258d3f65821066
%define branch cms/%{realversion}
%define tag c5ddd97499d6a76f24cba6800e5cb88887764bcb
%define branch cms/%{realversion}py3
%define github_user cms-externals

Patch0: coral-2_3_20-macosx
Expand Down
4 changes: 2 additions & 2 deletions cuda.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Source0: https://developer.download.nvidia.com/compute/cuda/%{realversion}/local
%ifarch aarch64
Source0: https://developer.download.nvidia.com/compute/cuda/%{realversion}/local_installers/%{n}_%{realversion}_%{driversversion}_linux_sbsa.run
%endif
Requires: python
Requires: python3
AutoReq: no

%prep
Expand Down Expand Up @@ -72,7 +72,7 @@ mv %_builddir/build/share/ %{i}/
mv %{i}/bin/cuda-gdb %{i}/bin/cuda-gdb.real
cat > %{i}/bin/cuda-gdb << @EOF
#! /bin/bash
export PYTHONHOME=$PYTHON_ROOT
export PYTHONHOME=$PYTHON3_ROOT
exec %{i}/bin/cuda-gdb.real "\$@"
@EOF
chmod a+x %{i}/bin/cuda-gdb
Expand Down
1 change: 0 additions & 1 deletion fastjet-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ done
cat << \EOF_TOOLFILE >>%i/etc/scram.d/%{base_package}.xml
</client>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<runtime name="PYTHON3PATH" value="$FASTJET_BASE/lib/python%{cms_python3_major_minor_version}/site-packages" type="path"/>
<use name="root_cxxdefaults"/>
</tool>
EOF_TOOLFILE
Expand Down
2 changes: 1 addition & 1 deletion fastjet.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### RPM external fastjet 3.4.0-beta
## INITENV +PATH PYTHON27PATH %{i}/${PYTHON_LIB_SITE_PACKAGES}
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}
## INCLUDE compilation_flags

BuildRequires: autotools
Expand Down
1 change: 0 additions & 1 deletion frontier_client.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
### RPM external frontier_client 2.9.1
## INITENV +PATH PYTHON27PATH %{i}/python/lib
## INITENV +PATH PYTHON3PATH %{i}/python/lib

%define tag 888a611d4ab15d6ce03830c63b850539460dcda9
Expand Down
2 changes: 0 additions & 2 deletions gosam-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/gosam.xml
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
1 change: 0 additions & 1 deletion llvm-gcc-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/pyclang.xml
<use name="python"/>
</tool>
EOF_TOOLFILE
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

# NON-empty defaults
# First of all handle OS specific options.
Expand Down
4 changes: 2 additions & 2 deletions llvm.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### RPM external llvm 12.0.0
## INITENV +PATH LD_LIBRARY_PATH %{i}/lib64
## INITENV +PATH PYTHON3PATH %{i}/lib64/python`echo $PYTHON3_VERSION | cut -d. -f 1,2`/site-packages
## INITENV +PATH PYTHON3PATH %{i}/lib64/python%{cms_python3_major_minor_version}/site-packages

BuildRequires: cmake ninja
Requires: gcc zlib python3
Expand Down Expand Up @@ -62,7 +62,7 @@ bin/clang-tidy --checks=* --list-checks | grep cms-handle
cd ../build
ninja -v %{makeprocesses} install

BINDINGS_PATH=%{i}/lib64/python$(echo $PYTHON3_VERSION | cut -d. -f 1,2)/site-packages
BINDINGS_PATH=%{i}/lib64/python%{cms_python3_major_minor_version}/site-packages
mkdir -p $BINDINGS_PATH
cp -r %{_builddir}/llvm-%{realversion}-%{llvmCommit}/clang/bindings/python/clang $BINDINGS_PATH

Expand Down
4 changes: 2 additions & 2 deletions pip/python-ldap.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requires: python openldap py3-pyasn1-modules
%define PipBuildOptions --global-option=build_ext --global-option="-L${PYTHON_ROOT}/lib" --global-option="-L${OPENLDAP_ROOT}/lib" --global-option="-I${PYTHON_ROOT}/include" --global-option="-I${OPENLDAP_ROOT}/include" --global-option="-UHAVE_SASL"
Requires: openldap py3-pyasn1-modules
%define PipBuildOptions --global-option=build_ext --global-option="-L${PYTHON3_ROOT}/lib" --global-option="-L${OPENLDAP_ROOT}/lib" --global-option="-I${PYTHON3_ROOT}/include" --global-option="-I${OPENLDAP_ROOT}/include" --global-option="-UHAVE_SASL"
2 changes: 0 additions & 2 deletions professor2-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/professor2.xml
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
10 changes: 6 additions & 4 deletions professor2.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### RPM external professor2 2.3.2
## INITENV +PATH PYTHON27PATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
## INITENV +PATH PYTHON3PATH %i/lib/python%{cms_python3_major_minor_version}/site-packages

Source: http://www.hepforge.org/archive/professor/Professor-%{realversion}.tar.gz
Requires: py3-matplotlib root yoda eigen
Expand All @@ -14,11 +14,13 @@ Patch0: professor2-ppc64-flag-change
%patch0 -p1
%endif

%define build_flags CPPFLAGS=-I${EIGEN_ROOT}/include/eigen3 PYTHON=$(which python3)

%build
make CPPFLAGS=-I${EIGEN_ROOT}/include/eigen3
make %{build_flags}

%install
make install PREFIX=%{i}
make install PREFIX=%{i} %{build_flags}

find %{i} -type f -exec sed -ideleteme '1 { s|^#!.*/bin/python|#!/usr/bin/env python| }' {} \;
find %{i} -type f -exec sed -ideleteme '1 { s|^#!.*/bin/python.*|#!/usr/bin/env python3| }' {} \;
find %{i} -name '*deleteme' -delete
4 changes: 2 additions & 2 deletions python-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/python.xml
<client>
<environment name="PYTHON_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$PYTHON_BASE/lib"/>
<environment name="INCLUDE" default="$PYTHON_BASE/include/python@PYTHONV@"/>
<environment name="PYTHON_COMPILE" default="$PYTHON_BASE/lib/python@PYTHONV@/compileall.py"/>
<environment name="INCLUDE" default="$PYTHON_BASE/include/python%{cms_python2_major_minor_version}"/>
<environment name="PYTHON_COMPILE" default="$PYTHON_BASE/lib/python%{cms_python2_major_minor_version}/compileall.py"/>
</client>
<runtime name="PATH" value="$PYTHON_BASE/bin" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
Expand Down
8 changes: 2 additions & 6 deletions python3-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/python3.xml
<client>
<environment name="PYTHON3_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$PYTHON3_BASE/lib"/>
<environment name="INCLUDE" default="$PYTHON3_BASE/include/python@PYTHON3V@"/>
<environment name="PYTHON3_COMPILE" default="$PYTHON3_BASE/lib/python@PYTHON3V@/compileall.py"/>
<environment name="INCLUDE" default="$PYTHON3_BASE/include/python%{cms_python3_major_minor_version}"/>
<environment name="PYTHON3_COMPILE" default="$PYTHON3_BASE/lib/python%{cms_python3_major_minor_version}/compileall.py"/>
</client>
<runtime name="PATH" value="$PYTHON3_BASE/bin" type="path"/>
<use name="sockets"/>
</tool>
EOF_TOOLFILE


# <runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
# <use name="root_cxxdefaults"/>

export PYTHON3V=$(echo $PYTHON3_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
2 changes: 1 addition & 1 deletion python_tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Source: none

Requires: root curl python python3 xrootd llvm hdf5 mxnet-predict yoda opencv
Requires: professor2 rivet frontier_client onnxruntime

#needed for cmssw until python2-> python3 switch of framework
Requires: py2-configparser
Expand Down Expand Up @@ -218,7 +219,6 @@ Requires: py3-smmap
Requires: py3-zipp

Requires: py3-pycuda
Requires: onnxruntime

Requires: py3-boost-histogram
Requires: py3-hist
Expand Down
2 changes: 0 additions & 2 deletions rivet-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ cat << \EOF_TOOLFILE >>%i/etc/scram.d/rivet.xml
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post


1 change: 0 additions & 1 deletion rivet.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
### RPM external rivet 3.1.4
## INITENV +PATH PYTHON27PATH %{i}/${PYTHON_LIB_SITE_PACKAGES}
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}
## OLD GENSER Source: http://cern.ch/service-spi/external/MCGenerators/distribution/rivet/rivet-%{realversion}-src.tgz
Source: git+https://gitlab.com/hepcedar/rivet.git?obj=master/%{n}-%{realversion}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
Expand Down
6 changes: 2 additions & 4 deletions root.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
### RPM lcg root 6.22.08
## INITENV +PATH PYTHON27PATH %{i}/lib
## INITENV +PATH PYTHON3PATH %{i}/lib
## INITENV SET ROOTSYS %{i}

Expand All @@ -11,7 +10,7 @@ Source: git+https://github.com/%{github_user}/root.git?obj=%{branch}/%{tag}&expo

BuildRequires: cmake ninja

Requires: gsl libjpeg-turbo libpng libtiff giflib pcre python python3 fftw3 xz xrootd libxml2 zlib davix tbb OpenBLAS py3-numpy lz4 freetype zstd
Requires: gsl libjpeg-turbo libpng libtiff giflib pcre python3 fftw3 xz xrootd libxml2 zlib davix tbb OpenBLAS py3-numpy lz4 freetype zstd

%ifos linux
Requires: dcap
Expand All @@ -32,7 +31,6 @@ rm -rf ../build
mkdir ../build
cd ../build

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
export CFLAGS=-D__ROOFIT_NOBANNER
export CXXFLAGS=-D__ROOFIT_NOBANNER

Expand Down Expand Up @@ -138,7 +136,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};${PYTHON_ROOT};${PYTHON3_ROOT};${LIBPNG_ROOT};${PCRE_ROOT};${TBB_ROOT};${OPENBLAS_ROOT};${DAVIX_ROOT};${LIBXML2_ROOT};${ZSTD_ROOT}"
-DCMAKE_PREFIX_PATH="${LZ4_ROOT};${GSL_ROOT};${XZ_ROOT};${GIFLIB_ROOT};${FREETYPE_ROOT};${PYTHON3_ROOT};${LIBPNG_ROOT};${PCRE_ROOT};${TBB_ROOT};${OPENBLAS_ROOT};${DAVIX_ROOT};${LIBXML2_ROOT};${ZSTD_ROOT}"

# 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
2 changes: 1 addition & 1 deletion scram-project-build.file
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ BuildRequires: dwz
%endif

%if "%{?configtag:set}" != "set"
%define configtag V06-02-17
%define configtag V06-02-21
%endif

%if "%{?cvssrc:set}" != "set"
Expand Down
2 changes: 0 additions & 2 deletions sherpa-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,4 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/sherpa.xml
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
1 change: 0 additions & 1 deletion xrootd.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
### RPM external xrootd 4.12.3
## INITENV +PATH LD_LIBRARY_PATH %i/lib64
## INITENV +PATH PYTHON27PATH %{i}/${PYTHON_LIB_SITE_PACKAGES}
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}

%define tag b122d662f80a46a570876afd32cdaa9f4370dc1d
Expand Down