-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtuxedo-drivers.spec.in
58 lines (47 loc) · 1.83 KB
/
tuxedo-drivers.spec.in
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
Name: tuxedo-drivers
Version: #MODULE_VERSION#
Release: 1%{?dist}
Summary: Kernel modules for TUXEDO devices
License: GPLv2+
Url: https://www.tuxedocomputers.com
Source0: %{name}-%{version}.tar.xz
Requires: dkms >= 2.1
BuildArch: noarch
Provides: tuxedo-cc-wmi = 4.0.0-1
Provides: tuxedo-keyboard = 4.0.0-1
Provides: tuxedo-keyboard-dkms = 4.0.0-1
Provides: tuxedo-keyboard-ite = 4.0.0-1
Provides: tuxedo-touchpad-fix = 4.0.0-1
Provides: tuxedo-wmi-dkms = 4.0.0-1
Provides: tuxedo-xp-xc-airplane-mode-fix = 4.0.0-1
Provides: tuxedo-xp-xc-touchpad-key-fix = 4.0.0-1
Obsoletes: tuxedo-cc-wmi < 4.0.0-1
Obsoletes: tuxedo-keyboard < 4.0.0-1
Obsoletes: tuxedo-keyboard-dkms < 4.0.0-1
Obsoletes: tuxedo-keyboard-ite < 4.0.0-1
Obsoletes: tuxedo-touchpad-fix < 4.0.0-1
Obsoletes: tuxedo-wmi-dkms < 4.0.0-1
Obsoletes: tuxedo-xp-xc-airplane-mode-fix < 4.0.0-1
Obsoletes: tuxedo-xp-xc-touchpad-key-fix < 4.0.0-1
Group: Hardware/Other
Packager: TUXEDO Computers GmbH <tux@tuxedocomputers.com>
%description
Drivers for several platform devices for TUXEDO notebooks meant for DKMS.
%prep
%setup -q
%install
cp -r %{_builddir}/%{name}-%{version}/usr %{buildroot}
cp -r %{_builddir}/%{name}-%{version}/etc %{buildroot}
%files
%{_usrsrc}/%{name}-%{version}
%config(noreplace) %{_sysconfdir}/modprobe.d/tuxedo_keyboard.conf
%license LICENSE
/usr/lib/udev/rules.d/99-z-tuxedo-systemd-fix.rules
/usr/lib/udev/rules.d/99-infinityflex-touchpanel-toggle.rules
/usr/lib/udev/hwdb.d/61-sensor-infinityflex.hwdb
%post
dkms add -m %{name} -v %{version} --rpm_safe_upgrade
dkms build -m %{name} -v %{version}
dkms install -m %{name} -v %{version}
%preun
dkms remove -m %{name} -v %{version} --all --rpm_safe_upgrade