Files
packages/anda/system/usbio-drivers/dkms/dkms-intel-usbio.spec
T
Gilver 205fe13dd3 chore: Update Intel IPU6 specs, separate IPU6 drivers and USBIO drivers (#5490)
* chore: Update Intel IPU6 specs, separate IPU6 drivers and USBIO drivers

* chore: Changelogs

* fix: Some oopsies

* fix: Commit?

* fix: Cleanup

* fix: dfshdfshjksdfdfhjs
2025-06-16 17:49:30 +08:00

57 lines
1.8 KiB
RPMSpec

%global commit 4fb690c6d15a81c492954636c2db396cb700a119
%global shortcommit %{sub %{commit} 1 7}
%global commit_date 20250312
%global debug_package %{nil}
%global modulename intel-usbio
Name: dkms-%{modulename}
Version: 0^%{commit_date}git.%{shortcommit}
Release: 1%{?dist}
Summary: Kernel drivers for the USBIO Extension
License: GPL-2.0-only
URL: https://github.com/intel/usbio-drivers
Source0: %{url}/archive/%{commit}.tar.gz#/usbio-drivers-%{shortcommit}.tar.gz
Source2: %{name}.conf
Patch0: https://github.com/jwrdegoede/usbio-drivers/commit/d5f08986936a7fda0cce543c73fb8d9bab76eae2.patch
Patch1: https://github.com/jwrdegoede/usbio-drivers/commit/47b34a6f467eebb4e9fc59f5e25618fe760fbf33.patch
Patch2: https://github.com/jwrdegoede/usbio-drivers/commit/0eae85556558b410635ad03ed5eccb9648e11fce.patch
Provides: %{modulename}-kmod = %{version}
Requires: dkms
Requires: dkms-intel-ipu6
BuildArch: noarch
Packager: Gilver E. <rockgrub@disroot.org>
%description
This package enables USBIO Extension drivers on Intel Alder Lake, Raptor Lake, Meteor Lake and Lunar Lake platforms.
%prep
%autosetup -p1 -n usbio-drivers-%{commit}
rm -fr .github
cp -f %{SOURCE2} dkms.conf
%build
%install
# Create empty tree:
mkdir -p %{buildroot}%{_usrsrc}/%{modulename}-%{version}/
cp -fr * %{buildroot}%{_usrsrc}/%{modulename}-%{version}/
%post
dkms add -m %{modulename} -v %{version} -q || :
# Rebuild and make available for the currently running kernel:
dkms build -m %{modulename} -v %{version} -q || :
dkms install -m %{modulename} -v %{version} -q --force || :
%preun
# Remove all versions from DKMS registry:
dkms remove -m %{modulename} -v %{version} -q --all || :
%files
%{_usrsrc}/%{modulename}-%{version}
%changelog
* Mon Jun 16 2025 Gilver E. <rockgrub@disroot.org> - 0^20250312git4fb690c
- Initial package