ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-sqlobject.spec
Revision: 1.7
Committed: Mon Mar 19 08:31:44 2007 UTC (18 years, 1 month 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
Changes since 1.6: +1 -1 lines
Log Message:
updated to work with csh.

File Contents

# Content
1 ### RPM external py2-sqlobject 0.8.0
2 %define pythonv %(echo $PYTHON_VERSION | cut -f1,2 -d.)
3 ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
4
5 %define distname SQLObject-%v
6 Source: http://cheeseshop.python.org/packages/source/S/SQLObject/%{distname}.tar.gz
7 Patch0: patch-setup
8 Requires: python
9
10 %prep
11 %setup -n %{distname}
12 %patch0
13 %build
14 %install
15 python setup.py install --prefix=%i
16 perl -p -i -e "s|#\!.*python|#!/usr/bin/env python|" %i/bin/sqlobject-admin
17