forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit-toolfile.spec
35 lines (29 loc) · 897 Bytes
/
git-toolfile.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
### RPM external git-toolfile 1.0
Requires: git
%prep
%build
%install
case "%{cmsplatf}" in
slc6*|fc*)
PERL5LIB_PATH=/share/perl5
;;
*)
PERL5LIB_PATH=/lib/perl5/site_perl
;;
esac
export PERL5LIB_PATH
mkdir -p %{i}/etc/scram.d
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/git.xml
<tool name="git" version="@TOOL_VERSION@">
<info url="http://git-scm.com"/>
<client>
<environment name="GIT_BASE" default="@TOOL_ROOT@"/>
</client>
<runtime name="PATH" value="$GIT_BASE/bin" type="path"/>
<runtime name="PATH" value="$GIT_BASE/libexec/git-core" type="path"/>
<runtime name="GIT_TEMPLATE_DIR" value="$GIT_BASE/share/git-core/templates" type="path"/>
<runtime name="GIT_SSL_CAINFO" value="$GIT_BASE/share/ssl/certs/ca-bundle.crt" type="path"/>
<runtime name="PERL5LIB" value="$GIT_BASE@PERL5LIB_PATH@" type="path"/>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post