Skip to content

Commit

Permalink
changes sherpa spec files for pyext , scons and swig to work
Browse files Browse the repository at this point in the history
  • Loading branch information
iahmad-khan committed Jun 27, 2016
1 parent 99435b1 commit 324ab7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sherpa-toolfile.spec
Expand Up @@ -30,6 +30,8 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/sherpa.xml
<use name="fastjet"/>
<use name="sqlite"/>
<use name="openloops"/>
<use name="scons"/>
<use name="swig"/>
</tool>
EOF_TOOLFILE

Expand Down
14 changes: 13 additions & 1 deletion sherpa.spec
Expand Up @@ -3,7 +3,7 @@
%define branch cms/v%realversion
%define github_user cms-externals
Source: git+https://github.com/%github_user/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Requires: hepmc lhapdf blackhat sqlite fastjet openssl
Requires: hepmc lhapdf blackhat sqlite fastjet openssl scons swig
BuildRequires: mcfm

%if "%(case %cmsplatf in (slc*) echo true ;; (*) echo false ;; esac)" == "true"
Expand Down Expand Up @@ -43,6 +43,7 @@ esac
--enable-hepmc2=$HEPMC_ROOT \
--enable-lhapdf=$LHAPDF_ROOT \
--enable-blackhat=$BLACKHAT_ROOT \
--enable-pyext \
${OPENLOOPS_ROOT+--enable-openloops=$OPENLOOPS_ROOT}\
--with-sqlite3=$SQLITE_ROOT \
CXX="%cms_cxx" \
Expand All @@ -53,3 +54,14 @@ make %{makeprocesses}

%install
make install
find %{i}/lib -name '*.la' -delete

%post
%{relocateConfig}lib/python2.7/site-packages/ufo_interface/sconstruct_template
%{relocateConfig}bin/make2scons
%{relocateConfig}share/SHERPA-MC/makelibs
%{relocateConfig}bin/Sherpa-config
%{relocateConfig}bin/Sherpa-generate-model
%{relocateConfig}include/SHERPA-MC/ATOOLS/Org/CXXFLAGS.H


0 comments on commit 324ab7d

Please sign in to comment.