ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dpm.spec
Revision: 1.12
Committed: Thu Dec 27 20:38:53 2007 UTC (17 years, 4 months ago) by elmer
Branch: MAIN
CVS Tags: dl080226, dl080225intbld, ge20080225-nightlies, ge20080225-fixed-bootstrap, dl080224t3, dl080224t2, dl080224, dl080223, dl080222, dl080221, pe20080221a-ports-412, pe20080221a-ports, dl080220, pe20080220a-ports-412, pe20080220a-ports, sm080219, ge20080219, dl080218, COMP_NIGHTLY_INIT_V1, SiteDB_SM_Nightly_150208, ge20080215, pe20080214a-ports-for190p9-412, pe20080214a-ports-for190p9, pe20080211a-ports-for190p9-412, pe20080211a-ports-for190p9, COMP_NIGHTLY_20080211, pe20080207c-ports-for190p8-412, pe20080207c-ports-for190p8, pe20080207b-ports-lcg54pre2-412, pe20080207b-ports-lcg54pre2, pe20080207a-ports-lcg54pre2-412, pe20080207a-ports-lcg54pre2, pe20080206b-ports-lcg54pre2-412, pe20080206b-ports-lcg54pre2, pe20080206a-ports-lcg54pre2-412, pe20080206a-ports-lcg54pre2, pe20080205c-ports-lcg54pre2-412, pe20080205c-ports-lcg54pre2, pe20080205b-ports-lcg54pre2-412, pe20080205b-ports-lcg54pre2, pe20080205a-ports-lcg54pre2-412, pe20080205a-ports-lcg54pre2, pe20080204a-ports-lcg54pre2-412, pe20080204a-ports-lcg54pre2, pe20080127a-ports-lcg54pre2-412, pe20080127a-ports-lcg54pre2, pe20080125a-ports-lcg54pre2-412, pe20080125a-ports-lcg54pre2, pe20080125a-ports-lcg54-412, pe20080125a-ports-lcg54, pe20080123a-ports-412, pe20080123a-ports, pe20080120a-ports-412, pe20080120a-ports, pe20080119a-ports-412, pe20080119a-ports, pe20080118g-ports-412, pe20080118g-ports, pe20080118f-ports-412, pe20080118f-ports, nr_pe20080118e-ports-onl, pe20080118e-ports-412, pe20080118e-ports, pe20080118d-ports-412, pe20080118d-ports, pe20080118c-ports, pe20080118b-ports, pe20080118a-ports, pe20080111b-ports, pe20080111a-ports, pe20080110b-ports, pe20080110a-ports, pe20080109a-ports, pe20080108c-ports, ge20080108-wt, pe20080108b-ports, pe20080108a-ports, pe20080105a-ports, pe20080104a-ports, pe20080103a-ports-gcc422, pe20080103a-ports, pe20070103a-ports, pe20080101a-ports, pe20071128b-ports, pe20071128a-ports, pe20071127b-ports
Changes since 1.11: +1 -1 lines
Log Message:
Update to 1.6.5-5-CMS19 (includes also Natalia's fix to dpmarch for the
online builds)

File Contents

# User Rev Content
1 elmer 1.12 ### RPM external dpm 1.6.5-5-CMS19
2 ratnik 1.11 ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) false ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac
3 muzaffar 1.1
4     %define baseVersion %realversion
5 muzaffar 1.2 %define patchLevel %(echo %v | cut -d- -f2)
6     %define downloadv %{realversion}-%{patchLevel}
7 ratnik 1.10 %define dpmarch %(echo %cmsplatf | cut -d_ -f1 | sed 's/onl//')
8 muzaffar 1.1
9 muzaffar 1.2 Source: http://eticssoft.web.cern.ch/eticssoft/repository/org.glite/LCG-DM/%{realversion}/src/DPM-%{downloadv}sec.%{dpmarch}.src.rpm
10 muzaffar 1.1
11 elmer 1.5 %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 muzaffar 1.1 %prep
20 muzaffar 1.2 rm -f %_builddir/DPM-%{realversion}.src.tar.gz
21     rpm2cpio %{_sourcedir}/DPM-%{downloadv}sec.%{dpmarch}.src.rpm | cpio -ivd DPM-%{realversion}.src.tar.gz
22     cd %_builddir ; rm -rf DPM-%{realversion}; tar -xzvf DPM-%{realversion}.src.tar.gz
23    
24 muzaffar 1.1 %build
25 muzaffar 1.2 cd DPM-%{realversion}
26 muzaffar 1.1 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 elmer 1.4 for this in BuildDLI BuildDPMServer BuildNameServerDaemon BuildNameServerLibrary BuildRfioServer \
31 muzaffar 1.1 BuildSRMv1Server BuildSRMv2Server BuildSRMv2_2Server BuildTest ; do
32     perl -pi -e "s/\s+$this\s+YES/ $this\tNO/g" config/site.def
33     done
34    
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 elmer 1.4 for this in Accounting HasNroff UseCupv UseKRB4 UseKRB5 UseMySQL UseOracle UseVirtualIds UseVOMS ; do
39 muzaffar 1.1 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
42     perl -pi -e "s/\s+$this\s+YES/ $this\tNO/g" config/site.def
43     done
44    
45     mkdir -p %i/lib %i/include/dpm
46    
47     ./configure
48     cd shlib; make
49    
50     %install
51 muzaffar 1.2 cd DPM-%{realversion}
52 muzaffar 1.1 cp ./shlib/lib%n.so %i/lib/lib%n.so.%realversion
53     cp ./h/*.h %i/include/dpm
54     ln -s lib%n.so.%realversion %i/lib/lib%n.so
55    
56     # SCRAM ToolBox toolfile
57     mkdir -p %i/etc/scram.d
58     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
59     <doc type=BuildSystem::ToolDoc version=1.0>
60     <Tool name=%n version=%v>
61     <lib name=dpm>
62     <Client>
63     <Environment name=DPM_BASE default="%i"></Environment>
64     <Environment name=INCLUDE default="$DPM_BASE/include"></Environment>
65     <Environment name=LIBDIR default="$DPM_BASE/lib"></Environment>
66     </Client>
67     </Tool>
68     EOF_TOOLFILE
69    
70     %post
71     %{relocateConfig}etc/scram.d/%n