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

Comparing COMP/CMSDIST/py-xmlrpc.spec (file contents):
Revision 1.1 by steen, Mon Apr 3 21:53:19 2006 UTC vs.
Revision 1.7 by elmer, Tue May 1 10:57:27 2007 UTC

# Line 1 | Line 1
1   ### RPM external py-xmlrpc 0.8.8.2
2 < %define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2)
3 < %define pydir %(which python| python -c "import sys,os; version=sys.version[:3];path='/'+reduce(lambda x,y: x+y+'/',sys.stdin.readline().split('/')[:-2]);print path")
2 > %define pythonv $(echo $PYTHON_VERSION | cut -d. -f 1,2)
3 > %define pydir $(which python| python -c "import sys,os; version=sys.version[:3];path='/'+reduce(lambda x,y: x+y+'/',sys.stdin.readline().split('/')[:-2]);print path")
4   %define bindir %pydir/bin
5   %define sitedir %pydir/lib/python%pythonv/site-packages
6 < # INITENV +PATH PYTHONPATH %{i}/lib
6 > ## INITENV +PATH PYTHONPATH %{i}/lib/python%pythonv/site-packages
7  
8   Summary: xmlrpc for Python
9   Source0: http://switch.dl.sourceforge.net/sourceforge/py-xmlrpc/%n-%v.tar.gz
# Line 18 | Line 18 | Requires: gcc python
18   This kit contains an implementation of the xmlrpc protocol written in C and
19   wrapped up in python.
20  
21 < %setup
21 > %prep
22 > %setup -n %n-%v
23   %patch0 -p0
24   %patch1 -p0
25  
# Line 27 | Line 28 | export CFLAGS="-I%pydir/include/"
28   python setup.py build
29  
30   %install
31 < python setup.py install
31 < mkdir -p %i/lib
32 < mv %sitedir/_xmlrpc.so %i/lib
33 < mv %sitedir/xmlrpc.* %i/lib
34 <
35 < %files
36 < %i
31 > python setup.py install --prefix=%i

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines