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

Added Openloops as a new external, added OpenLoops to the sherpa configu... #1122

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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 @@ -52,6 +52,7 @@ Requires: libungif-toolfile
Requires: libxml2-toolfile
Requires: mcdb-toolfile
Requires: meschach-toolfile
Requires: openloops-toolfile
Requires: openssl-toolfile
Requires: oracle-env
Requires: pcre-toolfile
Expand Down
19 changes: 19 additions & 0 deletions openloops-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### RPM external openloops-toolfile 1.0
Requires: openloops
%prep

%build

%install

mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/openloops.xml
<tool name="openloops" version="@TOOL_VERSION@">
<client>
<environment name="OPENLOOPS_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$OPENLOOPS_BASE/lib"/>
</client>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
27 changes: 27 additions & 0 deletions openloops.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### RPM external openloops 1.0.0
Source: http://www.hepforge.org/archive/openloops/OpenLoops-%{realversion}.tar.gz

%prep

%setup -n OpenLoops-%{realversion}


cat << \EOF >> openloops.cfg
[OpenLoops]
fortran_compiler = gfortran
gfortran_f90_flags = -ffixed-line-length-0 -ffree-line-length-0
EOF

cat openloops.cfg

./scons auto=all/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was asked elsewhere if we could use lhc rather than all. Is that possible? Can you change that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why twice?


%build

%install

mkdir %i/lib
mkdir %i/proclib
cp lib/*.so %i/lib
cp proclib/*.so %i/proclib
cp proclib/*.info %i/proclib
5 changes: 3 additions & 2 deletions sherpa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%define branch cms/v%realversion
%define github_user cms-externals
Source: git+https://github.com/%github_user/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Requires: hepmc lhapdf blackhat sqlite fastjet openssl
Requires: hepmc lhapdf blackhat sqlite fastjet openssl openloops

%if "%{?cms_cxx:set}" != "set"
%define cms_cxx g++
Expand Down Expand Up @@ -33,7 +33,8 @@ esac

%build
./configure --prefix=%i --enable-analysis --disable-silent-rules --enable-fastjet=$FASTJET_ROOT \
--enable-hepmc2=$HEPMC_ROOT --enable-lhapdf=$LHAPDF_ROOT --enable-blackhat=$BLACKHAT_ROOT --with-sqlite3=$SQLITE_ROOT \
--enable-hepmc2=$HEPMC_ROOT --enable-lhapdf=$LHAPDF_ROOT \
--enable-blackhat=$BLACKHAT_ROOT --with-sqlite3=$SQLITE_ROOT --enable-openloops=$OPENLOOPS_ROOT \
CXX="%cms_cxx" \
CXXFLAGS="-fuse-cxa-atexit $ARCH_CMSPLATF %cms_cxxflags -I$LHAPDF_ROOT/include -I$BLACKHAT_ROOT/include -I$OPENSSL_ROOT/include" \
LDFLAGS="-ldl -L$BLACKHAT_ROOT/lib/blackhat -L$QD_ROOT/lib -L$OPENSSL_ROOT/lib"
Expand Down