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

Comparing COMP/CMSDIST/dpm.spec (file contents):
Revision 1.3 by elmer, Fri Sep 21 21:07:01 2007 UTC vs.
Revision 1.13 by dlange, Tue Feb 26 17:17:02 2008 UTC

# Line 1 | Line 1
1 < ### RPM external dpm 1.6.5-5-CMS3q
2 < ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac
1 > ### RPM external dpm 1.6.5.5-CMS19
2 > ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) false ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac
3  
4 < %define baseVersion %realversion
5 < %define patchLevel  %(echo %v | cut -d- -f2)
4 > %define baseVersion %(echo %v | cut -d- -f1 | cut -d. -f1,2,3)
5 > %define patchLevel  %(echo %v | cut -d- -f1 | cut -d. -f4)
6   %define downloadv %{realversion}-%{patchLevel}
7 < %define dpmarch     %(echo %cmsplatf | cut -d_ -f1)
7 > %define dpmarch     %(echo %cmsplatf | cut -d_ -f1 | sed 's/onl//')
8  
9   Source: http://eticssoft.web.cern.ch/eticssoft/repository/org.glite/LCG-DM/%{realversion}/src/DPM-%{downloadv}sec.%{dpmarch}.src.rpm
10  
11 + %define cpu %(echo %cmsplatf | cut -d_ -f2)
12 + %if "%cpu" != "amd64"
13 + %define libsuffix %{nil}
14 + %else
15 + %define libsuffix ()(64bit)
16 + %endif
17 + Provides: libdpm.so%{libsuffix}
18 +
19   %prep
20   rm -f %_builddir/DPM-%{realversion}.src.tar.gz
21   rpm2cpio %{_sourcedir}/DPM-%{downloadv}sec.%{dpmarch}.src.rpm | cpio -ivd DPM-%{realversion}.src.tar.gz
# Line 19 | Line 27 | cp h/patchlevel.in h/patchlevel.h
27   perl -pi -e "s!__PATCHLEVEL__!%patchLevel!;s!__BASEVERSION__!\"%baseVersion\"!;s!__TIMESTAMP__!%(date +%%s)!" h/patchlevel.h
28   perl -pi -e 's|ld\s+\$\(|ld -m elf_i386 \$\(|' shlib/Imakefile
29  
30 < for this in BuildDLI BuildDPMServer BuildNameServerClient BuildNameServerDaemon BuildNameServerLibrary BuildRfioServer BuildSecurity \
30 > for this in BuildDLI BuildDPMServer BuildNameServerDaemon BuildNameServerLibrary BuildRfioServer \
31              BuildSRMv1Server BuildSRMv2Server BuildSRMv2_2Server BuildTest ; do
32      perl -pi -e "s/\s+$this\s+YES/ $this\tNO/g" config/site.def
33   done
# Line 27 | Line 35 | done
35   for this in BuildDPMClient BuildInterfaces BuildRfioClient; do
36      perl -pi -e "s/\s+$this\s+NO/ $this\tYES/g" config/site.def
37   done
38 < for this in Accounting HasNroff UseCupv UseGSI UseKRB4 UseKRB5 UseMySQL UseOracle UseVirtualIds UseVOMS ; do
38 > for this in Accounting HasNroff UseCupv UseKRB4 UseKRB5 UseMySQL UseOracle UseVirtualIds UseVOMS ; do
39      perl -pi -e "s/\s+$this\s+YES/ $this\tNO/g" config/site.def
40   done
41   for this in SecMakeStaticLibrary BuildSecureRfio BuildSecureCns BuildSecureDpm ; do

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines