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.22 by eulisse, Thu Sep 23 11:50:10 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 > Patch0: dcap-macosx-workarounds
6 >
7 > %define closingbrace )
8 > %define isosx %(case %cmsos in osx*%closingbrace echo true;; *%closingbrace echo false;; esac)
9 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
10 >
11 > # Determine the soname and the suffix for the libraries.
12 > # We do it this way because rpm does not support nested
13 > # ifs.
14 > %if "%{isosx}-%{cpu}" == "true-amd64"
15 > %define soname dylib
16 > %define libsuffix %{nil}
17 > %endif
18 >
19 > %if "%{isosx}-%{cpu}" == "true-ia32"
20 > %define soname dylib
21 > %define libsuffix %{nil}
22 > %endif
23 >
24 > %if "%{isosx}-${cpu}" == "false-amd64"
25 > %define soname so
26 > %define libsuffix ()(64bit)
27 > %endif
28 >
29 > %if "%{isosx}-${cpu}" == "false-ia32"
30 > %define soname so
31 > %define libsuffix %{nil}
32 > %endif
33 >
34 > Provides: libdcap.%{soname}%{libsuffix}
35 > Provides: libpdcap.%{soname}%{libsuffix}
36 >
37   %prep
38 < %setup -n %n-%v
38 > %setup -n dcap
39 > # THIS PATCH IS COMPLETELY UNTESTED AND HAS THE SOLE
40 > # PURPOSE OF BUILDING STUFF ON MAC, REGARDLESS WHETHER
41 > # IT WORKS OR NOT.
42 > case %cmsos in
43 > osx*)
44   %patch0 -p1
45 +  ;;
46 + esac
47 +
48   %build
49 < make BIN_PATH=%i %makeprocesses
49 > chmod +x mkmapfile.sh
50 > chmod +x mkdirs.sh
51 > chmod +x version.sh
52 > LD=gcc make BIN_PATH=%i SONAME=%soname %makeprocesses
53   %install
54 < make BIN_PATH=%i
54 > LD=gcc make BIN_PATH=%i SONAME=%soname install

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines