ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX.spec
Revision: 1.65
Committed: Tue Feb 12 14:09:25 2008 UTC (17 years, 2 months ago) by egeland
Branch: MAIN
CVS Tags: forPHEDEX260
Changes since 1.64: +1 -1 lines
Log Message:
bump revision

File Contents

# Content
1 ### RPM cms PHEDEX PHEDEX_2_6_0
2 #####
3 ## INITENV +PATH PERL5LIB %i/perl_lib
4 Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=%n&export=%n&&tag=-r%{v}&output=/%n.tar.gz
5 Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser python
6 Requires: dbs-client p5-monalisa-apmon
7
8 # Provided by system perl
9 Provides: perl(HTML::Entities)
10
11 %prep
12 %setup -n %n
13 rm -f Custom/Template/Config.Micro
14 rm -f Custom/Template/ConfigPart.CERN*
15 rm -f Custom/Template/ConfigPart.Management
16 rm -rf Schema
17 rm -rf Toolkit/Infrastructure
18 rm -rf Toolkit/Monitoring
19 rm -rf Toolkit/Workflow
20 rm -f Utilities/CMSSWMigrate
21 rm -f Utilities/DBDump
22 rm -f Utilities/DBLoad
23 rm -f Utilities/DBSCheck
24 rm -f Utilities/GrepSites
25 rm -f Utilities/FileDeleteTMDB
26 rm -f Utilities/LinkNew
27 rm -f Utilities/LinkRemove
28 rm -f Utilities/MakeDailyReport
29 rm -f Utilities/MakeDailyStats
30 rm -f Utilities/netmon
31 rm -f Utilities/NodeNew
32 rm -f Utilities/NodeRemove
33 rm -f Utilities/RunTest
34 rm -f Utilities/WordMunger
35
36 %build
37
38 %install
39 mkdir -p %i/etc
40 tar -cf - * | (cd %i && tar -xf -)
41
42 # Copy dependencies to dependencies-setup.sh
43 mkdir -p %i/etc/profile.d
44 for x in %pkgreqs; do
45 case $x in /* ) continue ;; esac
46 p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
47 echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
48 echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
49 done
50
51 # Make "env.sh" = "init.sh" for legacy configs
52 echo ". %i/etc/profile.d/init.sh" > %i/etc/profile.d/env.sh
53 echo "source %i/etc/profile.d/init.csh" > %i/etc/profile.d/env.csh
54
55 %post
56 %{relocateConfig}etc/profile.d/env.sh
57 %{relocateConfig}etc/profile.d/env.csh
58 %{relocateConfig}etc/profile.d/dependencies-setup.sh
59 %{relocateConfig}etc/profile.d/dependencies-setup.csh