Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mkFit as an external #5150

Merged
merged 2 commits into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
makortel marked this conversation as resolved.
Show resolved Hide resolved

%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