|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%global pkg megaraid_sas
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
%global driver_version 4.18.0-348.el8
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
%global kernel_version 4.18.0-348.el8
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%global _use_internal_dependency_generator 0
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
%global __find_requires /usr/lib/rpm/redhat/find-requires
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
%global __find_provides /usr/lib/rpm/redhat/find-provides
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%global debug_package %{nil}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%global __spec_install_post \
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%{?__debug_package:%{__debug_install_post}} \
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%{__arch_install_post} \
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%{__os_install_post} \
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%{__mod_compress_install_post}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
Name: kmod-%{pkg}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
Version: 4.18.0
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Release: 348%{?dist}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
Summary: Broadcom MegaRAID SAS (%{pkg}) driver
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
License: GPLv2
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
URL: https://www.kernel.org/
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
8b966e |
Source0: %{pkg}-%{driver_version}.tar.xz
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
Patch1: 0001-add-deprecated-ids.patch
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
ExclusiveArch: x86_64 aarch64
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
BuildRequires: elfutils-libelf-devel
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
BuildRequires: gcc
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
BuildRequires: kernel-rpm-macros
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
BuildRequires: kmod
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
BuildRequires: make
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
BuildRequires: redhat-rpm-config
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
BuildRequires: xz
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
BuildRequires: kernel-abi-stablelists = %{kernel_version}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
BuildRequires: kernel-devel = %{kernel_version}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
d4c797 |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires: kernel >= %{kernel_version}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires: kernel-uname-r >= %{kernel_version}.%{_arch}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires: kernel-modules >= %{kernel_version}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires: kernel-modules-uname-r >= %{kernel_version}.%{_arch}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
8015bc |
Provides: installonlypkg(kernel-module)
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Provides: kernel-modules >= %{kernel_version}.%{_arch}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires(post): %{_sbindir}/depmod
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires(postun): %{_sbindir}/depmod
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires(post): %{_sbindir}/weak-modules
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
Requires(postun): %{_sbindir}/weak-modules
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
53e9b1 |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%description
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
This package provides the Broadcom MegaRAID SAS (%{pkg}) driver. Compared to
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
the in-kernel driver this driver re-enables support for deprecated adapters:
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x0060: LSI MegaRAID SAS1078R
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x0078: LSI MegaRAID SAS1078 Gen2
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x007C: LSI MegaRAID SAS1078DE
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x0411: LSI MegaRAID SAS1064R
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x0413: LSI MegaRAID SAS1068 Verde ZCR
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1028:0x0015: Dell PERC5
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
The removal of the following adapters has been reverted in 4.18.0-290 [1761485]:
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x0071: LSI MegaRAID SAS0071 Skinny
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x0073: LSI MegaRAID SAS0073 Skinny
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- 0x1000:0x0079: LSI MegaRAID SAS0079 Gen2
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%prep
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
8b966e |
%autosetup -p1 -n %{pkg}-%{driver_version}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%build
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
pushd src
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
popd
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%install
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/megaraid src/%{pkg}.ko
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
# Make .ko objects temporarily executable for automatic stripping
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
# Generate depmod.conf
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
%{__install} -d %{buildroot}/%{_sysconfdir}/depmod.d/
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
for kmod in $(find %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra -type f -name \*.ko -printf "%%P\n" | sort)
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
do
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
echo "override $(basename $kmod .ko) * weak-updates/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
done
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%clean
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%{__rm} -rf %{buildroot}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%post
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/megaraid/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
%preun
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
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
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%postun
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
then
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
fi
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
%pretrans -p <lua>
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
%posttrans
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
then
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
eccca9 |
fi
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%files
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%defattr(644,root,root,755)
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
/lib/modules/%{kernel_version}.%{_arch}
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%license COPYING
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
%config(noreplace) %{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
* Wed Oct 27 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0-348
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
- Convert to kABI tracking kmod package (kernel >= 4.18.0-348.el8)
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
- Update to 4.18.0-348.el8
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
56fa8f |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
682dfe |
* Mon Aug 30 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0-338
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
682dfe |
- Set specific kernel version to use
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
682dfe |
- Rename kernel_version_min to driver_version
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
682dfe |
- Add Provides kernel-modules
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
682dfe |
- Rebuild for 4.18.0-338.el8
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
682dfe |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
7955f7 |
* Thu Aug 19 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0-331
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
7955f7 |
- Rebuild for 4.18.0-331.el8
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
7955f7 |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
* Wed Aug 11 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0-326
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
2d0a03 |
- Update to 4.18.0-326.el8
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
- Fix provides/requires
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
- Fix kernel dependencies
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
- Add convenient provides kmod-aacraid-`uname -r`
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
- Fix installonlypkg detection
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
- Recreate source tarballs
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
- Rebuild for dist = .el8s
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
efed5a |
* Fri Jul 23 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0-310
|
|
![](https://seccdn.libravatar.org/avatar/3aca30869987a7956e55611d7b09cf8feeda4ed6012702006dfc43728025673c?s=16&d=retro) |
f3328c |
- Initial version
|