1 |
< |
### RPM configuration gsl-toolfile 1.5 |
2 |
< |
## IMPORT scramtoolbox-common |
3 |
< |
|
4 |
< |
Source: none |
1 |
> |
### RPM external gsl-toolfile 1.0 |
2 |
|
Requires: gsl |
3 |
+ |
%prep |
4 |
|
|
5 |
|
%build |
8 |
– |
%install |
9 |
– |
%define toolfilePath %toolBoxDir/General |
10 |
– |
mkdir -p %toolConfDir %toolfilePath |
6 |
|
|
7 |
< |
cat << \EOF_gsl_TOOLCONF_FRAGMENT > %toolConfDir/gsl.conf |
13 |
< |
TOOL:gsl |
14 |
< |
+GSL_BASE:${GSL_ROOT} |
15 |
< |
+PATH:${GSL_ROOT}/bin |
16 |
< |
+LIBDIR:${GSL_ROOT}/lib |
17 |
< |
+INCLUDE:${GSL_ROOT}/include |
18 |
< |
EOF_gsl_TOOLCONF_FRAGMENT |
7 |
> |
%install |
8 |
|
|
9 |
< |
cat << \EOF_gsl_TOOLFILE > %toolfilePath/gsl |
10 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
11 |
< |
<tool name=%toolname version=%v> |
12 |
< |
<info url="http://www.gnu.org/software/gsl/gsl.html"></info> |
13 |
< |
<lib name=gsl> |
14 |
< |
<lib name=gslcblas> |
15 |
< |
<client> |
16 |
< |
<environment name=GSL_BASE> |
17 |
< |
The top of the GNU Scientific Library distribution. |
18 |
< |
</environment> |
19 |
< |
<environment name=LIBDIR default="$GSL_BASE/lib" type=lib></environment> |
31 |
< |
<environment name=INCLUDE default="$GSL_BASE/include"></environment> |
32 |
< |
</client> |
33 |
< |
<environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment> |
34 |
< |
<architecture name=win> |
35 |
< |
<environment name=PATH value="$LIBDIR" type=Runtime_path></environment> |
36 |
< |
</architecture> |
9 |
> |
mkdir -p %i/etc/scram.d |
10 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/gsl.xml |
11 |
> |
<tool name="gsl" version="@TOOL_VERSION@"> |
12 |
> |
<info url="http://www.gnu.org/software/gsl/gsl.html"/> |
13 |
> |
<lib name="gsl"/> |
14 |
> |
<lib name="gslcblas"/> |
15 |
> |
<client> |
16 |
> |
<environment name="GSL_BASE" default="@TOOL_ROOT@"/> |
17 |
> |
<environment name="LIBDIR" default="$GSL_BASE/lib"/> |
18 |
> |
<environment name="INCLUDE" default="$GSL_BASE/include"/> |
19 |
> |
</client> |
20 |
|
</tool> |
21 |
+ |
EOF_TOOLFILE |
22 |
|
|
23 |
< |
EOF_gsl_TOOLFILE |
40 |
< |
%files |
41 |
< |
%toolfilePath/gsl |
42 |
< |
%toolConfDir/gsl.conf |
23 |
> |
## IMPORT scram-tools-post |