Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2114 from smuzaffar/star-light
new external starlight added
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |