1 |
slords |
1.1 |
%kmdl bmcsensors |
2 |
|
|
|
3 |
|
|
%define realver 26 |
4 |
|
|
|
5 |
|
|
Summary: bmcsensors, a IPMI compatible driver for lm_sensors |
6 |
|
|
Name: bmcsensors |
7 |
|
|
Version: 20050320 |
8 |
|
|
Release: 0%{?dist} |
9 |
|
|
License: GPL2 |
10 |
|
|
Group: Applications/Internet |
11 |
|
|
URL: http://bmcsensors-26.sourceforge.net/ |
12 |
|
|
Source0: %{name}-%{version}.tar.bz2 |
13 |
|
|
|
14 |
|
|
# Patch0: bmcsensors-20050320-foo.patch |
15 |
|
|
|
16 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
17 |
|
|
%kmdl_parentdependencies |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
bmcsensors, a IPMI compatible driver for lm_sensors |
21 |
|
|
|
22 |
|
|
%package -n %kmdl_name |
23 |
|
|
%kmdl_dependencies |
24 |
|
|
Summary: kernel modules for %{name} |
25 |
|
|
Group: System Environment/Kernel |
26 |
|
|
|
27 |
|
|
%description -n %kmdl_name |
28 |
|
|
kernel modules for %{name}. See description for %{name} for further information. |
29 |
|
|
|
30 |
|
|
%kmdl_desc |
31 |
|
|
|
32 |
|
|
%prep |
33 |
|
|
%setup -q -n bmcsensors-%{realver} |
34 |
|
|
|
35 |
|
|
%build |
36 |
|
|
|
37 |
|
|
%{__make} -C %{kmdl_kernelsrcdir} SUBDIRS=`pwd` modules |
38 |
|
|
|
39 |
|
|
|
40 |
|
|
%install |
41 |
|
|
mkdir -p %{buildroot}%{kmdl_moduledir}/kernel/drivers/i2c/{chips,busses} |
42 |
|
|
install -m 644 i2c-ipmi.ko %{buildroot}%{kmdl_moduledir}/kernel/drivers/i2c/busses/i2c-ipmi.ko |
43 |
|
|
install -m 644 bmcsensors.ko %{buildroot}%{kmdl_moduledir}/kernel/drivers/i2c/chips/bmcsensors.ko |
44 |
|
|
|
45 |
|
|
%clean |
46 |
|
|
rm -rf %{buildroot} |
47 |
|
|
|
48 |
|
|
%post -n %kmdl_name |
49 |
|
|
%kmdl_install |
50 |
|
|
|
51 |
|
|
%postun -n %kmdl_name |
52 |
|
|
%kmdl_remove |
53 |
|
|
|
54 |
|
|
|
55 |
|
|
%files -n %kmdl_name |
56 |
|
|
%defattr(-,root,root,-) |
57 |
|
|
%{kmdl_moduledir}/* |
58 |
|
|
|
59 |
|
|
%changelog |
60 |
|
|
* Tue Feb 24 2009 Daniel B. <daniel@firewall-services.com> 20050320-0 |
61 |
|
|
- Initiale build |
62 |
|
|
|
63 |
|
|
|