Changeset 809

Show
Ignore:
Timestamp:
05/16/00 06:43:42 (9 years ago)
Author:
phil
Message:

(Phil) Updating Constantine's RPM specs for Lm_sensors.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/RPM/README

    r738 r809  
    11##by Constantine Gavrilov <const-g@xpert.com> 
     2 
     3Use lm_sensors-rh.spec to build against stock kernels of RedHat based 
     4distributions. 
     5Use lm_sesnosrs.spec to build against custom built kernels. 
    26 
    37Short instructions on how to build: 
     
    1317 a) prefix - where the stuff gets installed; 
    1418 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, 
    1824    you must ajust I2C_HEADERS as well. 
    1925  
     
    5864For help on building this rpms, suggestions, comments, etc,  you may contact me 
    5965at <const-g@xpert.com> . 
    60  
  • lm-sensors/trunk/RPM/lm_sensors.spec

    r738 r809  
    2020 
    2121## 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; 
    2326## you must define I2C_HEADERS below. 
    2427## This package IS relocatable (change prefix to relocate). 
    2528 
    2629%define prefix /usr/local 
     30%define I2C_HEADERS %{prefix}/include 
    2731 
    2832#Define your kernel version here. 
    2933%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 
    3336 
    3437%define name lm_sensors 
    35 %define I2C_HEADERS %{prefix} 
    36 %define ver 2.4.5 
     38%define ver 2.5.0 
    3739Summary: Hardware Health Monitoring Tools 
    3840Name: %{name} 
     
    5355Summary: Chip and bus drivers for general SMBus access and hardware monitoring. 
    5456Group: 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 
    5858 
    5959Copyright: GPL 
     
    110110%build 
    111111#even for non-SMP systems parallel make will build faster 
    112 make -j4 
     112make -j4 I2C_HEADERS=%{I2C_HEADERS} 
    113113 
    114114%install 
     
    120120%post 
    121121ldconfig || /bin/true 
     122echo "please run \`%{prefix}/sbin/sensors-detect' to configure the sensors." 
    122123 
    123124%postun 
     
    134135%config /etc/sensors.ex 
    135136%{prefix}/bin/* 
    136 %{prefix}/lib/lib*so
     137%{prefix}/lib/lib*.so.
    137138%dir %{prefix}/man/man1 
    138139%dir %{prefix}/man/man5 
     
    141142%{prefix}/sbin/* 
    142143%doc BACKGROUND BUGS CHANGES CONTRIBUTORS INSTALL README TODO 
    143 %doc FAQ cvs fan-divisors modules progs temperature-sensors 
    144 %doc useful_addresses.html version-2 
     144%doc doc/{FAQ,cvs,fan-divisors,modules,progs,temperature-sensors} 
     145%doc doc/{useful_addresses.html,version-2} 
    145146 
    146147%files drivers 
    147 %dir /lib/modules/%{kversion} 
    148 %dir /lib/modules/%{kversion}/misc 
    149 /lib/modules/%{kversion}/misc/* 
     148%dir /lib/modules/%{mversion} 
     149%dir /lib/modules/%{mversion}/misc 
     150/lib/modules/%{mversion}/misc/* 
    150151%dir %{prefix}/include/linux 
    151152%{prefix}/include/linux/*.h 
     
    163164rm -rf $RPM_BUILD_ROOT 
    164165rm -rf $RPM_BUILD_DIR/%{name}-%{ver} 
    165