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

Comparing COMP/CMSDIST/SCRAMV1.spec (file contents):
Revision 1.76 by muzaffar, Mon Feb 25 10:51:29 2008 UTC vs.
Revision 1.93 by muzaffar, Mon Jun 16 07:13:22 2008 UTC

# Line 1 | Line 1
1 < ### RPM lcg SCRAMV1 V1_1_7
1 > ### RPM lcg SCRAMV1 V2_0_2
2   ## INITENV +PATH PATH %instroot/common
3 ## INITENV +PATH PERL5LIB %{i}
4
5 %define perl /usr/bin/env perl
6 %if "%(echo %cmsplatf | cut -f1 -d_ | sed -e 's|\([A-Za-z]*\)[0-9]*|\1|')" == "osx"
7 %define perl /usr/bin/perl
8 %endif
9
10 Requires: p5-template-toolkit p5-uri p5-xml-parser p5-libwww-perl
11 Provides: perl(SCRAM::Helper)
12 Provides: perl(Utilities::AddDir)
13 Provides: perl(Utilities::Architecture)
14 Provides: perl(Utilities::SCRAMUtils)
15 Provides: perl(ActiveDoc::GroupChecker)
16 Provides: perl(ActiveDoc::UserInterface_basic)
17 Provides: perl(ActiveDoc::UserQuery)
18 Provides: perl(Doxygen::Context)
19 Provides: perl(Graph::Graph)
20 Provides: perl(ObjectStore)
21 Provides: perl(Utilities::SVNmodule)
22 Provides: perl(URL::URL_cvsfile)
23 Provides: perl(BuildSystem::Block)
24 Provides: perl(BuildSystem::Build)
25 Provides: perl(BuildSystem::BuildClass)
26 Provides: perl(BuildSystem::BuildSetup)
27 Provides: perl(BuildSystem::DateStampRecord)
28 Provides: perl(BuildSystem::Tool)
29 Provides: perl(BuildSystem::ToolBox)
30 Provides: perl(BuildSystem::ToolDoc)
31 Provides: perl(Utilities::GroupChecker)
3  
4   # This package is somewhat unusual compared to other packages we
5   # build: we install the normally versioned product "SCRAM", but also
# Line 41 | Line 12 | Provides: perl(Utilities::GroupChecker)
12   # check this is really so -- should we use %dir, or the default is
13   # good?)
14   #
44 # We do the install ourselves, as "Installation/install_scram" would
45 # do, but putting the results elsewhere and using our own scram
46 # wrapper instead of using the supplied one -- mainly for easier
47 # override of SCRAM_LOOKUPDB; the wrapper is really rather simple so
48 # there is no point in trying to patch it.
49 #
15   # FIXME: should we have more than one project database and link them
16   # together into one big one?
17  
18   %define cvsrepo  cvs://:pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
19 < %define cvstag %realversion
19 > %define cvstag %v
20   Source0: %{cvsrepo}&tag=-r%{cvstag}&module=SCRAM&output=/source.tar.gz
21  
22   %prep
# Line 65 | Line 30 | fi
30   %build
31   %install
32   tar -cf - . | tar -C %i -xvvf -
33 < mkdir -p %instroot/%cmsplatf/lcg/SCRAMV1/scramdb %i/bin %i/Installation
69 < touch %instroot/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup
33 > mkdir -p %i/src/main %{i}/etc/profile.d
34  
35 < cat Installation/scram.pl.in | sed -e "s|@PERLEXE@|%perl|;s|@SCRAM_HOME@|%i|g;s|@INSTALLDIR@|%i/src|g" > %i/bin/scram
36 < cat Installation/scram.pl.in | sed -e "s|@PERLEXE@|%perl|;s|@SCRAM_HOME@|%i|g;s|@INSTALLDIR@|%i/src|g" > %i/src/main/scram.pl
37 < chmod +x %i/src/main/scram.pl
74 < cat Installation/SCRAM_SITE.pm.in | sed -e "s|@SCRAM_HOME@|%i|g;s|@SCRAM_LOOKUPDB_DIR@|%instroot/%cmsplatf/lcg/SCRAMV1/scramdb/|g;s|@PERLEXE@|%perl|;s|@TT2INSTALLDIR@|$TEMPLATE_TOOLKIT_ROOT/lib|g;s|@SITETEMPLATEDIR@|%i/Templates|g;s|@SCRAM_SITENAME@|STANDALONE|g" > %i/Installation/SCRAM_SITE.pm
75 < sed -e "s|@SCRAM_VERSION@|%v|" src/SCRAM/SCRAM.pm > %i/src/SCRAM/SCRAM.pm
35 > #SCRAM/INSTALL.txt recomendations
36 > sed -i -e "s|@SCRAM_LOOKUPDB_DIR@|%instroot/%cmsplatf/lcg/SCRAMV1/scramdb/|g;s|@SCRAM_VERSION@|%v|g" %i/bin/scram
37 > ln -s ../../bin/scram %i/src/main/scram.pl
38   chmod 755 %i/bin/scram
39  
78 mkdir -p %i/etc
79 echo $PERL5LIB > %i/etc/perl5lib.env
80
81 mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d
82 mkdir -p %{i}/etc/profile.d
83 echo "#!/bin/sh" > %i/etc/profile.d/dependencies-setup.sh
84 echo "source $P5_TEMPLATE_TOOLKIT_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
85 echo "source $P5_URI_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
86 echo "source $P5_XML_PARSER_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
87 echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
88
89 echo "#!/bin/csh" > %i/etc/profile.d/dependencies-setup.csh
90 echo "source $P5_TEMPLATE_TOOLKIT_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
91 echo "source $P5_URI_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
92 echo "source $P5_XML_PARSER_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
93 echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
94
95 %perl -p -i -e "s|#!.*perl|#!%perl|" %{i}/doc/doxygen/DoxyFilt.pl
96
40   %post
98 %{relocateConfig}etc/perl5lib.env
99 %{relocateConfig}Installation/SCRAM_SITE.pm
41   %{relocateConfig}bin/scram
101 %{relocateConfig}src/main/scram.pl
102 %{relocateConfig}etc/profile.d/dependencies-setup.sh
103 %{relocateConfig}etc/profile.d/dependencies-setup.csh
42  
43   mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/default-scram
44   # default version for SCRAM release series Vx_y_
# Line 129 | Line 67 | fi
67  
68   %files
69   %i
132 %instroot/%cmsplatf/lcg/SCRAMV1/scramdb
133 %exclude %instroot/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup
134 %exclude %i/scripts/DrDOC.sh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines