|
|
26d01f |
%global pkg qla4xxx
|
|
|
26d01f |
|
|
|
26d01f |
%global driver_version 5.14.0-1.el9
|
|
|
26d01f |
|
|
Kmods SIG |
6dce24 |
%global kernel_version 5.14.0-77.el9
|
|
|
26d01f |
|
|
|
26d01f |
%global debug_package %{nil}
|
|
|
26d01f |
|
|
|
26d01f |
%global __spec_install_post \
|
|
|
26d01f |
%{?__debug_package:%{__debug_install_post}} \
|
|
|
26d01f |
%{__arch_install_post} \
|
|
|
26d01f |
%{__os_install_post} \
|
|
|
26d01f |
%{__mod_compress_install_post}
|
|
|
26d01f |
|
|
|
26d01f |
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
Name: kmod-%{pkg}
|
|
|
16eeca |
Version: 5.14.0.1
|
|
Kmods SIG |
6dce24 |
Release: 25%{?dist}
|
|
|
26d01f |
Summary: QLogic iSCSI HBA (%{pkg}) driver
|
|
|
26d01f |
|
|
|
26d01f |
License: GPLv2
|
|
|
26d01f |
URL: https://www.kernel.org/
|
|
|
26d01f |
|
|
|
26d01f |
Source0: %{pkg}-%{driver_version}.tar.xz
|
|
|
26d01f |
Patch1: 0001-add-deprecated-ids.patch
|
|
|
26d01f |
|
|
|
12b03f |
ExclusiveArch: x86_64 aarch64 ppc64le
|
|
|
26d01f |
|
|
|
26d01f |
BuildRequires: elfutils-libelf-devel
|
|
|
26d01f |
BuildRequires: gcc
|
|
|
16eeca |
BuildRequires: kernel-rpm-macros
|
|
|
26d01f |
BuildRequires: kmod
|
|
|
26d01f |
BuildRequires: make
|
|
|
26d01f |
BuildRequires: redhat-rpm-config
|
|
|
26d01f |
BuildRequires: xz
|
|
|
26d01f |
|
|
|
16eeca |
BuildRequires: kernel-abi-stablelists = %{kernel_version}
|
|
|
26d01f |
BuildRequires: kernel-devel = %{kernel_version}
|
|
|
26d01f |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
|
26d01f |
|
|
|
16eeca |
Requires: kernel >= %{kernel_version}
|
|
|
16eeca |
Requires: kernel-uname-r >= %{kernel_version}.%{_arch}
|
|
|
16eeca |
Requires: kernel-modules >= %{kernel_version}
|
|
|
16eeca |
Requires: kernel-modules-uname-r >= %{kernel_version}.%{_arch}
|
|
|
26d01f |
|
|
|
26d01f |
Provides: installonlypkg(kernel-module)
|
|
|
16eeca |
Provides: kernel-modules >= %{kernel_version}.%{_arch}
|
|
|
26d01f |
|
|
|
16eeca |
Requires(post): %{_sbindir}/depmod
|
|
|
16eeca |
Requires(postun): %{_sbindir}/depmod
|
|
|
26d01f |
|
|
|
16eeca |
Requires(post): %{_sbindir}/weak-modules
|
|
|
16eeca |
Requires(postun): %{_sbindir}/weak-modules
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
e577cb |
%if "%{version}" == "5.14.0.1" && "%{release}" == "10%{?dist}"
|
|
|
e577cb |
Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-9%{?dist}
|
|
|
e577cb |
%endif
|
|
|
e577cb |
|
|
|
e577cb |
|
|
|
26d01f |
%description
|
|
|
26d01f |
This package provides the QLogic iSCSI HBA (%{pkg}) driver. Compared to the
|
|
|
26d01f |
in-kernel driver this driver re-enables support for deprecated adapters:
|
|
|
26d01f |
|
|
|
26d01f |
- 0x1077:0x8022: QLogic ISP8022
|
|
|
26d01f |
- 0x1077:0x8032: QLogic ISP8324
|
|
|
26d01f |
- 0x1077:0x8042: QLogic ISP8042
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%prep
|
|
|
26d01f |
%autosetup -p1 -n %{pkg}-%{driver_version}
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%build
|
|
|
26d01f |
pushd src
|
|
|
26d01f |
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
|
|
|
26d01f |
popd
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%install
|
|
|
26d01f |
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg} src/%{pkg}.ko
|
|
|
26d01f |
|
|
|
26d01f |
# Make .ko objects temporarily executable for automatic stripping
|
|
|
26d01f |
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
|
|
|
26d01f |
|
|
|
16eeca |
# Generate depmod.conf
|
|
|
16eeca |
%{__install} -d %{buildroot}/%{_sysconfdir}/depmod.d/
|
|
|
16eeca |
for kmod in $(find %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra -type f -name \*.ko -printf "%%P\n" | sort)
|
|
|
16eeca |
do
|
|
|
16eeca |
echo "override $(basename $kmod .ko) * weak-updates/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
|
16eeca |
done
|
|
|
16eeca |
|
|
|
26d01f |
|
|
|
26d01f |
%clean
|
|
|
26d01f |
%{__rm} -rf %{buildroot}
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%post
|
|
|
26d01f |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
16eeca |
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg}/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%preun
|
|
|
26d01f |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
16eeca |
rpm -ql kmod-%{pkg}-%{?epoch:%{epoch}:}%{version}-%{release}.%{_arch} | grep '/lib/modules/%{kernel_version}.%{_arch}/.*\.ko\.xz$' >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%postun
|
|
|
16eeca |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
|
|
|
26d01f |
then
|
|
|
16eeca |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
|
|
|
16eeca |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
|
26d01f |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
16eeca |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
|
|
|
26d01f |
fi
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
16eeca |
%pretrans -p <lua>
|
|
|
16eeca |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
|
|
|
16eeca |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
|
|
|
16eeca |
|
|
|
16eeca |
|
|
|
26d01f |
%posttrans
|
|
|
16eeca |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
|
|
|
26d01f |
then
|
|
|
16eeca |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
|
|
|
16eeca |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
26d01f |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
16eeca |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
|
|
|
26d01f |
fi
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%files
|
|
|
26d01f |
%defattr(644,root,root,755)
|
|
|
26d01f |
/lib/modules/%{kernel_version}.%{_arch}
|
|
|
b49ac0 |
%license LICENSES
|
|
|
16eeca |
%config(noreplace) %{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
|
26d01f |
|
|
|
26d01f |
|
|
|
26d01f |
%changelog
|
|
Kmods SIG |
6dce24 |
* Tue Apr 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-25
|
|
Kmods SIG |
6dce24 |
- Rebuild for 5.14.0-77.el9
|
|
Kmods SIG |
6dce24 |
|
|
Kmods SIG |
c6509d |
* Mon Mar 28 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-24
|
|
Kmods SIG |
c6509d |
- Rebuild for 5.14.0-75.el9
|
|
Kmods SIG |
c6509d |
|
|
Kmods SIG |
8eb04f |
* Tue Mar 22 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-23
|
|
Kmods SIG |
8eb04f |
- Rebuild for 5.14.0-73.el9
|
|
Kmods SIG |
8eb04f |
|
|
Kmods SIG |
c41856 |
* Thu Feb 24 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-22
|
|
Kmods SIG |
c41856 |
- Rebuild for 5.14.0-65.el9
|
|
Kmods SIG |
c41856 |
|
|
Kmods SIG |
1bd9b9 |
* Sun Feb 20 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-21
|
|
Kmods SIG |
1bd9b9 |
- Rebuild for 5.14.0-62.el9
|
|
Kmods SIG |
1bd9b9 |
|
|
Kmods SIG |
a025b8 |
* Fri Feb 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-20
|
|
Kmods SIG |
a025b8 |
- Rebuild for 5.14.0-60.el9
|
|
Kmods SIG |
a025b8 |
|
|
Kmods SIG |
c4e4ec |
* Tue Feb 15 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-19
|
|
Kmods SIG |
c4e4ec |
- Rebuild for 5.14.0-58.el9
|
|
Kmods SIG |
c4e4ec |
|
|
Kmods SIG |
085894 |
* Sat Feb 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-18
|
|
Kmods SIG |
085894 |
- Rebuild for 5.14.0-57.el9
|
|
Kmods SIG |
085894 |
|
|
Kmods SIG |
ca05fc |
* Thu Feb 10 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-17
|
|
Kmods SIG |
ca05fc |
- Rebuild for 5.14.0-56.el9
|
|
Kmods SIG |
ca05fc |
|
|
Kmods SIG |
9ad329 |
* Mon Feb 07 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-16
|
|
Kmods SIG |
9ad329 |
- Rebuild for 5.14.0-55.el9
|
|
Kmods SIG |
9ad329 |
|
|
Kmods SIG |
e2e4d0 |
* Wed Feb 02 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-15
|
|
Kmods SIG |
e2e4d0 |
- Rebuild for 5.14.0-51.el9
|
|
Kmods SIG |
e2e4d0 |
|
|
Kmods SIG |
0a550d |
* Tue Feb 01 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-14
|
|
Kmods SIG |
0a550d |
- Rebuild for 5.14.0-50.el9
|
|
Kmods SIG |
0a550d |
|
|
Kmods SIG |
1ea707 |
* Sat Jan 29 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-13
|
|
Kmods SIG |
1ea707 |
- Rebuild for 5.14.0-49.el9
|
|
Kmods SIG |
1ea707 |
|
|
Kmods SIG |
d42e85 |
* Thu Jan 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-12
|
|
Kmods SIG |
d42e85 |
- Rebuild for 5.14.0-48.el9
|
|
Kmods SIG |
d42e85 |
|
|
Kmods SIG |
38083e |
* Tue Jan 25 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-11
|
|
Kmods SIG |
38083e |
- Rebuild for 5.14.0-47.el9
|
|
Kmods SIG |
38083e |
|
|
|
12b03f |
* Wed Jan 19 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.1-10
|
|
|
12b03f |
- Enable ppc64le
|
|
|
12b03f |
|
|
Kmods SIG |
7f6a21 |
* Wed Jan 19 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-9
|
|
Kmods SIG |
7f6a21 |
- Rebuild for 5.14.0-44.el9
|
|
Kmods SIG |
7f6a21 |
|
|
Kmods SIG |
8b2044 |
* Tue Jan 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-8
|
|
Kmods SIG |
8b2044 |
- Rebuild for 5.14.0-43.el9
|
|
Kmods SIG |
8b2044 |
|
|
Kmods SIG |
cb18db |
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-7
|
|
Kmods SIG |
cb18db |
- Rebuild for 5.14.0-42.el9
|
|
Kmods SIG |
cb18db |
|
|
Kmods SIG |
47f190 |
* Fri Jan 14 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-6
|
|
Kmods SIG |
47f190 |
- Rebuild for 5.14.0-41.el9
|
|
Kmods SIG |
47f190 |
|
|
|
317255 |
* Sat Dec 25 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-5
|
|
|
317255 |
- Rebuild for 5.14.0-39.el9
|
|
|
317255 |
- Skip unreleased kernel -38
|
|
Kmods SIG |
2aeecb |
|
|
Kmods SIG |
58876a |
* Thu Dec 23 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-4
|
|
Kmods SIG |
58876a |
- Rebuild for 5.14.0-37.el9
|
|
Kmods SIG |
58876a |
|
|
Kmods SIG |
ece2a4 |
* Wed Dec 22 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-3
|
|
Kmods SIG |
ece2a4 |
- Rebuild for 5.14.0-36.el9
|
|
Kmods SIG |
ece2a4 |
|
|
|
5657fd |
* Wed Dec 22 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-2
|
|
|
5657fd |
- Rebuild for 5.14.0-34.el9
|
|
|
5657fd |
- Skip unreleased kernel -32 and -33
|
|
Kmods SIG |
960720 |
|
|
|
16eeca |
* Thu Dec 16 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.1-1
|
|
|
16eeca |
- Convert to kABI tracking kmod package (kernel >= 5.14.0-31.el9)
|