ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-cheetah.spec
Revision: 1.3
Committed: Mon Nov 13 21:45:24 2006 UTC (18 years, 5 months ago) by eulisse
Branch: MAIN
CVS Tags: WEBTOOLS_CONFIG_1_pre2, WEBTOOLS_CONFIG_1_pre1, PR_0_5_4, PR_0_5_0, PR_0_4_21, PRODREQUEST_0_4_0, PR0_3_13, PR0_3_12, PR0-3-11, forPR034, forPR033, forPIL116, forPR032, forPR030, forPR020, forPR010
Changes since 1.2: +2 -0 lines
Log Message:
Relocates #!%i/python to #!/usr/bin/env python

File Contents

# Content
1 ### RPM external py2-cheetah 2.0rc7
2 Requires: python
3 ## INITENV +PATH PYTHONPATH %i/lib/python%{pythonv}$(echo $PYTHON_VERSION | cut -d. -f 1,2)/site-packages
4 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2)
5 Source: http://switch.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-%v.tar.gz
6
7 %prep
8 %setup -n Cheetah-%v
9 %build
10 %install
11 python setup.py install --prefix=%i
12 perl -p -i -e "s|#\!.*python|#!/usr/bin/env python|" %i/bin/cheetah
13 perl -p -i -e "s|#\!.*python|#!/usr/bin/env python|" %i/bin/cheetah-compile