Skip to content

Commit

Permalink
Merge pull request #2114 from smuzaffar/star-light
Browse files Browse the repository at this point in the history
new external starlight added
  • Loading branch information
cmsbuild committed Feb 1, 2016
2 parents 174b07d + f1298bb commit a700bd5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -8,6 +8,7 @@
%define isamd64 %(case %{cmsplatf} in (*amd64*) echo 1 ;; (*) echo 0 ;; esac)
%define isslc %(case %{cmsplatf} in (slc*) echo 1 ;; (*) echo 0 ;; esac)

Requires: starlight-toolfile
Requires: alpgen-toolfile
Requires: boost-toolfile
Requires: bz2lib-toolfile
Expand Down
25 changes: 25 additions & 0 deletions starlight-toolfile.spec
@@ -0,0 +1,25 @@
### RPM external starlight-toolfile 1.0
Requires: starlight

%prep

%build

%install
mkdir -p %{i}/etc/scram.d
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/starlight.xml
<tool name="starlight" version="@TOOL_VERSION@">
<lib name="Starlib"/>
<client>
<environment name="STARLIGHT_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$STARLIGHT_BASE/lib"/>
<environment name="INCLUDE" default="$STARLIGHT_BASE/include"/>
</client>
<runtime name="PATH" value="$STARLIGHT_BASE/bin" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<use name="root_cxxdefaults"/>
<use name="clhep"/>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
32 changes: 32 additions & 0 deletions starlight.spec
@@ -0,0 +1,32 @@
### RPM external starlight r193
Requires: clhep

%define branch cms/%{realversion}
%define github_user cms-externals
%define tag 3c3e91b8fe2c6a265f3ace4bc08fac4184d2490b
Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz

BuildRequires: cmake

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

%build
rm -rf ../build
mkdir ../build
cd ../build

export CLHEP_PARAM_PATH=${CLHEP_ROOT}

cmake ../%{n}-%{realversion} \
-DCMAKE_INSTALL_PREFIX:PATH="%{i}" \
-DCMAKE_BUILD_TYPE=Realease \
-DENABLE_CLHEP=ON

make %{makeprocesses} VERBOSE=1

%install
cd ../build
make %{makeprocesses} install VERBOSE=1

rm -rf %{i}/lib/archive

0 comments on commit a700bd5

Please sign in to comment.