ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX.spec
Revision: 1.63
Committed: Tue Feb 12 10:29:21 2008 UTC (17 years, 2 months ago) by egeland
Branch: MAIN
Changes since 1.62: +0 -4 lines
Log Message:
reduce dependencies!

File Contents

# User Rev Content
1 egeland 1.61 ### RPM cms PHEDEX PHEDEX_2_6_0
2 egeland 1.60 ###
3 wildish 1.56 ## INITENV +PATH PERL5LIB %i/perl_lib
4 eulisse 1.1 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 egeland 1.61 Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser python
6 egeland 1.60 Requires: dbs-client p5-monalisa-apmon
7 rehn 1.42
8 egeland 1.62 # Provided by system perl
9     Provides: perl(HTML::Entities)
10    
11 eulisse 1.1 %prep
12     %setup -n %n
13 rehn 1.39 rm -f Custom/Template/Config.Micro
14 rehn 1.37 rm -f Custom/Template/ConfigPart.CERN*
15     rm -f Custom/Template/ConfigPart.Management
16 rehn 1.38 rm -rf Schema
17 rehn 1.34 rm -rf Toolkit/Infrastructure
18     rm -rf Toolkit/Monitoring
19     rm -rf Toolkit/Workflow
20 rehn 1.37 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 rehn 1.33
36 eulisse 1.1 %build
37 lat 1.4
38 eulisse 1.1 %install
39 lat 1.4 mkdir -p %i/etc
40 lat 1.2 tar -cf - * | (cd %i && tar -xf -)
41 lat 1.4
42 egeland 1.61 # Copy dependencies to dependencies-setup.sh
43 lat 1.4 mkdir -p %i/etc/profile.d
44     for x in %pkgreqs; do
45 lat 1.6 case $x in /* ) continue ;; esac
46 lat 1.4 p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
47 egeland 1.61 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 lat 1.4 done
50    
51 egeland 1.61 # 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 lat 1.4 %post
56     %{relocateConfig}etc/profile.d/env.sh
57     %{relocateConfig}etc/profile.d/env.csh
58 egeland 1.61 %{relocateConfig}etc/profile.d/dependencies-setup.sh
59     %{relocateConfig}etc/profile.d/dependencies-setup.csh