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

Comparing COMP/CMSDIST/py2-cjson.spec (file contents):
Revision 1.1 by valya, Fri Oct 16 15:25:28 2009 UTC vs.
Revision 1.3 by lat, Mon May 23 15:59:45 2011 UTC

# Line 1 | Line 1
1   ### RPM external py2-cjson 1.0.5
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
2 > ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
3  
4   Source: http://pypi.python.org/packages/source/p/python-cjson/python-cjson-%{realversion}.tar.gz
5   Requires: python
6 +
7   %prep
8   %setup -n python-cjson-%realversion
9 +
10   %build
10 %install
11 mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
11   python setup.py build
13 pwd
14 mv build/lib*/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
15
16 mkdir -p %{i}/etc/profile.d
17
18 # Add dependencies
19 (echo "#!/bin/sh"; \
20 echo "source $PYTHON_ROOT/etc/profile.d/init.sh") > %{i}/etc/profile.d/dependencies-setup.sh
21 (echo "#!/bin/tcsh"; \
22 echo "source $PYTHON_ROOT/etc/profile.d/init.csh") > %{i}/etc/profile.d/dependencies-setup.csh
23
24 %post
25 %{relocateConfig}etc/profile.d/dependencies-setup.sh
26 %{relocateConfig}etc/profile.d/dependencies-setup.csh
12  
13 + %install
14 + python setup.py install --prefix=%i
15 + find %i -name '*.egg-info' -exec rm {} \;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines