ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dpm.spec
Revision: 1.16
Committed: Tue Feb 26 21:10:06 2008 UTC (17 years, 2 months ago) by dlange
Branch: MAIN
CVS Tags: forFrontend-3, webconddb173, condapp173, webconddb172, condapp172, webconddb171, condapp171, webconddb170, condapp170, condapp164b, webconddb164b, webconddb164, conapp164, zx20090506, forPHEDEX-web-services-20090423, forPHEDEX-web-services-20090406, forPHEDEX313a, zx20090224, zx20090219, forPHEDEX313, zx20090217, forPHEDEX-web-services-20090216, zx20090216, forPHEDEX312, zx20090115, zx20090114, WEBTOOLS-APPS_20090113, DBS-APPS_20090109, DBS-APPS_20090108, sw_20090108, WEBTOOLS-APPS_20090108, DBS-APPS_20090106, DBS-APPS_20090105, FMWS_20090103, FMWS_20081224_1, FMWS_20081224, FMWS_20081222_3, FMWS_20081222_2, FMWS_20081222, DBS-APPS_20081218, FMWS_20081212_1, FMWS_20081212, FMWS_20081211, DBS-APPS_20081211, forPHEDEX311, DBS-APPS_20081210, forPHEDEX310, DBS-APPS_20081209, WEBTOOLS-APPS_20081208, forPHEDEX310pre2, DBS-APPS_20081205, forPHEDEX-web-services-20081205, DBS-APPS_20081204, DBS-APPS_200811204, forPHEDEX310pre1, DBS-APPS_20081126_1, DBS-APPS_20081126, DBS-APPS_20081125, ofctest, DBS-APPS_20081119, DBS-APPS_20081118, DBS-APPS_20081117, DBS-APPS_20081114_1, DBS-APPS_20081114, DBS-APPS_20081112, DBS-APPS_20081111_1, DBS-APPS_20081110_2, DBS-APPS_20081110_1, WEBTOOLS-APPS_20081110, DBS-APPS_20081110, WEBTOOLS-APPS_20081107_1, WEBTOOLS-APPS_20081107, DBS-APPS_20081107, DBS-APPS_20081105, DBS-APPS_20081104, WEBTOOLS-APPS_20081031_2, DBS-APPS_20081031_2, DBS-APPS_20081031_1, WEBTOOLS-APPS_20081031_1, WEBTOOLS-APPS_20081031, forPHEDEX307, DBS-APPS_20081024, WEBTOOLS-APPS_20081020_1, WEBTOOLS-APPS_20081020, forFrontend-2, WEBTOOLS-APPS_20081016_2, WEBTOOLS-APPS_20081016_1, WEBTOOLS-APPS_20081016, WEBTOOLS-APPS_20081015, WEBTOOLS-APPS_20081013_1, WEBTOOLS-APPS_20081013, WEBTOOLS-APPS_20081009, WEBTOOLS-APPS_20081008_1, WEBTOOLS-APPS_20081008, forPHEDEX-web-services-20081008, forPHEDEX-web-services-20081007, forPHEDEX-web302_test1, forPHEDEX306, forPHEDEX-datasvc120_test1, WEBTOOLS-APPS_20080922, forFrontend-1, WEBTOOLS-APPS_20080917, WEBTOOLS-APPS_20080916, WEBTOOLS-APPS_20080915, forPHEDEX305, DBS-APPS_20080910_1, WEBTOOLS-APPS_20080910_1, WEBTOOLS-APPS_20080910, DBS-APPS_20080910, WEBTOOLS-APPS_20080909, DBS-APPS_20080908, WEBTOOLS-APPS_20080903, WEBTOOLS-APPS_20080826, zx20080825, WEBTOOLS-APPS_20080822, WEBTOOLS-APPS_20080821, WEBTOOLS-APPS_20080818_1, WEBTOOLS-APPS_20080818, forPHEDEX-web301, WEBTOOLS-APPS_20080725, WEBTOOLS-APPS_20080724, re-deps-20080722, zx20080718, WEBTOOLS-APPS_20080717, WEBTOOLS-APPS_20080716, WEBTOOLS-APPS_20080715_2, WEBTOOLS-APPS_20080715_1, WEBTOOLS-APPS_20080715, zx20080715, WEBTOOLS-APPS_20080713, forPHEDEX304, zx20080707, forPHEDEX-datasvc110, forPHEDEX-web300, forPHEDEX-web110, re20080627, zx20080625, WEBTOOLS-APPS_20080624, WEBTOOLS-APPS_20080619_1, WEBTOOLS-APPS_20080619, WEBTOOLS-APPS_20080617, zx20080611, WEBTOOLS-APPS_20080611, zx20080610, WEBTOOLS-APPS_20080609_1, WEBTOOLS-APPS_20080609, zx20080609, sw_20080509, WEBTOOLS-APPS_20080527_2, WEBTOOLS-APPS_20080527, WEBTOOLS-APPS_20080523, WEBTOOLS-APPS_20080522, WEBTOOLS-APPS_20080521, WEBTOOLS-APPS_20080520, WEBTOOLS-APPS_20080519, zx20080519, WEBTOOLS-APPS_20080511, zx20080509b, WEBTOOLS-APPS_20080507_1, WEBTOOLS-APPS_20080507, WEBTOOLS-APPS_20080506, WEBTOOLS-APPS_20080501, zx20080430, WEBTOOLS-APPS_20080422, WEBTOOLS-APPS_20080416, zx20080415-comp, webconddb_1_1_1, WEBTOOLS-APPS_20080414, WEBTOOLS-APPS_20080412, WEBTOOLS-APPS_20080411_1, WEBTOOLS-APPS_20080411, WEBTOOLS-APPS_20080410, WEBTOOLS-APPS_20080409_1, WEBTOOLS-APPS_20080409, WEBTOOLS-APPS_20080408_1, WEBTOOLS-APPS_20080408, DBS-APPS_20080407, WEBTOOLS-APPS_20080407, WEBTOOLS-APPS_20080404_2, WEBTOOLS-APPS_20080404_1, WEBTOOLS-APPS_20080404, WEBTOOLS-APPS_20080403_4, WEBTOOLS-APPS_20080403_3, WEBTOOLS-APPS_20080403_2, WEBTOOLS-APPS_20080403_1, WEBTOOLS-APPS_20080403, WEBTOOLS-APPS_20080328, WEBTOOLS-APPS_20080327_1, WEBTOOLS-APPS_20080327, WEBTOOLS-APPS_20080326_6, WEBTOOLS-APPS_20080326_5, WEBTOOLS-APPS_20080326_4, WEBTOOLS-APPS_20080326_3, WEBTOOLS-APPS_20080326_2, WEBTOOLS-APPS_20080326, DBSweb_260308_1, DBSweb_260308, forPHEDEX262_cmsbuild3, sw_20080319, sw20080319, DBSweb_180308_2, DBSweb_180308_1, DBSweb_180308, DBSweb_170308_8, DBSweb_170308_7, DBSweb_170308_6, DBSweb_170308_5, DBSweb_170308_4, DBSweb_170308_3, DBSweb_170308_2, DBSweb_170308, SiteDB_170308, SiteDB_1_2_1-160308_2, SiteDB_1_2_1-160308, SM_150308_DBSDisc_9, SM_150308_DBSDisc_8, SM_150308_DBSDisc_7, SM_150308_DBSDisc_6, SM_150308_DBSDisc_5, SM_150308_DBSDisc_4, SM_150308_DBSDisc_3, SM_150308_DBSDisc_2, SM_150308_DBSDisc_1, SM_150308_DBSDisc, SiteDB_140308, SiteDB_130308, dl080304t4, dl080304t3, dl080304t2, dl080304, ge20080304-comp, dl080229, pe20080229-ports, dl080228t2, dl080228, CMSSW_2_0_0_pre3, SiteDB_080227, dl080227
Branch point for: conddb-branch
Changes since 1.15: +5 -5 lines
Log Message:
again, fixing my dpm change

File Contents

# User Rev Content
1 dlange 1.13 ### 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 dlange 1.13 %define baseVersion %(echo %v | cut -d- -f1 | cut -d. -f1,2,3)
5     %define patchLevel %(echo %v | cut -d- -f1 | cut -d. -f4)
6 dlange 1.14 %define downloadv %{baseVersion}-%{patchLevel}
7 ratnik 1.10 %define dpmarch %(echo %cmsplatf | cut -d_ -f1 | sed 's/onl//')
8 muzaffar 1.1
9 dlange 1.15 Source: http://eticssoft.web.cern.ch/eticssoft/repository/org.glite/LCG-DM/%{baseVersion}/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 dlange 1.16 rm -f %_builddir/DPM-%{downloadv}.src.tar.gz
21     rpm2cpio %{_sourcedir}/DPM-%{downloadv}sec.%{dpmarch}.src.rpm | cpio -ivd DPM-%{baseVersion}.src.tar.gz
22     cd %_builddir ; rm -rf DPM-%{baseVersion}; tar -xzvf DPM-%{baseVersion}.src.tar.gz
23 muzaffar 1.2
24 muzaffar 1.1 %build
25 dlange 1.16 cd DPM-%{baseVersion}
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 dlange 1.16 cd DPM-%{baseVersion}
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