blob: 7cc9b3c751a20cba4bb0fe9e5d390a165617efca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_with verbose # verbose build (V=1)
%define _name tp_smapi
%define _rel 0.1
Summary: sysfs interface to access ThinkPad's SMAPI functionality
Summary(pl.UTF-8): Interfejs sysfs do funkcjonalności SMAPI ThinkPadów
Name: kernel%{_alt_kernel}-misc-tp_smapi
Version: 0.31
Release: %{_rel}@%{_kernel_ver_str}
License: GPL v2
Group: Base/Kernel
Source0: http://dl.sourceforge.net/tpctl/%{_name}-%{version}.tgz
# Source0-md5: c999d10250974a188f45bbe50d2434d3
URL: http://tpctl.sourceforge.net/
%if %{with dist_kernel}
BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.14}
%requires_releq_kernel
Requires(postun): %releq_kernel
%endif
BuildRequires: rpmbuild(macros) >= 1.348
Requires(post,postun): /sbin/depmod
ExclusiveArch: %{ix86}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
sysfs interface to access ThinkPad's SMAPI functionality.
This package contains Linux kernel module.
%description -l pl.UTF-8
Interfejs sysfs do funkcjonalności SMAPI ThinkPadów.
Ten pakiet zawiera moduł jądra Linuksa.
%prep
%setup -q -n tp_smapi-%{version}
echo "obj-m := thinkpad_ec.o tp_smapi.o hdaps.o" > Makefile
echo > dmi_ec_oem_string.h
%build
%define _CFLAGS CFLAGS="%{rpmcflags} -I$PWD/include -I$PWD/o/include/asm/mach-default"
%build_kernel_modules -m tp_smapi,thinkpad_ec,hdaps %{_CFLAGS}
%install
rm -rf $RPM_BUILD_ROOT
%install_kernel_modules -m tp_smapi,thinkpad_ec,hdaps -d misc
%clean
rm -rf $RPM_BUILD_ROOT
%post
%depmod %{_kernel_ver}
%postun
%depmod %{_kernel_ver}
%files -n kernel%{_alt_kernel}-misc-tp_smapi
%defattr(644,root,root,755)
%doc CHANGES README
/lib/modules/%{_kernel_ver}/misc/*.ko*
|