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-01 |
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&module=%{moduleName}&export=%{exportName}&tag=-r%{cvstag}&output=/PKGTOOLS.tar.gz |
11 |
> |
Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/PKGTOOLS.tar.gz |
12 |
|
|
13 |
|
%prep |
14 |
|
%setup -n PKGTOOLS |
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 |
|
|
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 |
31 |
< |
ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00pkgtools.sh |
32 |
< |
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 |