Skip to content

Commit

Permalink
Revert "Merge pull request cms-sw#1046 from cms-sw/revert-1028-topyth…
Browse files Browse the repository at this point in the history
…ia8200pre1"

This is the revert of the revert of the pythia8 changes.

This reverts commit 086db1c, reversing
changes made to d04e9c8.
  • Loading branch information
bendavid committed Sep 28, 2014
1 parent a4365cb commit 2c76736
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions pythia8-toolfile.spec
Expand Up @@ -10,13 +10,12 @@ mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/pythia8.xml
<tool name="pythia8" version="@TOOL_VERSION@">
<lib name="pythia8"/>
<lib name="pythia8tohepmc"/>
<client>
<environment name="PYTHIA8_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$PYTHIA8_BASE/lib"/>
<environment name="INCLUDE" default="$PYTHIA8_BASE/include"/>
</client>
<runtime name="PYTHIA8DATA" value="$PYTHIA8_BASE/xmldoc"/>
<runtime name="PYTHIA8DATA" value="$PYTHIA8_BASE/share/Pythia8/xmldoc"/>
<use name="hepmc"/>
<use name="lhapdf"/>
</tool>
Expand Down
13 changes: 7 additions & 6 deletions pythia8.spec
@@ -1,8 +1,9 @@
### RPM external pythia8 185
### RPM external pythia8 200pre1

Requires: hepmc
Requires: hepmc lhapdf

Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}/%{n}-%{realversion}-src.tgz
#Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}/%{n}-%{realversion}-src.tgz
Source: https://cms-project-generators.web.cern.ch/cms-project-generators/%{n}-%{realversion}-src.tgz

%if "%{?cms_cxxflags:set}" != "set"
%define cms_cxxflags -std=c++0x
Expand All @@ -12,9 +13,9 @@ Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}/%{n}-
%setup -q -n %{n}/%{realversion}

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

%build
make
Expand Down

0 comments on commit 2c76736

Please sign in to comment.