Skip to content

Commit

Permalink
Merge pull request #2356 from iahmad-khan/sherpa-changes
Browse files Browse the repository at this point in the history
changes sherpa spec files for pyext , scons and swig to work
  • Loading branch information
smuzaffar committed Jun 28, 2016
2 parents f2d49c7 + 6cf3e2d commit e249eed
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -158,6 +158,7 @@ Requires: utm-toolfile
Requires: libffi-toolfile
Requires: CSCTrackFinderEmulation-toolfile
Requires: tinyxml-toolfile
Requires: scons-toolfile

# Only for Linux platform.
%if %islinux
Expand Down
19 changes: 19 additions & 0 deletions scons-toolfile.spec
@@ -0,0 +1,19 @@
### RPM external scons-toolfile 1.0
Requires: scons

%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/scons.xml
<tool name="scons" version="@TOOL_VERSION@">
<info url="http://prdownloads.sourceforge.net/scons/"/>
<client>
<environment name="SCONS_BASE" default="@TOOL_ROOT@"/>
<environment name="BINDIR" default="$SCONS_BASE/bin"/>
</client>
<runtime name="SCONS_LIB_DIR" value="$SCONS_BASE/lib"/>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
14 changes: 12 additions & 2 deletions sherpa.spec
Expand Up @@ -3,8 +3,8 @@
%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
BuildRequires: mcfm
Requires: hepmc lhapdf blackhat sqlite fastjet openssl scons
BuildRequires: mcfm swig

%if "%(case %cmsplatf in (slc*) echo true ;; (*) echo false ;; esac)" == "true"
Requires: openloops
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,12 @@ 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 e249eed

Please sign in to comment.