|
|
f9038e |
%global pkg mpt3sas
|
|
|
f9038e |
|
|
Kmods SIG |
1ff959 |
%global driver_version 5.14.0-57.el9
|
|
|
f9038e |
|
|
Kmods SIG |
df40b7 |
%global kernel_version 5.14.0-65.el9
|
|
|
f9038e |
|
|
|
f9038e |
%global debug_package %{nil}
|
|
|
f9038e |
|
|
|
f9038e |
%global __spec_install_post \
|
|
|
f9038e |
%{?__debug_package:%{__debug_install_post}} \
|
|
|
f9038e |
%{__arch_install_post} \
|
|
|
f9038e |
%{__os_install_post} \
|
|
|
f9038e |
%{__mod_compress_install_post}
|
|
|
f9038e |
|
|
|
f9038e |
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
Name: kmod-%{pkg}
|
|
Kmods SIG |
1ff959 |
Version: 5.14.0.57
|
|
Kmods SIG |
df40b7 |
Release: 5%{?dist}
|
|
|
f9038e |
Summary: LSI MPT Fusion SAS 3.0 Device (%{pkg}) driver
|
|
|
f9038e |
|
|
|
f9038e |
License: GPLv2
|
|
|
f9038e |
URL: https://www.kernel.org/
|
|
|
f9038e |
|
|
|
f9038e |
Source0: %{pkg}-%{driver_version}.tar.xz
|
|
|
f9038e |
Patch1: 0001-add-deprecated-ids.patch
|
|
|
f9038e |
|
|
|
b4cc70 |
ExclusiveArch: x86_64 aarch64 ppc64le
|
|
|
f9038e |
|
|
|
f9038e |
BuildRequires: elfutils-libelf-devel
|
|
|
f9038e |
BuildRequires: gcc
|
|
|
3d8b0e |
BuildRequires: kernel-rpm-macros
|
|
|
f9038e |
BuildRequires: kmod
|
|
|
f9038e |
BuildRequires: make
|
|
|
f9038e |
BuildRequires: redhat-rpm-config
|
|
|
f9038e |
BuildRequires: xz
|
|
|
f9038e |
|
|
|
3d8b0e |
BuildRequires: kernel-abi-stablelists = %{kernel_version}
|
|
|
f9038e |
BuildRequires: kernel-devel = %{kernel_version}
|
|
|
f9038e |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
|
f9038e |
|
|
|
3d8b0e |
Requires: kernel >= %{kernel_version}
|
|
|
3d8b0e |
Requires: kernel-uname-r >= %{kernel_version}.%{_arch}
|
|
|
3d8b0e |
Requires: kernel-modules >= %{kernel_version}
|
|
|
3d8b0e |
Requires: kernel-modules-uname-r >= %{kernel_version}.%{_arch}
|
|
|
f9038e |
|
|
|
f9038e |
Provides: installonlypkg(kernel-module)
|
|
|
3d8b0e |
Provides: kernel-modules >= %{kernel_version}.%{_arch}
|
|
|
f9038e |
|
|
|
3d8b0e |
Requires(post): %{_sbindir}/depmod
|
|
|
3d8b0e |
Requires(postun): %{_sbindir}/depmod
|
|
|
f9038e |
|
|
|
3d8b0e |
Requires(post): %{_sbindir}/weak-modules
|
|
|
3d8b0e |
Requires(postun): %{_sbindir}/weak-modules
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
cfd8b3 |
%if "%{version}" == "5.14.0.24" && "%{release}" == "10%{?dist}"
|
|
|
cfd8b3 |
Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-9%{?dist}
|
|
|
cfd8b3 |
%endif
|
|
|
cfd8b3 |
|
|
|
cfd8b3 |
|
|
|
f9038e |
%description
|
|
|
f9038e |
This package provides the LSI MPT Fusion SAS 3.0 Device (%{pkg}) driver.
|
|
|
f9038e |
Compared to the in-kernel driver this driver re-enables support for deprecated
|
|
|
f9038e |
mpt2sas adapters:
|
|
|
f9038e |
|
|
|
f9038e |
- 0x1000:0x0064: LSI SAS2116_1
|
|
|
f9038e |
- 0x1000:0x0065: LSI SAS2116_2
|
|
|
f9038e |
- 0x1000:0x0070: LSI SAS2004
|
|
|
f9038e |
- 0x1000:0x0072: LSI SAS2008
|
|
|
f9038e |
- 0x1000:0x0074: LSI SAS2108_1
|
|
|
f9038e |
- 0x1000:0x0076: LSI SAS2108_2
|
|
|
f9038e |
- 0x1000:0x0077: LSI SAS2108_3
|
|
|
f9038e |
- 0x1000:0x007E: LSI SSS6200
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%prep
|
|
|
f9038e |
%autosetup -p1 -n %{pkg}-%{driver_version}
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%build
|
|
|
f9038e |
pushd src
|
|
|
f9038e |
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
|
|
|
f9038e |
popd
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%install
|
|
|
f9038e |
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg} src/%{pkg}.ko
|
|
|
f9038e |
|
|
|
f9038e |
# Make .ko objects temporarily executable for automatic stripping
|
|
|
f9038e |
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
|
|
|
f9038e |
|
|
|
3d8b0e |
# Generate depmod.conf
|
|
|
3d8b0e |
%{__install} -d %{buildroot}/%{_sysconfdir}/depmod.d/
|
|
|
3d8b0e |
for kmod in $(find %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra -type f -name \*.ko -printf "%%P\n" | sort)
|
|
|
3d8b0e |
do
|
|
|
3d8b0e |
echo "override $(basename $kmod .ko) * weak-updates/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
|
3d8b0e |
done
|
|
|
3d8b0e |
|
|
|
f9038e |
|
|
|
f9038e |
%clean
|
|
|
f9038e |
%{__rm} -rf %{buildroot}
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%post
|
|
|
f9038e |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
3d8b0e |
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg}/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%preun
|
|
|
f9038e |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
3d8b0e |
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
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%postun
|
|
|
3d8b0e |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
|
|
|
f9038e |
then
|
|
|
3d8b0e |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
|
|
|
3d8b0e |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
|
f9038e |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
3d8b0e |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
|
|
|
f9038e |
fi
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
3d8b0e |
%pretrans -p <lua>
|
|
|
3d8b0e |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
|
|
|
3d8b0e |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
|
|
|
3d8b0e |
|
|
|
3d8b0e |
|
|
|
f9038e |
%posttrans
|
|
|
3d8b0e |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
|
|
|
f9038e |
then
|
|
|
3d8b0e |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
|
|
|
3d8b0e |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
f9038e |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
3d8b0e |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
|
|
|
f9038e |
fi
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%files
|
|
|
f9038e |
%defattr(644,root,root,755)
|
|
|
f9038e |
/lib/modules/%{kernel_version}.%{_arch}
|
|
|
148266 |
%license LICENSES
|
|
|
3d8b0e |
%config(noreplace) %{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
|
f9038e |
|
|
|
f9038e |
|
|
|
f9038e |
%changelog
|
|
Kmods SIG |
df40b7 |
* Thu Feb 24 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-5
|
|
Kmods SIG |
df40b7 |
- Rebuild for 5.14.0-65.el9
|
|
Kmods SIG |
df40b7 |
|
|
Kmods SIG |
06ef3c |
* Sun Feb 20 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-4
|
|
Kmods SIG |
06ef3c |
- Rebuild for 5.14.0-62.el9
|
|
Kmods SIG |
06ef3c |
|
|
Kmods SIG |
9d2696 |
* Fri Feb 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-3
|
|
Kmods SIG |
9d2696 |
- Rebuild for 5.14.0-60.el9
|
|
Kmods SIG |
9d2696 |
|
|
Kmods SIG |
e2e4ba |
* Tue Feb 15 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-2
|
|
Kmods SIG |
e2e4ba |
- Rebuild for 5.14.0-58.el9
|
|
Kmods SIG |
e2e4ba |
|
|
Kmods SIG |
1ff959 |
* Sat Feb 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-1
|
|
Kmods SIG |
1ff959 |
- Update to 5.14.0-57.el9
|
|
Kmods SIG |
1ff959 |
|
|
Kmods SIG |
2e4e8f |
* Thu Feb 10 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-15
|
|
Kmods SIG |
2e4e8f |
- Rebuild for 5.14.0-56.el9
|
|
Kmods SIG |
2e4e8f |
|
|
Kmods SIG |
057604 |
* Mon Feb 07 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-14
|
|
Kmods SIG |
057604 |
- Rebuild for 5.14.0-55.el9
|
|
Kmods SIG |
057604 |
|
|
Kmods SIG |
61dbea |
* Wed Feb 02 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-13
|
|
Kmods SIG |
61dbea |
- Rebuild for 5.14.0-51.el9
|
|
Kmods SIG |
61dbea |
|
|
Kmods SIG |
baaae3 |
* Thu Jan 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-12
|
|
Kmods SIG |
baaae3 |
- Rebuild for 5.14.0-48.el9
|
|
Kmods SIG |
baaae3 |
|
|
Kmods SIG |
30c2ce |
* Tue Jan 25 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-11
|
|
Kmods SIG |
30c2ce |
- Rebuild for 5.14.0-47.el9
|
|
Kmods SIG |
30c2ce |
|
|
|
b4cc70 |
* Wed Jan 19 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.24-10
|
|
|
b4cc70 |
- Enable ppc64le
|
|
|
b4cc70 |
|
|
Kmods SIG |
bacc73 |
* Wed Jan 19 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-9
|
|
Kmods SIG |
bacc73 |
- Rebuild for 5.14.0-44.el9
|
|
Kmods SIG |
bacc73 |
|
|
Kmods SIG |
ce2ad1 |
* Tue Jan 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-8
|
|
Kmods SIG |
ce2ad1 |
- Rebuild for 5.14.0-43.el9
|
|
Kmods SIG |
ce2ad1 |
|
|
Kmods SIG |
9c76f3 |
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-7
|
|
Kmods SIG |
9c76f3 |
- Rebuild for 5.14.0-42.el9
|
|
Kmods SIG |
9c76f3 |
|
|
Kmods SIG |
4129df |
* Fri Jan 14 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-6
|
|
Kmods SIG |
4129df |
- Rebuild for 5.14.0-41.el9
|
|
Kmods SIG |
4129df |
|
|
|
5882c3 |
* Sat Dec 25 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-5
|
|
|
5882c3 |
- Rebuild for 5.14.0-39.el9
|
|
|
5882c3 |
- Skip unreleased kernel -38
|
|
Kmods SIG |
b1dcdf |
|
|
Kmods SIG |
fcd581 |
* Thu Dec 23 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-4
|
|
Kmods SIG |
fcd581 |
- Rebuild for 5.14.0-37.el9
|
|
Kmods SIG |
fcd581 |
|
|
Kmods SIG |
479f0b |
* Wed Dec 22 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-3
|
|
Kmods SIG |
479f0b |
- Rebuild for 5.14.0-36.el9
|
|
Kmods SIG |
479f0b |
|
|
|
03cc79 |
* Wed Dec 22 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.24-2
|
|
|
03cc79 |
- Rebuild for 5.14.0-34.el9
|
|
|
03cc79 |
- Skip unreleased kernel -32 and -33
|
|
Kmods SIG |
ec1305 |
|
|
|
3d8b0e |
* Thu Dec 16 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.24-1
|
|
|
3d8b0e |
- Convert to kABI tracking kmod package (kernel >= 5.14.0-31.el9)
|