ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/release-tools.spec
Revision: 1.2
Committed: Mon Sep 25 09:10:40 2006 UTC (18 years, 7 months ago) by eulisse
Branch: MAIN
CVS Tags: pe060927
Changes since 1.1: +0 -2 lines
Log Message:
Adding tools to PATH

File Contents

# User Rev Content
1 eulisse 1.1 ### RPM cms release-tools 1.0
2    
3     %define cvstag V00-01-01
4     %define moduleName Utilities/ReleaseScripts
5     %define exportName ReleaseScripts
6     %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
7     Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/ReleaseScripts.tar.gz
8     Requires: p5-template-toolkit p5-dbi
9    
10     %prep
11     %setup -n ReleaseScripts
12     %build
13     %install
14     mkdir -p %{i}/bin
15     cp -r ReleaseScripts/scripts/* %{i}/bin
16     ln -sf %{i}/etc/profile.d/init.sh %{instroot}/%{cmsplatf}/etc/profile.d/S00release-tools.sh
17     ln -sf %{i}/etc/profile.d/init.csh %{instroot}/%{cmsplatf}/etc/profile.d/S00release-tools.csh
18     ln -sf %{i}/inst-files %{instroot}/inst-files
19     %files
20     %{i}
21     %{instroot}/%{cmsplatf}/etc/profile.d/S00release-tools.sh
22     %{instroot}/%{cmsplatf}/etc/profile.d/S00release-tools.csh
23    
24     %post
25     ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00release-tools.sh
26     ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00release-tools.csh