ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dcap.spec
(Generate patch)

Comparing COMP/CMSDIST/dcap.spec (file contents):
Revision 1.1 by eulisse, Fri Mar 31 13:54:59 2006 UTC vs.
Revision 1.13 by elmer, Thu Dec 27 20:28:33 2007 UTC

# Line 1 | Line 1
1 < ### RPM external dcap 1.2.35
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-%v.tar.gz
4 < Patch: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%n-%v.patch
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
11 >
12 > Provides: libdcap.so%{libsuffix}
13 > Provides: libpdcap.so%{libsuffix}
14   %prep
15 < %setup -n %n-%v
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
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines