1 |
< |
### RPM external dcap 1.2.35-XXXX |
1 |
> |
### RPM external dcap 1.2.35-CMS19 |
2 |
|
# Fakes the presence of dcap since we are not allowed to distribute it. |
3 |
|
Source: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%n-%realversion.tar.gz |
4 |
|
Patch: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%n-%realversion.patch |
12 |
|
Provides: libdcap.so%{libsuffix} |
13 |
|
Provides: libpdcap.so%{libsuffix} |
14 |
|
%prep |
15 |
+ |
rm -rf %n-%realversion |
16 |
|
%setup -n %n-%realversion |
17 |
|
%patch0 -p1 |
18 |
|
%build |
19 |
< |
make BIN_PATH=%i %makeprocesses |
19 |
> |
rm -rf %i |
20 |
> |
mkdir -p %i |
21 |
> |
LD=gcc make BIN_PATH=%i %makeprocesses |
22 |
|
%install |
23 |
< |
make BIN_PATH=%i install |
24 |
< |
# |
23 |
> |
LD=gcc make BIN_PATH=%i install |
24 |
> |
|
25 |
> |
# SCRAM ToolBox toolfile |
26 |
> |
mkdir -p %i/etc/scram.d |
27 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
28 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
29 |
> |
<Tool name=%n version=%v> |
30 |
> |
<lib name=dcap> |
31 |
> |
<Client> |
32 |
> |
<Environment name=DCAP_BASE default="%i"></Environment> |
33 |
> |
<Environment name=LIBDIR default="$DCAP_BASE/lib"></Environment> |
34 |
> |
<Environment name=INCLUDE default="$DCAP_BASE/include"></Environment> |
35 |
> |
</Client> |
36 |
> |
</Tool> |
37 |
> |
EOF_TOOLFILE |
38 |
> |
|
39 |
> |
%post |
40 |
> |
%{relocateConfig}etc/scram.d/%n |