Skip to content

Commit

Permalink
feat: Switch to alternative repo for xone driver with patches
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 24, 2024
1 parent 5d89b32 commit f86c010
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 44 deletions.
25 changes: 7 additions & 18 deletions akmods/xone/xone-kmod-common.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
%global real_name xone

Name: %{real_name}-kmod-common
Version: 0.3
Release: 3%{?dist}
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories common files
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories
License: GPLv2
URL: https://github.com/medusalix/%{real_name}
URL: https://github.com/BoukeHaarsma23/xonedo
BuildArch: noarch

Source0: %{url}/archive/v%{version}.tar.gz#/%{real_name}-%{version}.tar.gz
# Windows driver and firmware file:
Source1: 1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab

Patch0: https://github.com/BoukeHaarsma23/xonedo/commit/87d186328b958cd2cd677ac957981918d965f4f3.patch
Source: %{url}/archive/refs/heads/master.tar.gz

BuildRequires: cabextract
# UDev rule location (_udevrulesdir) and systemd macros:
Expand All @@ -26,7 +22,7 @@ Provides: %{real_name}-kmod-common = %{?epoch:%{epoch}:}%{version}
Linux kernel driver for Xbox One and Xbox Series X|S accessories common files.

%prep
%autosetup -p1 -n %{real_name}-%{version}
%autosetup -p1 -n xonedo-master

# Firmware:
cabextract -F FW_ACC_00U.bin %{SOURCE1}
Expand All @@ -48,11 +44,4 @@ install -p -m 0644 -D FW_ACC_00U.bin %{buildroot}%{_prefix}/lib/firmware/xow_don
%{_prefix}/lib/firmware/xow_dongle.bin

%changelog
* 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.
{{{ git_dir_changelog }}}
32 changes: 6 additions & 26 deletions akmods/xone/xone-kmod.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,13 @@
%global debug_package %{nil}

Name: xone-kmod
Version: 0.3
Release: 4%{!?tag:.%{date}git%{shortcommit0}}%{?dist}
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories
License: GPLv2
URL: https://github.com/medusalix/xone
URL: https://github.com/BoukeHaarsma23/xonedo

%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

Patch0: https://github.com/BoukeHaarsma23/xonedo/commit/87d186328b958cd2cd677ac957981918d965f4f3.patch
Source: %{url}/archive/refs/heads/master.tar.gz

# Get the needed BuildRequires (in parts depending on what we build for):
BuildRequires: kmodtool
Expand All @@ -38,11 +32,7 @@ Linux kernel driver for Xbox One and Xbox Series X|S accessories.
# Print kmodtool output for debugging purposes:
kmodtool --target %{_target_cpu} --repo negativo17.org --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null

%if 0%{?tag:1}
%autosetup -p1 -n xone-%{version}
%else
%autosetup -p1 -n xone-%{commit0}
%endif
%autosetup -p1 -n xonedo-master

for kernel_version in %{?kernel_versions}; do
mkdir _kmod_build_${kernel_version%%___*}
Expand All @@ -65,14 +55,4 @@ done
%{?akmod_install}

%changelog
* Wed Jan 17 2024 Simone Caronni <[email protected]> - 0.3-4.20240116gitaf5e344
- Update to latest snapshot.

* Wed Nov 15 2023 Simone Caronni <[email protected]> - 0.3-3.20230517gitbbf0dcc
- Drop custom signing and compressing in favour of kmodtool.

* Sun Jun 04 2023 Simone Caronni <[email protected]> - 0.3-2.20230517gitbbf0dcc
- Update to latest commits.

* Tue Aug 9 2022 Simone Caronni <[email protected]> - 0.3-1
- First build.
{{{ git_dir_changelog }}}

0 comments on commit f86c010

Please sign in to comment.