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 |
5 |
< |
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
6 |
< |
%if "%cpu" != "amd64" |
7 |
< |
%define libsuffix %{nil} |
8 |
< |
%else |
9 |
< |
%define libsuffix ()(64bit) |
10 |
< |
%endif |
1 |
> |
### RPM external dcap 2.47.5.0 |
2 |
> |
#get dcap from dcache svn repo now... |
3 |
> |
Source: http://cmsrep.cern.ch/cmssw/download/dcap/dcap.tgz |
4 |
> |
#Source: svn://svn.dcache.org/dCache/tags/dcap-2.47.5-0?scheme=http&module=dcap&output=/dcap.tgz |
5 |
> |
Patch0: dcap-macosx-workarounds |
6 |
> |
|
7 |
> |
# Unfortunately I could not find any rpm version invariant way to do and "if |
8 |
> |
# else if", so I ended up hardcoding all the possible variants. |
9 |
> |
# FIXME: move to multiple ifs once rpm 4.4.2.2 is deprecated. |
10 |
> |
Provides: libdcap.so |
11 |
> |
Provides: libpdcap.so |
12 |
> |
Provides: libdcap.so()(64bit) |
13 |
> |
Provides: libpdcap.so()(64bit) |
14 |
> |
Provides: libdcap.dylib |
15 |
> |
Provides: libpdcap.dylib |
16 |
|
|
12 |
– |
Provides: libdcap.so%{libsuffix} |
13 |
– |
Provides: libpdcap.so%{libsuffix} |
17 |
|
%prep |
18 |
< |
%setup -n %n-%realversion |
18 |
> |
%setup -n dcap |
19 |
> |
# THIS PATCH IS COMPLETELY UNTESTED AND HAS THE SOLE |
20 |
> |
# PURPOSE OF BUILDING STUFF ON MAC, REGARDLESS WHETHER |
21 |
> |
# IT WORKS OR NOT. |
22 |
> |
case %cmsos in |
23 |
> |
osx*) |
24 |
|
%patch0 -p1 |
25 |
+ |
;; |
26 |
+ |
esac |
27 |
+ |
|
28 |
|
%build |
29 |
< |
make BIN_PATH=%i %makeprocesses |
29 |
> |
sh bootstrap.sh |
30 |
> |
./configure --prefix %i |
31 |
> |
make -C src %makeprocesses |
32 |
|
%install |
33 |
< |
make BIN_PATH=%i install |
21 |
< |
# |
33 |
> |
make -C src install |