Skip to content

Commit

Permalink
Merge pull request #3154 from mkirsano/topythia8226_53X
Browse files Browse the repository at this point in the history
upgrade pythia8 to 226 in 53X
  • Loading branch information
davidlange6 committed Jul 24, 2017
2 parents 11fbf3d + 99cdfa8 commit 96ff959
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pythia8.spec
@@ -1,19 +1,22 @@
### RPM external pythia8 212
### RPM external pythia8 226

Requires: hepmc lhapdf

%define tag 2c5a4f204767dfd62849eb01c9b70b4ff16311a9
%define branch cms/%{realversion}
%define github_user cms-externals
Source: git+https://github.com/%github_user/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
Source: http://home.thep.lu.se/~torbjorn/pythia8/%{n}%{realversion}.tgz

%if "%{?cms_cxxflags:set}" != "set"
%define cms_cxxflags -std=c++0x
%endif

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

export USRCXXFLAGS="%cms_cxxflags"
./configure --prefix=%i --enable-shared --with-hepmc2=${HEPMC_ROOT} --with-lhapdf5=${LHAPDF_ROOT}

%build
make
make %makeprocesses

%install
make install
test -f %i/lib/libpythia8lhapdf5.so || exit 1

0 comments on commit 96ff959

Please sign in to comment.