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.3 by steen, Thu Apr 27 00:14:44 2006 UTC vs.
Revision 1.6 by ratnik, Wed Apr 18 23:46:02 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 > Requires: gcc-wrapper
3 > %define pythonv $(echo $PYTHON_VERSION | cut -d. -f 1,2)
4 > %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")
5   %define bindir %pydir/bin
6   %define sitedir %pydir/lib/python%pythonv/site-packages
7 < ## INITENV +PATH PYTHONPATH %{i}/lib
7 > ## INITENV +PATH PYTHONPATH %{i}/lib/python%pythonv/site-packages
8  
9   Summary: xmlrpc for Python
10   Source0: http://switch.dl.sourceforge.net/sourceforge/py-xmlrpc/%n-%v.tar.gz
# Line 18 | Line 19 | Requires: gcc python
19   This kit contains an implementation of the xmlrpc protocol written in C and
20   wrapped up in python.
21  
22 < %setup
22 > %prep
23 > %setup -n %n-%v
24   %patch0 -p0
25   %patch1 -p0
26  
27   %build
28 + ## IMPORT gcc-wrapper
29   export CFLAGS="-I%pydir/include/"
30   python setup.py build
31  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines