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

Comparing COMP/CMSDIST/pkgtools.spec (file contents):
Revision 1.7 by eulisse, Fri Sep 22 16:55:12 2006 UTC vs.
Revision 1.18 by eulisse, Mon Jul 2 08:52:53 2007 UTC

# Line 1 | Line 1
1   ### RPM cms pkgtools 1.0
2 < ## INITENV ALIAS cmsbuild %{i}/bin/install.sh -spec_dir ./inst-files
3 < ## INITENV ALIAS_SH cmsapt eval `%{i}/bin/aptinstaller.sh config -path %{instroot} -sh`
4 < ## INITENV ALIAS_CSH cmsapt eval `%{i}/bin/aptinstaller.sh config -path %{instroot} -csh`
2 > ## INITENV ALIAS cmsbuild %{i}/bin/install.sh
3   ## INITENV ALIAS updateAptRepository %{i}/bin/updateServer.sh
4  
5   # This generates an rpm for aptinstaller, install.sh, etc. etc.
6 < Requires: cms-env
6 > Requires: cms-env apt
7   %define moduleName PKGTOOLS
8   %define exportName PKGTOOLS
9 < %define cvstag V00-02-09
9 > %define cvstag V00-04-15
10   %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
11   Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/PKGTOOLS.tar.gz
12  
# Line 18 | Line 16 | Source: %cvsserver&strategy=checkout&mod
16   %install
17   make PREFIX=%{i} install
18   mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d
19 < ln -sf %{i}/etc/profile.d/init.sh  %{instroot}/%{cmsplatf}/etc/profile.d/S00pkgtools.sh
20 < ln -sf %{i}/etc/profile.d/init.csh %{instroot}/%{cmsplatf}/etc/profile.d/S00pkgtools.csh
21 < ln -sf %{i}/inst-files %{instroot}/inst-files
19 >
20 > echo source %instroot/external/apt/$APT_VERSION/etc/profile.d/init.sh >> %i/etc/profile.d/dependencies-setup.sh
21 > echo source %instroot/exteranl/apt/$APT_VERSION/etc/profile.d/init.csh >> %i/etc/profile.d/dependencies-setup.csh
22 >
23   %files
24   %{i}
25   %{instroot}/%{cmsplatf}/etc/profile.d/S00pkgtools.sh
26   %{instroot}/%{cmsplatf}/etc/profile.d/S00pkgtools.csh
27  
29
28   %post
29 < perl -p -i -e 's|(.*setenv.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh
30 < perl -p -i -e 's|(.*export.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh
33 < ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh  $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00pkgtools.sh
34 < ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00pkgtools.csh
29 > %{relocateConfig}/dependencies-setup.sh
30 > %{relocateConfig}/dependencies-setup.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines