Skip to content

Commit

Permalink
Add mkFit as an external
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Aug 13, 2019
1 parent 2327f18 commit bf6d317
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
24 changes: 24 additions & 0 deletions mkfit-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### RPM external mkfit-toolfile 2.0.0
Requires: mkfit

%prep

%build

%install

mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/mkfit.xml
<tool name="mkfit" version="@TOOL_VERSION@">
<lib name="MicCore"/>
<lib name="MkFit"/>
<client>
<environment name="MKFITBASE" default="@TOOL_ROOT@"/>
<environment name="INCLUDE" default="$MKFITBASE/include"/>
<environment name="LIBDIR" default="$MKFITBASE/lib"/>
</client>
<runtime name="MKFIT_BASE" value="$MKFITBASE"/>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
20 changes: 20 additions & 0 deletions mkfit.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### RPM external mkfit 2.0.0
%define tag V2.0.0-1+pr237
%define branch devel
%define github_user trackreco

Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
Requires: tbb

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

%build
TBB_PREFIX=$TBB_ROOT make

%install
mkdir %{i}/include %{i}/include/mkFit %{i}/Geoms
cp -a *.h %{i}/include
cp -a mkFit/*.h %{i}/include/mkFit
cp -a Geoms/*.so %{i}/Geoms
cp -ar lib %{i}/lib

0 comments on commit bf6d317

Please sign in to comment.