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

add vincia - a plugin for pythia8 #3150

Merged
merged 1 commit into from Jul 7, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -63,6 +63,7 @@ Requires: photos-toolfile
Requires: photospp-toolfile
Requires: pythia6-toolfile
Requires: pythia8-toolfile
Requires: vincia-toolfile
Requires: python-toolfile
Requires: qt-toolfile
Requires: root-toolfile
Expand Down
25 changes: 25 additions & 0 deletions vincia-toolfile.spec
@@ -0,0 +1,25 @@
### RPM external vincia-toolfile 1.0
Requires: vincia
%prep

%build

%install

mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/vincia.xml
<tool name="vincia" version="@TOOL_VERSION@">
<lib name="vincia"/>
<lib name="mg4helas"/>
<client>
<environment name="VINCIA_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$VINCIA_BASE/lib"/>
<environment name="INCLUDE" default="$VINCIA_BASE/include"/>
</client>
<runtime name="VINCIADATA" value="$VINCIA_BASE/share/Vincia/xmldoc"/>
<use name="root_cxxdefaults"/>
<use name="pythia8"/>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
20 changes: 20 additions & 0 deletions vincia.spec
@@ -0,0 +1,20 @@
### RPM external vincia 1.2.02

Requires: pythia8

Source: https://www.hepforge.org/archive/vincia/%{n}-%{realversion}.tgz

%define keep_archives true

%prep
%setup -q -n %{n}-%{realversion}

./configure --prefix=%i --with-pythia8=${PYTHIA8_ROOT}

# For version 2 "FFLAGS..." below can be substituted by --fc-common=-fPIC in the configure arguments above

%build
make %makeprocesses FFLAGS="-fPIC"

%install
make install