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