2025-02-06 17:43:57 +00:00
|
|
|
#
|
|
|
|
# spec file for package kernel-firmware-liquidio
|
|
|
|
#
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
%define _firmwaredir /lib/firmware
|
|
|
|
%endif
|
|
|
|
%define __ksyms_path ^%{_firmwaredir}
|
2025-02-07 10:35:53 +00:00
|
|
|
%define git_version aaae2fb60f75b07d9c249ebe668524f7ddf51243
|
2025-02-06 17:43:57 +00:00
|
|
|
|
|
|
|
Name: kernel-firmware-liquidio
|
2025-02-07 10:35:53 +00:00
|
|
|
Version: 20250206
|
2025-02-06 17:43:57 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Kernel firmware files for Cavium LiquidIO driver
|
2025-04-25 16:01:01 +02:00
|
|
|
License: GPL-2.0-or-later AND SUSE-Firmware
|
2025-02-06 17:43:57 +00:00
|
|
|
Group: System/Kernel
|
|
|
|
URL: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
|
2025-02-11 09:40:00 +00:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2025-04-25 16:01:01 +02:00
|
|
|
Source1: https://github.com/openSUSE/kernel-firmware-tools/archive/refs/tags/20250425.tar.gz#/kernel-firmware-tools-20250425.tar.gz
|
2025-02-11 09:40:00 +00:00
|
|
|
Source2: %{name}-rpmlintrc
|
2025-02-06 17:43:57 +00:00
|
|
|
Source3: git_id
|
|
|
|
Source10: aliases
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
Requires(post): %{_bindir}/mkdir
|
|
|
|
Requires(post): %{_bindir}/touch
|
2025-04-25 16:01:01 +02:00
|
|
|
Requires(postun): %{_bindir}/mkdir
|
|
|
|
Requires(postun): %{_bindir}/touch
|
2025-02-06 17:43:57 +00:00
|
|
|
Requires(post): dracut >= 049
|
|
|
|
Conflicts: kernel < 5.3
|
|
|
|
Conflicts: kernel-firmware-uncompressed
|
|
|
|
BuildArch: noarch
|
|
|
|
%if 0%{?suse_version} >= 1550
|
2025-04-25 16:01:01 +02:00
|
|
|
Conflicts: (filesystem without may-perform-usrmerge)
|
2025-02-06 17:43:57 +00:00
|
|
|
%endif
|
|
|
|
Supplements: modalias(pci:v0000177Dd00000091sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v0000177Dd00000092sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v0000177Dd00009702sv*sd*bc*sc*i*)
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains kernel firmware files for Cavium LiquidIO driver.
|
|
|
|
|
|
|
|
%prep
|
2025-04-25 16:01:01 +02:00
|
|
|
%autosetup -p1
|
|
|
|
tar xf %{S:1} --strip-components=1
|
2025-02-06 17:43:57 +00:00
|
|
|
# strip down WHENCE for the topic
|
|
|
|
scripts/strip-topic-whence.sh liquidio < WHENCE > WHENCE.new
|
|
|
|
mv WHENCE.new WHENCE
|
|
|
|
|
|
|
|
%build
|
|
|
|
# nothing to do
|
|
|
|
|
|
|
|
%install
|
|
|
|
./copy-firmware.sh -v --xz -j1 %{buildroot}%{_firmwaredir}
|
|
|
|
scripts/install-licenses.sh liquidio %{buildroot}%{_licensedir}/%{name}
|
|
|
|
install -c -D -m 0644 WHENCE %{buildroot}%{_licensedir}/%{name}/WHENCE
|
|
|
|
install -c -D -m 0644 README.md %{buildroot}%{_docdir}/%{name}/README.md
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%license %{_licensedir}/%{name}
|
|
|
|
%{_firmwaredir}
|
|
|
|
|
|
|
|
%changelog
|