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

Comparing COMP/CMSDIST/py2-pyxml.spec (file contents):
Revision 1.1 by eulisse, Mon Apr 3 23:33:33 2006 UTC vs.
Revision 1.10 by lat, Mon May 23 15:59:45 2011 UTC

# Line 1 | Line 1
1 < ### RPM external pyxml 0.8.4
2 < %define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2)
3 < ## INITENV +PATH PYTHONPATH %i/lib/python%{pythonv}/site-packages
4 < Source: http://switch.dl.sourceforge.net/sourceforge/pyxml/PyXML-%{v}.tar.gz
1 > ### RPM external py2-pyxml 0.8.4
2 > ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
3 > Source: http://switch.dl.sourceforge.net/sourceforge/pyxml/PyXML-%{realversion}.tar.gz
4   Requires: python expat
5  
6   %prep
7 < %setup -n PyXML-%{v}
7 > %setup -n PyXML-%{realversion}
8 >
9   %build
10 < ./setup.py build
10 > python setup.py build
11 >
12   %install
13 < ./setup.py install --prefix=%{i}
13 > python setup.py install --prefix=%i
14 > find %i -name '*.egg-info' -exec rm {} \;
15 > for f in %i/bin/xmlproc_*; do perl -p -i -e 's{.*}{#!/usr/bin/env python} if $. == 1 && m{#!.*/bin/python}' $f; done

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines