Files
lm-sensors/RPM
Mark D. Studebaker 0b20ca2730 (mds)
Subject:
         RE: RPM spec file patches for i2c and lm_sensors 2.8.1
   Date:
         Tue, 28 Oct 2003 14:34:11 -0800
   From:
         "Marc Rieffel" <marc@paracel.com>
     To:
         <sensors@Stimpy.netroedge.com>




I agree that you shouldn't distribute RPMs.  That doesn't make sense for kernel modules.

For people like me, who want to easily deploy lm_sensors across a cluster of uniform machines, it's very handy to have a spec
file there so that we can build our own RPMs for specific systems with specific kernels and configurations.  Even though the
spec file you had was out of date, it still saved me a lot of trouble.

My vote would be to keep the spec files.  If nobody wants to maintain them, call them unsupported or unmaintained.

Who's Axel?  I'd be happy to work with him, or just use whatever he has or recommends.

Unified diffs attached.

> -----Original Message-----
> From: Jean Delvare [mailto:khali@linux-fr.org]
> Sent: Tuesday, October 28, 2003 2:16 PM
> To: Marc Rieffel; Axel Thimm
> Cc: sensors@Stimpy.netroedge.com
> Subject: Re: RPM spec file patches for i2c and lm_sensors 2.8.1
>
>
>
> > I had to make these changes to be able to build i2c and lm_sensors
> > rpms that worked.  Also, lm_sensors.init isn't included in
> any of the
> > rpms.  Looks like nobody's touched these for several versions.
>
> You're right, the files were untouched since May 2000. Quite a while
> actually. We don't build RPMs anymore. I personnaly consider that this
> is the distributor's job, not our. They do that much better than we
> would.
>
> > i2c.spec:
> >
> > 25c27
> > < %define ver 2.8.1
> > ---
> > > %define ver 2.5.0
> > (...)
>
> Please provide unified diffs if you want me to apply them to
> our files.
>
> You could also consider getting in touch with Axel, who is building
> quality RPM packages from our sources, using his own .spec
> files. Maybe
> you both will agree on some version of the spec files that we should
> include in our source files. Or maybe we should simply remove the RPM
> directory from our source trees - that would be more honest
> IMHO, since
> nobody here seems to be wanting to maintain them, while Axel
> is doing a
> very great job on his side. Let packagers package, that's their job :)
>
> --
> Jean Delvare
> http://www.ensicaen.ismra.fr/~delvare/
>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2169 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 00:36:14 +00:00
..
2003-12-14 00:36:14 +00:00

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

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

Short instructions on how to build:

1) Put lm_sesnosrs.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 lm_sensors tarball in the SOURCES directory of your RPM tree (see
   examples above).

3) Adjust the following variables in lm_sesnosrs.spec:
 a) prefix - where the stuff gets installed;
 b) kversion - kernel version 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 lm_sensors you are compiling (if necessary);
 e) Group - to which groups the packages belong  (if necessary).
 f) If i2c has been installed into a location defferent form prefix or /usr,
    you must ajust I2C_HEADERS as well.
 
4) Type `rpm -bb lm_sensors.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;
3) new i2c code installed -- if you are not running the latest 2.3.x kernels, 
   get and install the new i2c code from http://www.netroedge.com/~lm78/.

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

This SPEC file will build the following binary packages:

 lm_sensors -- user space stuff
 lm_sensors-devel -- user space stuff for the application development
 lm_sensors-drivers -- kernel space drivers.

Dependencies: lm_sensors requires lm_sensors_drivers
			  lm_sensors-devel requires lm_sensors
			  lm_sensors-drivers requires new i2c code

lm_sensors and lm_sensors-devel can be distributed easily as binary
packages. They will be compatible with different configurations.

WARNING!!! lm_sensors-drivers 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 packages
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 rpms, suggestions, comments, etc,  you may contact me
at <const-g@xpert.com> .