mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
ce4d5269c0
* chore: Mass update email in Roachy's specs * fix(pokeshell): Recommends Signed-off-by: Gilver <roachy@fyralabs.com> * chore: Bump releases * Update xone.spec Signed-off-by: Gilver <roachy@fyralabs.com> * Update falcond-gui.spec Signed-off-by: Gilver <roachy@fyralabs.com> * Update ghostty-nightly.spec Signed-off-by: Gilver <roachy@fyralabs.com> * Update ghostty.spec Signed-off-by: Gilver <roachy@fyralabs.com> * Update epsonscan2.spec Signed-off-by: Gilver <roachy@fyralabs.com> * Update neovim-default-editor.spec Signed-off-by: Gilver <roachy@fyralabs.com> --------- Signed-off-by: Gilver <roachy@fyralabs.com>
61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
%global debug_package %{nil}
|
|
%global commit 9766e218112f4173be9b0f06dfae27cb40c54f40
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
%global commit_date 20251113
|
|
%global modulename intel-ipu6
|
|
# Actual "release" version, currently unused as the release versions are back and forth on if on if they use 1.0.0 or 1.0.1
|
|
%global ver 1.0.1
|
|
|
|
Name: dkms-%{modulename}
|
|
Summary: DKMS module for %{modulename}
|
|
Version: 0^%{commit_date}git.%{shortcommit}
|
|
Release: 2%{?dist}
|
|
License: GPL-2.0-or-later
|
|
URL: https://github.com/intel/ipu6-drivers
|
|
Source0: %{url}/archive/%{commit}.tar.gz#/ipu6-drivers-%{shortcommit}.tar.gz
|
|
Source1: %{name}.conf
|
|
BuildRequires: elfutils-libelf-devel
|
|
BuildRequires: gcc
|
|
BuildRequires: systemd-rpm-macros
|
|
Provides: %{modulename}-kmod
|
|
Requires: %{modulename}-kmod-common = %{?epoch:%{epoch}:}%{version}
|
|
Requires: dkms
|
|
Requires: dkms-usbio-drivers
|
|
BuildArch: noarch
|
|
Packager: Gilver E. <roachy@fyralabs.com>
|
|
|
|
%description
|
|
This package enables the Intel IPU6 image processor.
|
|
|
|
%prep
|
|
%autosetup -p1 -n ipu6-drivers-%{commit}
|
|
# Pre-apply patch listed in dkms.conf:
|
|
patch -p1 -i patches/*.patch
|
|
rm -fr patch* .github
|
|
|
|
cp -f %{SOURCE1} dkms.conf
|
|
|
|
%build
|
|
|
|
%install
|
|
# Create empty tree:
|
|
mkdir -p %{buildroot}%{_usrsrc}/%{dkms_name}-%{version}/
|
|
cp -fr * %{buildroot}%{_usrsrc}/%{dkms_name}-%{version}/
|
|
|
|
%post
|
|
dkms add -m %{dkms_name} -v %{version} -q || :
|
|
# Rebuild and make available for the currently running kernel:
|
|
dkms build -m %{dkms_name} -v %{version} -q || :
|
|
dkms install -m %{dkms_name} -v %{version} -q --force || :
|
|
|
|
%preun
|
|
# Remove all versions from DKMS registry:
|
|
dkms remove -m %{dkms_name} -v %{version} -q --all || :
|
|
|
|
%files
|
|
%{_usrsrc}/%{dkms_name}-%{version}
|
|
|
|
%changelog
|
|
* Thu Apr 24 2025 Gilver E. <rockgrub@disroot.org>
|
|
- Initial package
|