Skip to content

Commit

Permalink
add vincia - a plugin for pythia8
Browse files Browse the repository at this point in the history
  • Loading branch information
mkirsano committed Jul 6, 2017
1 parent d013646 commit dc17308
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
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

0 comments on commit dc17308

Please sign in to comment.