1 |
|
### RPM cms pkgtools 1.0 |
2 |
+ |
Requires: gcc-wrapper |
3 |
|
## INITENV ALIAS cmsbuild %{i}/bin/install.sh -spec_dir ./inst-files |
4 |
|
## INITENV ALIAS_SH cmsapt eval `%{i}/bin/aptinstaller.sh config -path %{instroot} -sh` |
5 |
|
## INITENV ALIAS_CSH cmsapt eval `%{i}/bin/aptinstaller.sh config -path %{instroot} -csh` |
9 |
|
Requires: cms-env |
10 |
|
%define moduleName PKGTOOLS |
11 |
|
%define exportName PKGTOOLS |
12 |
< |
%define cvstag V00-02-08 |
12 |
> |
%define cvstag V00-04-07 |
13 |
|
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
14 |
|
Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/PKGTOOLS.tar.gz |
15 |
|
|
16 |
|
%prep |
17 |
|
%setup -n PKGTOOLS |
18 |
|
%build |
19 |
+ |
## IMPORT gcc-wrapper |
20 |
|
%install |
21 |
|
make PREFIX=%{i} install |
22 |
|
mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d |
28 |
|
%{instroot}/%{cmsplatf}/etc/profile.d/S00pkgtools.sh |
29 |
|
%{instroot}/%{cmsplatf}/etc/profile.d/S00pkgtools.csh |
30 |
|
|
29 |
– |
|
31 |
|
%post |
32 |
|
perl -p -i -e 's|(.*setenv.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh |
33 |
|
perl -p -i -e 's|(.*export.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh |