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.9 by eulisse, Thu May 24 08:52:26 2007 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-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
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 < %if "%cpu" != "amd64"
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 < %else
22 > %endif
23 >
24 > %if "%{isosx}-${cpu}" == "false-amd64"
25 > %define soname so
26   %define libsuffix ()(64bit)
27   %endif
28  
29 < Provides: libdcap.so%{libsuffix}
30 < Provides: libpdcap.so%{libsuffix}
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 < rm -rf %n-%realversion
39 < %setup -n %n-%realversion
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 < rm -rf %i
50 < mkdir -p %i
51 < LD=gcc 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 < LD=gcc make BIN_PATH=%i install
54 > LD=gcc make BIN_PATH=%i SONAME=%soname install

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines