1 |
< |
### RPM external dcap 1.2.35-XXXX |
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 |
1 |
> |
### RPM external dcap 1.7.0.48 |
2 |
> |
#get dcap from dcache svn repo now... |
3 |
> |
%define svnTag %(echo %realversion | tr '.' '-') |
4 |
> |
Source: svn://svn.dcache.org/dCache/tags/production-%svnTag/modules/dcap?scheme=http&module=dcap&output=/dcap.tgz |
5 |
> |
|
6 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
7 |
|
%if "%cpu" != "amd64" |
8 |
|
%define libsuffix %{nil} |
13 |
|
Provides: libdcap.so%{libsuffix} |
14 |
|
Provides: libpdcap.so%{libsuffix} |
15 |
|
%prep |
16 |
< |
%setup -n %n-%realversion |
17 |
< |
%patch0 -p1 |
16 |
> |
%setup -n dcap |
17 |
> |
|
18 |
|
%build |
19 |
< |
make BIN_PATH=%i %makeprocesses |
19 |
> |
chmod +x mkmapfile.sh |
20 |
> |
chmod +x mkdirs.sh |
21 |
> |
chmod +x version.sh |
22 |
> |
LD=gcc make BIN_PATH=%i %makeprocesses |
23 |
|
%install |
24 |
< |
make BIN_PATH=%i install |
25 |
< |
# |
24 |
> |
LD=gcc make BIN_PATH=%i install |
25 |
> |
|
26 |
> |
# SCRAM ToolBox toolfile |
27 |
> |
mkdir -p %i/etc/scram.d |
28 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
29 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
30 |
> |
<Tool name=%n version=%v> |
31 |
> |
<lib name=dcap> |
32 |
> |
<Client> |
33 |
> |
<Environment name=DCAP_BASE default="%i"></Environment> |
34 |
> |
<Environment name=LIBDIR default="$DCAP_BASE/lib"></Environment> |
35 |
> |
<Environment name=INCLUDE default="$DCAP_BASE/include"></Environment> |
36 |
> |
</Client> |
37 |
> |
</Tool> |
38 |
> |
EOF_TOOLFILE |
39 |
> |
|
40 |
> |
%post |
41 |
> |
%{relocateConfig}etc/scram.d/%n |