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