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.6 by elmer, Tue May 1 11:31:21 2007 UTC vs.
Revision 1.17 by muzaffar, Tue Jul 6 08:34:43 2010 UTC

# Line 1 | Line 1
1 < ### RPM external dcap 1.2.35
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
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}
# Line 12 | Line 13 | Patch: http://service-spi.web.cern.ch/se
13   Provides: libdcap.so%{libsuffix}
14   Provides: libpdcap.so%{libsuffix}
15   %prep
16 < %setup -n %n-%v
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.xml
29 >  <tool name="%n" version="%v">
30 >    <lib name="dcap"/>
31 >    <client>
32 >      <environment name="DCAP_BASE" default="%i"/>
33 >      <environment name="LIBDIR" default="$DCAP_BASE/lib"/>
34 >      <environment name="INCLUDE" default="$DCAP_BASE/include"/>
35 >    </client>
36 >  </tool>
37 > EOF_TOOLFILE
38 >
39 > %post
40 > %{relocateConfig}etc/scram.d/%n.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines