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

Comparing COMP/CMSDIST/py2-memcached.spec (file contents):
Revision 1.2 by valya, Tue Feb 3 22:06:43 2009 UTC vs.
Revision 1.3 by valya, Wed Feb 4 23:54:43 2009 UTC

# Line 2 | Line 2
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
4  
5 + # The first line above define location of our RPM in CMS RPM repositoy (external), the RPM name
6 + # (py2-memcached) and RPM version of the package (1.43). The we define local variable
7 + # pythonv and use CMS macro INITENV to define initial path and python path.
8 + # Below we define set of instruction for RPM build system to build our package.
9 +
10 + # define location of the memcached code. Here realversion defines version of the package we will
11 + # retrieve from specified location (can be http/ftp/cvs).
12 + # The realversion is defined by first line in this file, py2-memcached 1.43, first it's a new
13 + # name for our RPM and 1.43 is RPM package version (realversion).
14   Source: ftp://ftp.tummy.com/pub/python-memcached/old-releases/python-memcached-%realversion.tar.gz
15 +
16 + # define dependencies for memcached
17   Requires: python py2-setuptools
18 < %prep
18 >
19 > # pre-build step, put your instruction here, e.g. define environment
20 > # here we use %setup instruction to setup package directory where package will be located.
21 > # the name, python-memcached-1.43 is what we get when untar the tarball, so we put here
22 > # python-memcached-%realversion
23 > %prep
24   %setup -n python-memcached-%realversion
25 +
26 + # put here build instruction, e.g. make build, since python code doesn't require
27 + # any special instruction we leave this section blank
28   %build
29 +
30 + # install instructions, e.g. make install, in our case we can use just
31 + # python setup.py build to build and package and move build code into install area
32 + # Here %i refers to install area where our package will be installed
33   %install
34   mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
35   python setup.py build

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines