-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxone-kmod-common.spec
82 lines (62 loc) · 2.59 KB
/
xone-kmod-common.spec
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%global commit0 6b9d59aed71f6de543c481c33df4705d4a590a31
%global date 20241223
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
#global tag %{version}
%global real_name xone
Name: %{real_name}-kmod-common
Version: 0.3%{!?tag:^%{date}git%{shortcommit0}}
Release: 7%{?dist}
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories common files
License: GPLv2
URL: https://github.com/dlundqvist/xone
BuildArch: noarch
%if 0%{?tag:1}
Source0: %{url}/archive/v%{version}.tar.gz#/xone-%{version}.tar.gz
%else
Source0: %{url}/archive/%{commit0}.tar.gz#/xone-%{shortcommit0}.tar.gz
%endif
# Windows driver and firmware file:
Source1: http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/07/1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab
BuildRequires: cabextract
# UDev rule location (_udevrulesdir) and systemd macros:
BuildRequires: systemd-rpm-macros
Requires: wireless-regdb
Requires: %{real_name}-kmod = %{?epoch:%{epoch}:}%{version}
Provides: %{real_name}-kmod-common = %{?epoch:%{epoch}:}%{version}
%description
Linux kernel driver for Xbox One and Xbox Series X|S accessories common files.
%prep
%if 0%{?tag:1}
%autosetup -p1 -n xone-%{version}
%else
%autosetup -p1 -n xone-%{commit0}
%endif
# Firmware:
cabextract -F FW_ACC_00U.bin %{SOURCE1}
%install
mkdir -p %{buildroot}%{_udevrulesdir}
mkdir -p %{buildroot}%{_prefix}/lib/modprobe.d/
# Blacklist:
install -p -m 0644 install/modprobe.conf %{buildroot}%{_prefix}/lib/modprobe.d/xone.conf
# Firmware:
install -p -m 0644 -D FW_ACC_00U.bin %{buildroot}%{_prefix}/lib/firmware/xow_dongle.bin
%files
%license LICENSE
%doc README.md
%{_prefix}/lib/modprobe.d/%{real_name}.conf
%{_prefix}/lib/firmware/xow_dongle.bin
%changelog
* Wed Dec 25 2024 Simone Caronni <[email protected]> - 0.3^20241223git6b9d59a-7
- Switch to https://github.com/dlundqvist/xone fork.
* Tue Sep 24 2024 Simone Caronni <[email protected]> - 0.3^20240425git29ec357-6
- Use new packaging guidelines for snapshots.
* Mon May 13 2024 Simone Caronni <[email protected]> - 0.3-5.20240425git29ec357
- Update to latest snapshot.
* Tue Jan 23 2024 Simone Caronni <[email protected]> - 0.3-4.20240118giteaa55d0
- Update to latest snapshot.
* Wed Jan 17 2024 Simone Caronni <[email protected]> - 0.3-3
- Clean up SPEC file.
* Sat Dec 17 2022 Simone Caronni <[email protected]> - 0.3-2
- Kernel module checks for wireless frequency regulatory compliance.
* Tue Aug 9 2022 Simone Caronni <[email protected]> - 0.3-1
- First build.