From 84272d996c1c90a42bc4ac2dd4a9ff0332e4d4de Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Thu, 3 Feb 2000 15:27:04 +0000 Subject: [PATCH] README for RPM build process git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@724 7894878c-1315-0410-8ee3-d5d059ff63e0 --- RPM/README | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 RPM/README diff --git a/RPM/README b/RPM/README new file mode 100644 index 00000000..2c5d8c61 --- /dev/null +++ b/RPM/README @@ -0,0 +1,60 @@ +##by Constantine Gavrilov + +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) ver - version of lm_sensors you are compiling (if necessary); + d) Group - to which groups the packages belong (if necessary). + e) 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 . +