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.62 by muzaffar, Tue Jan 1 11:01:20 2008 UTC vs.
Revision 1.75 by dlange, Thu Feb 21 21:54:16 2008 UTC

# Line 1 | Line 1
1 < ### RPM lcg SCRAMV1 V1_1_0
1 > ### RPM lcg SCRAMV1 V1_2_0-cand10
2   ## INITENV +PATH PATH %instroot/common
3 ## INITENV +PATH PERL5LIB %{i}
4 Requires: p5-template-toolkit p5-uri p5-xml-parser p5-libwww-perl
5 Provides: perl(SCRAM::Helper)
6 Provides: perl(Utilities::AddDir)
7 Provides: perl(Utilities::Architecture)
8 Provides: perl(Utilities::SCRAMUtils)
9 Provides: perl(ActiveDoc::GroupChecker)
10 Provides: perl(ActiveDoc::UserInterface_basic)
11 Provides: perl(ActiveDoc::UserQuery)
12 Provides: perl(Doxygen::Context)
13 Provides: perl(Graph::Graph)
14 Provides: perl(ObjectStore)
15 Provides: perl(Utilities::SVNmodule)
16 Provides: perl(URL::URL_cvsfile)
17 Provides: perl(BuildSystem::Block)
18 Provides: perl(BuildSystem::Build)
19 Provides: perl(BuildSystem::BuildClass)
20 Provides: perl(BuildSystem::BuildSetup)
21 Provides: perl(BuildSystem::DateStampRecord)
22 Provides: perl(BuildSystem::Tool)
23 Provides: perl(BuildSystem::ToolBox)
24 Provides: perl(BuildSystem::ToolDoc)
25 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 35 | Line 12 | Provides: perl(Utilities::GroupChecker)
12   # check this is really so -- should we use %dir, or the default is
13   # good?)
14   #
38 # We do the install ourselves, as "Installation/install_scram" would
39 # do, but putting the results elsewhere and using our own scram
40 # wrapper instead of using the supplied one -- mainly for easier
41 # override of SCRAM_LOOKUPDB; the wrapper is really rather simple so
42 # there is no point in trying to patch it.
43 #
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 V1_1_0_reltag
19 > %define cvstag %v
20   Source0: %{cvsrepo}&tag=-r%{cvstag}&module=SCRAM&output=/source.tar.gz
21  
22   %prep
# Line 53 | Line 24 | Source0: %{cvsrepo}&tag=-r%{cvstag}&modu
24   %build
25   %install
26   tar -cf - . | tar -C %i -xvvf -
27 < mkdir -p %instroot/%cmsplatf/lcg/SCRAMV1/scramdb %i/bin %i/Installation
27 >
28 > mkdir -p %i/src/main %instroot/%cmsplatf/lcg/SCRAMV1/scramdb
29   touch %instroot/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup
30  
31 < cat Installation/scram.pl.in | sed -e "s|@PERLEXE@|/usr/bin/env perl|;s|@SCRAM_HOME@|%i|g;s|@INSTALLDIR@|%i/src|g" > %i/bin/scram
32 < cat Installation/scram.pl.in | sed -e "s|@PERLEXE@|/usr/bin/env perl|;s|@SCRAM_HOME@|%i|g;s|@INSTALLDIR@|%i/src|g" > %i/src/main/scram.pl
33 < chmod +x %i/src/main/scram.pl
62 < 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@|/usr/bin/env perl|;s|@TT2INSTALLDIR@|$TEMPLATE_TOOLKIT_ROOT/lib|g;s|@SITETEMPLATEDIR@|%i/Templates|g;s|@SCRAM_SITENAME@|STANDALONE|g" > %i/Installation/SCRAM_SITE.pm
63 < sed -e "s|@SCRAM_VERSION@|%v|" src/SCRAM/SCRAM.pm > %i/src/SCRAM/SCRAM.pm
31 > #SCRAM/INSTALL.txt recomendations
32 > sed -i -e "s|@SCRAM_LOOKUPDB_DIR@|%instroot/%cmsplatf/lcg/SCRAMV1/scramdb/|g;s|@SCRAM_VERSION@|%v|g" %i/bin/scram
33 > ln -s ../../bin/scram %i/src/main/scram.pl
34   chmod 755 %i/bin/scram
35  
66 mkdir -p %i/etc
67 echo $PERL5LIB > %i/etc/perl5lib.env
68
36   mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d
37   mkdir -p %{i}/etc/profile.d
71 echo "#!/bin/sh" > %i/etc/profile.d/dependencies-setup.sh
72 echo "source $P5_TEMPLATE_TOOLKIT_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
73 echo "source $P5_URI_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
74 echo "source $P5_XML_PARSER_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
75 echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
76
77 echo "#!/bin/csh" > %i/etc/profile.d/dependencies-setup.csh
78 echo "source $P5_TEMPLATE_TOOLKIT_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
79 echo "source $P5_URI_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
80 echo "source $P5_XML_PARSER_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
81 echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
82
83 perl -p -i -e "s|#!.*perl|#!/usr/bin/env perl|" %{i}/doc/doxygen/DoxyFilt.pl
38  
39   %post
86 %{relocateConfig}etc/perl5lib.env
87 %{relocateConfig}Installation/SCRAM_SITE.pm
40   %{relocateConfig}bin/scram
89 %{relocateConfig}src/main/scram.pl
90 %{relocateConfig}etc/profile.d/dependencies-setup.sh
91 %{relocateConfig}etc/profile.d/dependencies-setup.csh
41   # If and only if there is no default-scramv1 set the default to be the version we package in this spec.
42   OLD_VERSION=""
43   if [ -f $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/default-scramv1-version ]
# Line 114 | Line 63 | fi
63   %i
64   %instroot/%cmsplatf/lcg/SCRAMV1/scramdb
65   %exclude %instroot/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup
117 %exclude %i/scripts/DrDOC.sh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines