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

Comparing COMP/CMSDIST/scons.spec (file contents):
Revision 1.1 by eulisse, Tue Mar 14 11:26:14 2006 UTC vs.
Revision 1.6 by diego, Wed Apr 14 13:07:18 2010 UTC

# Line 1 | Line 1
1 < ### RPM external scons 0.96.1
2 < Source: http://eulisse.web.cern.ch/eulisse/%n-%v.tar.gz
1 > ### RPM external scons 1.2.0
2 > ## INITENV +PATH PYTHONPATH %i/lib/%n-%realversion
3 > Source: http://prdownloads.sourceforge.net/scons/scons-%realversion.tar.gz
4 > Requires: python
5 >
6 > %prep
7 > %setup -n scons-%realversion
8  
9   %build
10 +
11   %install
12 < cp -r ./* %i
12 > #mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
13 > python setup.py install --prefix=%i
14 > #mv build/lib*/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
15 >
16 > # setup dependencies environment
17 > rm -rf %i/etc/profile.d
18 > mkdir -p %i/etc/profile.d
19 > for x in %pkgreqs; do
20 >  case $x in /* ) continue ;; esac
21 >  p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
22 >  echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
23 >  echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
24 > done
25 >
26 > %post
27 > # The relocation is also needed because of dependencies
28 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
29 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
30 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines