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 |
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 |
< |
rm -rf %n-%realversion |
17 |
< |
%setup -n %n-%realversion |
17 |
< |
%patch0 -p1 |
16 |
> |
%setup -n dcap |
17 |
> |
|
18 |
|
%build |
19 |
< |
rm -rf %i |
20 |
< |
mkdir -p %i |
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 |
|
LD=gcc make BIN_PATH=%i install |