-
Notifications
You must be signed in to change notification settings - Fork 184
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
Hydjet integration as external #5412
Changes from 5 commits
97b8793
4698a3e
7b2cd75
250cebb
c5a125a
7134a15
399308a
30ddf90
9556f1e
44ed6cd
2c0d3be
75029eb
6c673a2
301be52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### RPM external hydjet-toolfile 1.0 | ||
Requires: hydjet | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/hydjet.xml | ||
<tool name="hydjet" version="@TOOL_VERSION@"> | ||
<lib name="hydjet"/> | ||
<client> | ||
<environment name="HYDJET_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="LIBDIR" default="$HYDJET_BASE/lib"/> | ||
</client> | ||
<use name="pyquen"/> | ||
<use name="pythia6"/> | ||
<use name="lhapdf"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### RPM external hydjet 1.9.1 | ||
|
||
Source: http://cern.ch/lokhtin/hydro/%{n}-%{realversion}.tar.gz | ||
|
||
BuildRequires: cmake | ||
|
||
Requires: pyquen pythia6 lhapdf | ||
|
||
|
||
%prep | ||
%setup -q -n %{n}-%{realversion} | ||
|
||
%build | ||
|
||
cmake . -DCMAKE_INSTALL_PREFIX=%i -DCMAKE_BUILD_TYPE=Release -DPYQUEN_DIR=${PYQUEN_ROOT} -DPYTHIA6_DIR=${PYTHIA6_ROOT} -DLHAPDF_ROOT_DIR=${LHAPDF_ROOT} | ||
cmake --build . --clean-first -- %{makeprocesses} | ||
|
||
%install | ||
|
||
cmake --build . --target install --clean-first -- %{makeprocesses} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that was the goal (to clean in case the previous build found). What's wrong? The same behaviour was realized for pyquen. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is no need to do it twice. It has been done in the %build section already There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also add build dependency on
gmake
otherwise it will pick system gmake.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for advice. But, does it matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it does, some times we end up in env (e.g. docker containers with minimal package installation) where gmake is not available via system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean does it matter gmake, make, or ninja tool is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it depends, if you have run cmake to use ninja then you need to add dependency on ninja otheriwse default is
make
(which is available via our gmake.spec) and for that you need to add dependency on gmake.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank You for Your explanation!