Changeset 809 for lm-sensors/trunk/RPM
- Timestamp:
- 05/16/00 06:43:42 (9 years ago)
- Files:
-
- lm-sensors/trunk/RPM/README (modified) (3 diffs)
- lm-sensors/trunk/RPM/lm_sensors-rh.spec (added)
- lm-sensors/trunk/RPM/lm_sensors.spec (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/RPM/README
r738 r809 1 1 ##by Constantine Gavrilov <const-g@xpert.com> 2 3 Use lm_sensors-rh.spec to build against stock kernels of RedHat based 4 distributions. 5 Use lm_sesnosrs.spec to build against custom built kernels. 2 6 3 7 Short instructions on how to build: … … 13 17 a) prefix - where the stuff gets installed; 14 18 b) kversion - kernel version you are running; 15 c) ver - version of lm_sensors you are compiling (if necessary); 16 d) Group - to which groups the packages belong (if necessary). 17 e) If i2c has been installed into a location defferent form prefix or /usr, 19 c) mversion (if necessary) - defines path for modules' install (equal to 20 kversion by default) -- modules will be installed to /lib/modules/%{mversion}. 21 d) ver - version of lm_sensors you are compiling (if necessary); 22 e) Group - to which groups the packages belong (if necessary). 23 f) If i2c has been installed into a location defferent form prefix or /usr, 18 24 you must ajust I2C_HEADERS as well. 19 25 … … 58 64 For help on building this rpms, suggestions, comments, etc, you may contact me 59 65 at <const-g@xpert.com> . 60 lm-sensors/trunk/RPM/lm_sensors.spec
r738 r809 20 20 21 21 ## The only customizable variables are prefix and kversion. 22 ## If i2c has been installed into a location defferent form prefix or /usr; 22 ## If you have used a custom tug in the vesrion of your kernel rpm, 23 ## you may need to adjust mversion as well. 24 25 ## If i2c has been installed into a location defferent from prefix or /usr; 23 26 ## you must define I2C_HEADERS below. 24 27 ## This package IS relocatable (change prefix to relocate). 25 28 26 29 %define prefix /usr/local 30 %define I2C_HEADERS %{prefix}/include 27 31 28 32 #Define your kernel version here. 29 33 %define kversion 2.2.14 30 31 #Another example for the above: 32 #%define kversion 2.2.14-SMP 34 %define mversion %{kversion} 35 #Another example for the above: %define kversion 2.2.14-SMP 33 36 34 37 %define name lm_sensors 35 %define I2C_HEADERS %{prefix} 36 %define ver 2.4.5 38 %define ver 2.5.0 37 39 Summary: Hardware Health Monitoring Tools 38 40 Name: %{name} … … 53 55 Summary: Chip and bus drivers for general SMBus access and hardware monitoring. 54 56 Group: Base/Kernel 55 56 ###Latest RedHat distributions define a different Group: 57 ###Group: System Environment/Kernel 57 ###Latest RedHat distributions define a different Group: Group: System Environment/Kernel 58 58 59 59 Copyright: GPL … … 110 110 %build 111 111 #even for non-SMP systems parallel make will build faster 112 make -j4 112 make -j4 I2C_HEADERS=%{I2C_HEADERS} 113 113 114 114 %install … … 120 120 %post 121 121 ldconfig || /bin/true 122 echo "please run \`%{prefix}/sbin/sensors-detect' to configure the sensors." 122 123 123 124 %postun … … 134 135 %config /etc/sensors.ex 135 136 %{prefix}/bin/* 136 %{prefix}/lib/lib* so*137 %{prefix}/lib/lib*.so.* 137 138 %dir %{prefix}/man/man1 138 139 %dir %{prefix}/man/man5 … … 141 142 %{prefix}/sbin/* 142 143 %doc BACKGROUND BUGS CHANGES CONTRIBUTORS INSTALL README TODO 143 %doc FAQ cvs fan-divisors modules progs temperature-sensors144 %doc useful_addresses.html version-2144 %doc doc/{FAQ,cvs,fan-divisors,modules,progs,temperature-sensors} 145 %doc doc/{useful_addresses.html,version-2} 145 146 146 147 %files drivers 147 %dir /lib/modules/%{ kversion}148 %dir /lib/modules/%{ kversion}/misc149 /lib/modules/%{ kversion}/misc/*148 %dir /lib/modules/%{mversion} 149 %dir /lib/modules/%{mversion}/misc 150 /lib/modules/%{mversion}/misc/* 150 151 %dir %{prefix}/include/linux 151 152 %{prefix}/include/linux/*.h … … 163 164 rm -rf $RPM_BUILD_ROOT 164 165 rm -rf $RPM_BUILD_DIR/%{name}-%{ver} 165
