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

Comparing COMP/CMSDIST/py2-pil.spec (file contents):
Revision 1.2 by eulisse, Tue Jan 30 10:29:39 2007 UTC vs.
Revision 1.8 by afanfani, Wed May 28 11:28:03 2008 UTC

# Line 1 | Line 1
1   ### RPM external py2-pil 1.1.6
2 < ## INITENV +PATH PYTHONPATH %i/lib/python$(echo $PYTHON_VERSION | cut -d. -f 1,2)/site-packages
2 > ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
3 > ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages/PIL
4   %define downloadn Imaging
5 < Source: http://effbot.org/downloads/%downloadn-%v.tar.gz
5 > Source: http://effbot.org/downloads/%downloadn-%realversion.tar.gz
6   Requires: python
7   # Requires: zlib
8   # Requires: agg
# Line 12 | Line 13 | Requires: python
13   Requires: libpng libjpg zlib libtiff
14   # Requires: freetype
15   %prep
16 < %setup -n %downloadn-%v
16 > %setup -n %downloadn-%realversion
17   perl -p -i -e "s!__PREFIX__!%i!" setup.py
18   perl -p -i -e "s!JPEG_ROOT = None!JPEG_ROOT =\"$LIBJPG_ROOT\" !" setup.py
19   perl -p -i -e "s!TIFF_ROOT = None!TIFF_ROOT =\"$LIBTIFF_ROOT\" !" setup.py
# Line 22 | Line 23 | python setup.py build_ext -i
23   python selftest.py
24   %install
25   python setup.py install --prefix=%i
26 + perl -p -i -e "s|^#!.*python(.*)|#!/usr/bin/env python$1|" `grep -r -e "^#\!.*python.*" %i | cut -d: -f1`

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines