add missing %pre and %post for dkms installation [release 0.2.1-2mamba;Wed Oct 26 2016]
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Name: gslx680-acpi
|
||||
Version: 0.2.1
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: ACPI/x86 compatible driver for Silead GSLx680 touchscreens
|
||||
Group: System/Kernel and Hardware
|
||||
Vendor: openmamba
|
||||
@@ -12,8 +12,8 @@ Source: https://github.com/onitake/gslx680-acpi.git/v%{version}/gslx680-a
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## AUTOBUILDREQ-END
|
||||
Requires(post):kernelheaders
|
||||
Requires(post):dkms
|
||||
Requires(post): kernelheaders
|
||||
Requires(post): dkms
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
@@ -42,6 +42,20 @@ for d in /lib/modules/4.*/build; do
|
||||
make clean KVER=${kver} KSRC=$d
|
||||
done
|
||||
|
||||
%preun
|
||||
# erase
|
||||
if [ $1 -eq 0 ]; then
|
||||
dkms remove -q -m %{name} -v %{version} --all
|
||||
fi
|
||||
:
|
||||
|
||||
%post
|
||||
if [ $1 -ge 1 ]; then
|
||||
dkms add -q -m %{name} -v %{version}
|
||||
dkms install -q -m %{name} -v %{version} --force
|
||||
fi
|
||||
:
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
@@ -52,5 +66,8 @@ done
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Wed Oct 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.1-2mamba
|
||||
- add missing %pre and %post for dkms installation
|
||||
|
||||
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.1-1mamba
|
||||
- package created using the webbuild interface
|
||||
|
Reference in New Issue
Block a user