-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert deletion of lenovolegionlinux-dkms.spec
Signed-off-by: Gonçalo Duarte <[email protected]>
- Loading branch information
1 parent
7e7302c
commit a73be02
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# norootforbuild | ||
%global dkms_name lenovolegionlinux | ||
|
||
Name: dkms-lenovolegionlinux | ||
License: GPL | ||
Group: System/Kernel | ||
Summary: LenovoLegionLinux Kernel Module Package | ||
Version: _VERSION | ||
Release: 0 | ||
Source0: %{dkms_name}-kmod-%{version}-x86_64.tar.gz | ||
|
||
Requires: dkms | ||
|
||
%description | ||
Driver for controlling Lenovo Legion laptops including fan control and power mode. | ||
|
||
%prep | ||
%autosetup -p0 -n %{dkms_name}-kmod-%{version}-x86_64 | ||
|
||
%install | ||
mkdir -p %{buildroot}%{_usrsrc}/%{dkms_name}-%{version}/ | ||
cp -fr * %{buildroot}%{_usrsrc}/%{dkms_name}-%{version}/ | ||
|
||
%post | ||
dkms add -m %{dkms_name} -v %{version} -q || : | ||
# Rebuild and make available for the currently running kernel: | ||
dkms build -m %{dkms_name} -v %{version} -q || : | ||
dkms install -m %{dkms_name} -v %{version} -q --force || : | ||
|
||
%preun | ||
# Remove all versions from DKMS registry: | ||
dkms remove -m %{dkms_name} -v %{version} -q --all || : | ||
|
||
%files | ||
%{_usrsrc}/%{dkms_name}-%{version} |