File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11%define module tp_smapi
2- %define version 0.44
32
43Name: %{module }
5- Version: %{ version }
4+ Version: 0.44
65Release: 1%{?dist }
76Summary: IBM ThinkPad hardware functions driver - DKMS version
8- Group: Kernel/Drivers
97License: GPLv2
108Source0: %{module }-%{version }.tgz
119
1210Requires: dkms >= 1.00
13- Requires: kernel-headers
14- Requires: kernel-devel
1511
1612BuildArch: noarch
1713
1814
19- %description
15+ %description
2016The package contains kernel driver for ThinkPad SMAPI (System
2117Management Application Program Interface). The driver is built using
2218DKMS.
@@ -26,24 +22,13 @@ DKMS.
2622
2723
2824%install
29- if [ " $RPM_BUILD_ROOT " != " /" ]; then
30- rm -rf $RPM_BUILD_ROOT
31- fi
32- mkdir -p $RPM_BUILD_ROOT /usr/src/%{module }-%{version }/
33- cp -rf * $RPM_BUILD_ROOT /usr/src/%{module }-%{version }
34-
35- %clean
36- if [ " $RPM_BUILD_ROOT " != " /" ]; then
37- rm -rf $RPM_BUILD_ROOT
38- fi
25+ mkdir -p %{buildroot }%{_usrsrc }/%{module }-%{version }/
26+ cp -rf * %{buildroot }%{_usrsrc }/%{module }-%{version }
3927
4028%files
41- %defattr(-,root,root)
4229%doc README TODO
4330%{_usrsrc }/%{module }-%{version }/
4431
45- %doc
46-
4732%post
4833dkms add -m %{module } -v %{version } --rpm_safe_upgrade
4934dkms build -m %{module } -v %{version }
You can’t perform that action at this time.
0 commit comments