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

Comparing COMP/CMSDIST/PHEDEX-admin.spec (file contents):
Revision 1.23 by metson, Wed Sep 26 17:57:23 2007 UTC vs.
Revision 1.37 by egeland, Wed Feb 13 08:44:31 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms PHEDEX-admin PHEDEX_2_5_3_6
2 < ##
1 > ### RPM cms PHEDEX-admin PHEDEX_2_6_1
2 > #######
3 > ## INITENV +PATH PERL5LIB %i/perl_lib
4   %define downloadn %(echo %n | cut -f1 -d-)
5   Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=%{downloadn}&export=%{downloadn}&&tag=-r%{v}&output=/%{downloadn}.tar.gz
6 < Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser srmcp python
7 < Requires: py2-cx-oracle
7 < Requires: dls dbs-client
8 < Provides: perl(UtilsMisc)
6 > Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser python
7 > Requires: dls-client dbs-client p5-monalisa-apmon
8  
9 < # Extra requires so we get everything necessary for env.{,c}sh.
10 < Requires: zlib expat openssl bz2lib py2-pyxml py2-zsi py2-mysqldb mysql
9 > # Actually, it is p5-xml-parser that requires this, but it doesn't configure itself correctly
10 > # This is so it gets into our dependencies-setup.sh
11 > Requires:  expat
12 >
13 > # Provided by system perl
14 > Provides: perl(HTML::Entities)
15  
16   %prep
17   %setup -n %{downloadn}
15 rm -rf Testbed/T0FeedTest
18  
19   %build
20  
# Line 20 | Line 22 | rm -rf Testbed/T0FeedTest
22   mkdir -p %i/etc
23   tar -cf - * | (cd %i && tar -xf -)
24  
25 + # Copy dependencies to dependencies-setup.sh
26   mkdir -p %i/etc/profile.d
27   for x in %pkgreqs; do
28   case $x in /* ) continue ;; esac
29   p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
30 < echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/env.sh
31 < echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/env.csh
30 > echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
31 > echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
32   done
33  
34 + # Make "env.sh" = "init.sh" for legacy configs
35 + echo ". %i/etc/profile.d/init.sh" > %i/etc/profile.d/env.sh
36 + echo "source %i/etc/profile.d/init.csh" > %i/etc/profile.d/env.csh
37 +
38   %post
39   %{relocateConfig}etc/profile.d/env.sh
40   %{relocateConfig}etc/profile.d/env.csh
41 + %{relocateConfig}etc/profile.d/dependencies-setup.sh
42 + %{relocateConfig}etc/profile.d/dependencies-setup.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines