##by Constantine Gavrilov <const-g@xpert.com>

Important note! New i2c code has been included into 2.3.38 kernel. If you are
running the latest versions of 2.3.x, you probably do not need this package.

Use i2c-rh.spec to build against stock kernels of RedHat based distributions.
Use i2c.spec to build against custom built kernels.
#############################################################################

Short instructions on how to build:

1) Put i2c.spec into SPECS directory of your rpm tree (/usr/src/redhat/SPECS
   on RedHat, /usr/src/packages/SPECS on SuSe, /usr/src/RPM/SPECS on Mandrake).

2) Put i2c tarball in the SOURCES directory of your RPM tree (see
   examples above).

3) Adjust the following variables in i2c.spec:
 a) prefix - where the stuff gets installed;
 b) kversion - version of kernel RPM you are running;
 c) mversion (if necessary) - defines path for modules' install (equal to
    kversion by default) -- modules will be installed to /lib/modules/%{mversion}.
 d) ver - version of i2c you are compiling (if necessary);
 e) Group - to which group the package belongs  (if necessary).
 
4) Type `rpm -bb i2c.spec' from the SPECS directory.
5) Install the resulting binary packages.

############################################################################

To build this rpm you need (apart from the rpm program):
1) C development environment;
2) kernel sources and headers for the same version of kernel that you are
   running on your machine.
   
############################################################################
############################################################################

WARNING!!! This package must be compiled for the the same kernel
that will run on the target machine. This implies the same kernel
version and the  same kernel configuration. Thus, this binary package
can be provided by distribution vendors only for their stock distribution
kernels. If you use a custom configured kernel, you must rebuild this
package. To protect the ignorant, we define kversion and make the
resulting package dependable on the specific version of the kernel.

#############################################################################

For help on building this rpm, suggestions, comments, etc,  you may contact me
at <const-g@xpert.com> .
