Blame SPECS/kmod-aacraid.spec

2b902d
%global pkg aacraid
2b902d
Kmods SIG f817a1
%global driver_version 5.14.0-57.el9
2b902d
Kmods SIG 78e063
%global kernel_version 5.14.0-75.el9
2b902d
2b902d
%global debug_package %{nil}
2b902d
2b902d
%global __spec_install_post \
2b902d
  %{?__debug_package:%{__debug_install_post}} \
2b902d
  %{__arch_install_post} \
2b902d
  %{__os_install_post} \
2b902d
  %{__mod_compress_install_post}
2b902d
2b902d
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
2b902d
2b902d
2b902d
Name:             kmod-%{pkg}
Kmods SIG f817a1
Version:          5.14.0.57
Kmods SIG 78e063
Release:          8%{?dist}
2b902d
Summary:          Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, HP NetRAID-4M, IBM ServeRAID & ICP SCSI (%{pkg}) driver
2b902d
d1495e
License:          GPLv2 and GPLv2+
2b902d
URL:              https://www.kernel.org/
2b902d
2b902d
Source0:          %{pkg}-%{driver_version}.tar.xz
2b902d
Patch1:           0001-add-deprecated-ids.patch
2b902d
0da3dc
ExclusiveArch:    x86_64 ppc64le
2b902d
2b902d
BuildRequires:    elfutils-libelf-devel
2b902d
BuildRequires:    gcc
cadd8e
BuildRequires:    kernel-rpm-macros
2b902d
BuildRequires:    kmod
2b902d
BuildRequires:    make
2b902d
BuildRequires:    redhat-rpm-config
2b902d
BuildRequires:    xz
2b902d
cadd8e
BuildRequires:    kernel-abi-stablelists = %{kernel_version}
2b902d
BuildRequires:    kernel-devel = %{kernel_version}
2b902d
BuildRequires:    kernel-devel-uname-r = %{kernel_version}.%{_arch}
2b902d
cadd8e
Requires:         kernel >= %{kernel_version}
cadd8e
Requires:         kernel-uname-r >= %{kernel_version}.%{_arch}
cadd8e
Requires:         kernel-modules >= %{kernel_version}
cadd8e
Requires:         kernel-modules-uname-r >= %{kernel_version}.%{_arch}
2b902d
2b902d
Provides:         installonlypkg(kernel-module)
cadd8e
Provides:         kernel-modules >= %{kernel_version}.%{_arch}
2b902d
cadd8e
Requires(post):   %{_sbindir}/depmod
cadd8e
Requires(postun): %{_sbindir}/depmod
2b902d
cadd8e
Requires(post):   %{_sbindir}/weak-modules
cadd8e
Requires(postun): %{_sbindir}/weak-modules
2b902d
2b902d
f65775
%if "%{version}" == "5.14.0.1" && "%{release}" == "10%{?dist}"
f65775
Obsoletes:        kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-9%{?dist}
f65775
%endif
f65775
f65775
2b902d
%description
2b902d
This package provides the Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid
2b902d
Products, HP NetRAID-4M, IBM ServeRAID & ICP SCSI driver (%{pkg}) driver.
2b902d
Compared to the in-kernel driver this driver re-enables support for deprecated
2b902d
adapters:
2b902d
2b902d
- 0x1011:0x0046:0x103C:0x10C2: HP NetRAID-4M
2b902d
- 0x1011:0x0046:0x9005:0x0364: Adaptec 5400S (Mustang)
2b902d
- 0x1011:0x0046:0x9005:0x0365: Adaptec 5400S (Mustang)
2b902d
- 0x1011:0x0046:0x9005:0x1364: Dell PERC 2/QC
2b902d
- 0x1028:0x0001:0x1028:0x0001: DELL PERC 2/Si (Iguana)
2b902d
- 0x1028:0x0002:0x1028:0x0002: DELL PERC 3/Di (Opal)
2b902d
- 0x1028:0x0002:0x1028:0x00D1: DELL PERC 3/Di (Viper)
2b902d
- 0x1028:0x0002:0x1028:0x00D9: DELL PERC 3/Di (Lexus)
2b902d
- 0x1028:0x0003:0x1028:0x0003: DELL PERC 3/Si (SlimFast)
2b902d
- 0x1028:0x0004:0x1028:0x00D0: DELL PERC 3/Di (Iguana FlipChip)
2b902d
- 0x1028:0x000A:0x1028:0x0106: DELL PERC 3/Di (Jaguar)
2b902d
- 0x1028:0x000A:0x1028:0x011B: DELL PERC 3/Di (Dagger)
2b902d
- 0x1028:0x000A:0x1028:0x0121: DELL PERC 3/Di (Boxster)
2b902d
- 0x9005:0x0200:0x9005:0x0200: Themisto Jupiter Platform
2b902d
- 0x9005:0x0283:0x9005:0x0283: Catapult
2b902d
- 0x9005:0x0284:0x9005:0x0284: Tomcat
2b902d
- 0x9005:0x0285: Adaptec Catch All
2b902d
- 0x9005:0x0285:0x1014:0x02F2: IBM 8i (AvonPark)
2b902d
- 0x9005:0x0285:0x1014:0x0312: IBM 8i (AvonPark Lite)
2b902d
- 0x9005:0x0285:0x1028: Dell Catchall
2b902d
- 0x9005:0x0285:0x1028:0x0287: Perc 320/DC
2b902d
- 0x9005:0x0285:0x1028:0x0291: CERC SATA RAID 2 PCI SATA 6ch (DellCorsair)
2b902d
- 0x9005:0x0285:0x103C:0x3227: AAR-2610SA PCI SATA 6ch
2b902d
- 0x9005:0x0285:0x17AA: Legend Catchall
2b902d
- 0x9005:0x0285:0x17AA:0x0286: Legend S220 (Legend Crusader)
2b902d
- 0x9005:0x0285:0x17AA:0x0287: Legend S230 (Legend Vulcan)
2b902d
- 0x9005:0x0285:0x9005:0x0285: Adaptec 2200S (Vulcan)
2b902d
- 0x9005:0x0285:0x9005:0x0286: Adaptec 2120S (Crusader)
2b902d
- 0x9005:0x0285:0x9005:0x0287: Adaptec 2200S (Vulcan-2m)
2b902d
- 0x9005:0x0285:0x9005:0x0288: Adaptec 3230S (Harrier)
2b902d
- 0x9005:0x0285:0x9005:0x0289: Adaptec 3240S (Tornado)
2b902d
- 0x9005:0x0285:0x9005:0x028A: ASR-2020ZCR SCSI PCI-X ZCR (Skyhawk)
2b902d
- 0x9005:0x0285:0x9005:0x028B: ASR-2025ZCR SCSI SO-DIMM PCI-X ZCR (Terminator)
2b902d
- 0x9005:0x0285:0x9005:0x028E: ASR-2020SA SATA PCI-X ZCR (Skyhawk)
2b902d
- 0x9005:0x0285:0x9005:0x028F: ASR-2025SA SATA SO-DIMM PCI-X ZCR (Terminator)
2b902d
- 0x9005:0x0285:0x9005:0x0290: AAR-2410SA PCI SATA 4ch (Jaguar II)
2b902d
- 0x9005:0x0285:0x9005:0x0292: AAR-2810SA PCI SATA 8ch (Corsair-8)
2b902d
- 0x9005:0x0285:0x9005:0x0293: AAR-21610SA PCI SATA 16ch (Corsair-16)
2b902d
- 0x9005:0x0285:0x9005:0x0294: ESD SO-DIMM PCI-X SATA ZCR (Prowler)
2b902d
- 0x9005:0x0285:0x9005:0x0296: ASR-2240S (SabreExpress)
2b902d
- 0x9005:0x0285:0x9005:0x0297: ASR-4005
2b902d
- 0x9005:0x0285:0x9005:0x0298: ASR-4000 (BlackBird)
2b902d
- 0x9005:0x0285:0x9005:0x0299: ASR-4800SAS (Marauder-X)
2b902d
- 0x9005:0x0285:0x9005:0x029A: ASR-4805SAS (Marauder-E)
2b902d
- 0x9005:0x0285:0x9005:0x02A4: ICP9085LI (Marauder-X)
2b902d
- 0x9005:0x0285:0x9005:0x02A5: ICP5085BR (Marauder-E)
2b902d
- 0x9005:0x0286: Adaptec Rocket Catch All
2b902d
- 0x9005:0x0286:0x1014:0x9540: IBM 8k/8k-l4 (Aurora Lite)
2b902d
- 0x9005:0x0286:0x1014:0x9580: IBM 8k/8k-l8 (Aurora)
2b902d
- 0x9005:0x0286:0x9005:0x028C: ASR-2230S/ASR-2230SLP PCI-X (Lancer)
2b902d
- 0x9005:0x0286:0x9005:0x028D: ASR-2130S (Lancer)
2b902d
- 0x9005:0x0286:0x9005:0x029B: AAR-2820SA (Intruder)
2b902d
- 0x9005:0x0286:0x9005:0x029C: AAR-2620SA (Intruder)
2b902d
- 0x9005:0x0286:0x9005:0x029D: AAR-2420SA (Intruder)
2b902d
- 0x9005:0x0286:0x9005:0x029E: ICP9024RO (Lancer)
2b902d
- 0x9005:0x0286:0x9005:0x029F: ICP9014RO (Lancer)
2b902d
- 0x9005:0x0286:0x9005:0x02A0: ICP9047MA (Lancer)
2b902d
- 0x9005:0x0286:0x9005:0x02A1: ICP9087MA (Lancer)
2b902d
- 0x9005:0x0286:0x9005:0x02A2: ASR-3800 (Hurricane44)
2b902d
- 0x9005:0x0286:0x9005:0x02A3: ICP5445AU (Hurricane44)
2b902d
- 0x9005:0x0286:0x9005:0x02A6: ICP9067MA (Intruder-6)
2b902d
- 0x9005:0x0286:0x9005:0x0800: Callisto Jupiter Platform
2b902d
- 0x9005:0x0287:0x9005:0x0800: Themisto Jupiter Platform
2b902d
- 0x9005:0x0288: Adaptec NEMER/ARK Catch All
2b902d
2b902d
2b902d
%prep
2b902d
%autosetup -p1 -n %{pkg}-%{driver_version}
2b902d
2b902d
2b902d
%build
2b902d
pushd src
2b902d
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
2b902d
popd
2b902d
2b902d
2b902d
%install
2b902d
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg} src/%{pkg}.ko
2b902d
2b902d
# Make .ko objects temporarily executable for automatic stripping
2b902d
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
2b902d
cadd8e
# Generate depmod.conf
cadd8e
%{__install} -d %{buildroot}/%{_sysconfdir}/depmod.d/
cadd8e
for kmod in $(find %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra -type f -name \*.ko -printf "%%P\n" | sort)
cadd8e
do
cadd8e
    echo "override $(basename $kmod .ko) * weak-updates/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf
cadd8e
done
cadd8e
2b902d
2b902d
%clean
2b902d
%{__rm} -rf %{buildroot}
2b902d
2b902d
2b902d
%post
2b902d
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
cadd8e
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg}/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
2b902d
2b902d
2b902d
%preun
2b902d
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
cadd8e
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
2b902d
2b902d
2b902d
%postun
cadd8e
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
2b902d
then
cadd8e
    modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
cadd8e
    rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
2b902d
    rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
cadd8e
    printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
2b902d
fi
2b902d
2b902d
cadd8e
%pretrans -p <lua>
cadd8e
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
cadd8e
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
cadd8e
cadd8e
2b902d
%posttrans
cadd8e
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
2b902d
then
cadd8e
    modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
cadd8e
    rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
2b902d
    rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
cadd8e
    printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
2b902d
fi
2b902d
2b902d
2b902d
%files
2b902d
%defattr(644,root,root,755)
2b902d
/lib/modules/%{kernel_version}.%{_arch}
0b4b5b
%license LICENSES
cadd8e
%config(noreplace) %{_sysconfdir}/depmod.d/%{pkg}.conf
2b902d
2b902d
2b902d
%changelog
Kmods SIG 78e063
* Mon Mar 28 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-8
Kmods SIG 78e063
- Rebuild for 5.14.0-75.el9
Kmods SIG 78e063
Kmods SIG ff348b
* Tue Mar 22 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-7
Kmods SIG ff348b
- Rebuild for 5.14.0-73.el9
Kmods SIG ff348b
Kmods SIG a123d2
* Sat Feb 26 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-6
Kmods SIG a123d2
- Rebuild for 5.14.0-69.el9
Kmods SIG a123d2
Kmods SIG 7a176d
* Thu Feb 24 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-5
Kmods SIG 7a176d
- Rebuild for 5.14.0-65.el9
Kmods SIG 7a176d
Kmods SIG e7a410
* Sun Feb 20 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-4
Kmods SIG e7a410
- Rebuild for 5.14.0-62.el9
Kmods SIG e7a410
Kmods SIG ba464d
* Fri Feb 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-3
Kmods SIG ba464d
- Rebuild for 5.14.0-60.el9
Kmods SIG ba464d
Kmods SIG fa6fbe
* Tue Feb 15 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-2
Kmods SIG fa6fbe
- Rebuild for 5.14.0-58.el9
Kmods SIG fa6fbe
Kmods SIG f817a1
* Sat Feb 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.57-1
Kmods SIG f817a1
- Update to 5.14.0-57.el9
Kmods SIG f817a1
Kmods SIG a26b23
* Thu Feb 10 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-15
Kmods SIG a26b23
- Rebuild for 5.14.0-56.el9
Kmods SIG a26b23
Kmods SIG aab43f
* Mon Feb 07 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-14
Kmods SIG aab43f
- Rebuild for 5.14.0-55.el9
Kmods SIG aab43f
Kmods SIG 32956a
* Wed Feb 02 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-13
Kmods SIG 32956a
- Rebuild for 5.14.0-51.el9
Kmods SIG 32956a
Kmods SIG abb1b7
* Thu Jan 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-12
Kmods SIG abb1b7
- Rebuild for 5.14.0-48.el9
Kmods SIG abb1b7
Kmods SIG 3ecd0e
* Tue Jan 25 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-11
Kmods SIG 3ecd0e
- Rebuild for 5.14.0-47.el9
Kmods SIG 3ecd0e
0da3dc
* Wed Jan 19 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.1-10
0da3dc
- Enable ppc64le
0da3dc
Kmods SIG 561ffe
* Wed Jan 19 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-9
Kmods SIG 561ffe
- Rebuild for 5.14.0-44.el9
Kmods SIG 561ffe
Kmods SIG 3bc191
* Tue Jan 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-8
Kmods SIG 3bc191
- Rebuild for 5.14.0-43.el9
Kmods SIG 3bc191
Kmods SIG 36cb70
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-7
Kmods SIG 36cb70
- Rebuild for 5.14.0-42.el9
Kmods SIG 36cb70
Kmods SIG 64f35a
* Fri Jan 14 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-6
Kmods SIG 64f35a
- Rebuild for 5.14.0-41.el9
Kmods SIG 64f35a
3a745b
* Sat Dec 25 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-5
3a745b
- Rebuild for 5.14.0-39.el9
3a745b
- Skip unreleased kernel -38
Kmods SIG 7faf0c
Kmods SIG fb351b
* Thu Dec 23 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-4
Kmods SIG fb351b
- Rebuild for 5.14.0-37.el9
Kmods SIG fb351b
Kmods SIG 03bd61
* Wed Dec 22 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-3
Kmods SIG 03bd61
- Rebuild for 5.14.0-36.el9
Kmods SIG 03bd61
b3877d
* Wed Dec 22 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-2
b3877d
- Rebuild for 5.14.0-34.el9
b3877d
- Skip unreleased kernel -32 and -33
Kmods SIG 21a9a7
cadd8e
* Thu Dec 16 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.1-1
cadd8e
- Convert to kABI tracking kmod package (kernel >= 5.14.0-31.el9)