Skip to content

Commit

Permalink
Merge pull request #8198 from mseidel42/RivetUpdate_12_6
Browse files Browse the repository at this point in the history
Rivet 3.1.7 & YODA 1.9.7, disentagle from Sherpa
  • Loading branch information
smuzaffar authored Nov 27, 2022
2 parents 94de1ad + 611fd56 commit 2e174f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions rivet.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external rivet 3.1.6
### RPM external rivet 3.1.7
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}
## OLD GENSER Source: http://cern.ch/service-spi/external/MCGenerators/distribution/rivet/rivet-%{realversion}-src.tgz
Source: git+https://gitlab.com/hepcedar/rivet.git?obj=master/%{n}-%{realversion}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
Expand Down Expand Up @@ -61,4 +61,3 @@ sed -i -e 's|^#!.*python.*|#!/usr/bin/env python3|' %{i}/bin/*
%{relocateConfig}bin/rivet-config
%{relocateConfig}bin/rivet-buildplugin
%{relocateConfig}bin/rivet-build
%{relocateConfig}lib/python*/site-packages/rivet-*egg-info/SOURCES.txt
3 changes: 1 addition & 2 deletions sherpa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%define branch cms/v%realversion
%define github_user cms-externals
Source: http://www.hepforge.org/archive/sherpa/SHERPA-MC-%{realversion}.tar.gz
Requires: hepmc lhapdf blackhat sqlite python3 fastjet openmpi rivet
Requires: hepmc lhapdf blackhat sqlite python3 fastjet openmpi
BuildRequires: mcfm swig autotools
Patch0: sherpa-2.2.10-hepmcshort

Expand Down Expand Up @@ -34,7 +34,6 @@ export PYTHON=$(which python3)
./configure --prefix=%i --enable-analysis --disable-silent-rules \
--enable-fastjet=$FASTJET_ROOT \
--enable-hepmc2=$HEPMC_ROOT \
--enable-rivet=$RIVET_ROOT \
--enable-lhapdf=$LHAPDF_ROOT \
--enable-blackhat=$BLACKHAT_ROOT \
--enable-pyext \
Expand Down
6 changes: 1 addition & 5 deletions yoda.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external yoda 1.9.6
### RPM external yoda 1.9.7
## INITENV +PATH PYTHON3PATH %i/${PYTHON3_LIB_SITE_PACKAGES}

Source: git+https://gitlab.com/hepcedar/yoda.git?obj=main/%{n}-%{realversion}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
Expand All @@ -13,9 +13,6 @@ autoreconf -fiv

%build

sed -i -e "s|lPyROOT|lcppyyX.X|" ./pyext/setup.py.in

sed -i -e "s|lcppyy...|lcppyy$(echo %{cms_python3_major_minor_version} | tr . _)|" ./pyext/setup.py.in
PYTHON=$(which python3) ./configure --prefix=%i --enable-root
sed -i "s|env python|env python3|" bin/*
make %{makeprocesses} all
Expand All @@ -25,4 +22,3 @@ make install

%post
%{relocateConfig}bin/yoda-config
%{relocateConfig}lib/python*/site-packages/yoda*egg-info/SOURCES.txt

0 comments on commit 2e174f0

Please sign in to comment.