|
Kmods SIG |
0a3da7 |
%global pkg mptfc
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%global driver_version 4.18.0-80.el8
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%global kernel_version 4.18.0-348.el8
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%global _use_internal_dependency_generator 0
|
|
Kmods SIG |
0a3da7 |
%global __find_requires /usr/lib/rpm/redhat/find-requires
|
|
Kmods SIG |
0a3da7 |
%global __find_provides /usr/lib/rpm/redhat/find-provides
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%global debug_package %{nil}
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%global __spec_install_post \
|
|
Kmods SIG |
0a3da7 |
%{?__debug_package:%{__debug_install_post}} \
|
|
Kmods SIG |
0a3da7 |
%{__arch_install_post} \
|
|
Kmods SIG |
0a3da7 |
%{__os_install_post} \
|
|
Kmods SIG |
0a3da7 |
%{__mod_compress_install_post}
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
Name: kmod-%{pkg}
|
|
Kmods SIG |
0a3da7 |
Version: 4.18.0.80
|
|
|
1d1cfe |
Release: 3%{?dist}
|
|
Kmods SIG |
0a3da7 |
Summary: Fusion MPT FC Host (%{pkg}) driver
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
License: GPLv2
|
|
Kmods SIG |
0a3da7 |
URL: https://www.kernel.org/
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
Source0: %{pkg}-%{driver_version}.tar.xz
|
|
Kmods SIG |
0a3da7 |
|
|
|
0e0875 |
ExclusiveArch: x86_64 aarch64 ppc64le
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
BuildRequires: elfutils-libelf-devel
|
|
Kmods SIG |
0a3da7 |
BuildRequires: gcc
|
|
Kmods SIG |
0a3da7 |
BuildRequires: kernel-rpm-macros
|
|
Kmods SIG |
0a3da7 |
BuildRequires: kmod
|
|
Kmods SIG |
0a3da7 |
BuildRequires: make
|
|
Kmods SIG |
0a3da7 |
BuildRequires: redhat-rpm-config
|
|
Kmods SIG |
0a3da7 |
BuildRequires: xz
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
BuildRequires: kernel-abi-stablelists = %{kernel_version}
|
|
Kmods SIG |
0a3da7 |
BuildRequires: kernel-devel = %{kernel_version}
|
|
Kmods SIG |
0a3da7 |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
Requires: kernel >= %{kernel_version}
|
|
Kmods SIG |
0a3da7 |
Requires: kernel-uname-r >= %{kernel_version}.%{_arch}
|
|
Kmods SIG |
0a3da7 |
Requires: kernel-modules >= %{kernel_version}
|
|
Kmods SIG |
0a3da7 |
Requires: kernel-modules-uname-r >= %{kernel_version}.%{_arch}
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
Provides: installonlypkg(kernel-module)
|
|
Kmods SIG |
0a3da7 |
Provides: kernel-modules >= %{kernel_version}.%{_arch}
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
Requires(post): %{_sbindir}/depmod
|
|
Kmods SIG |
0a3da7 |
Requires(postun): %{_sbindir}/depmod
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
Requires(post): %{_sbindir}/weak-modules
|
|
Kmods SIG |
0a3da7 |
Requires(postun): %{_sbindir}/weak-modules
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
|
1d1cfe |
%if "%{version}" == "4.18.0.80" && "%{release}" == "2%{?dist}"
|
|
|
1d1cfe |
Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist}
|
|
|
1d1cfe |
%endif
|
|
|
1d1cfe |
|
|
|
1d1cfe |
%if "%{version}" == "4.18.0.80" && "%{release}" == "3%{?dist}"
|
|
|
1d1cfe |
Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist}
|
|
|
1d1cfe |
Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist}
|
|
|
1d1cfe |
%endif
|
|
|
1d1cfe |
|
|
|
1d1cfe |
|
|
Kmods SIG |
0a3da7 |
%description
|
|
Kmods SIG |
0a3da7 |
This package provides the Fusion MPT FC Host (%{pkg}) driver.
|
|
Kmods SIG |
0a3da7 |
It supports the following adapters:
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0621: LSI FC909
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0624: LSI FC919
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0622: LSI FC929
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0628: LSI FC919X
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0626: LSI FC929X
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0642: LSI FC939X
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0640: LSI FC949X
|
|
Kmods SIG |
0a3da7 |
- 0x1000:0x0646: LSI FC949E
|
|
Kmods SIG |
0a3da7 |
- 0x1657:0x0646: Brocade FC 410/420
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%prep
|
|
Kmods SIG |
0a3da7 |
%autosetup -p1 -n %{pkg}-%{driver_version}
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%build
|
|
Kmods SIG |
0a3da7 |
pushd src
|
|
Kmods SIG |
0a3da7 |
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
|
|
Kmods SIG |
0a3da7 |
popd
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%install
|
|
Kmods SIG |
0a3da7 |
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/message/fusion src/%{pkg}.ko
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
# Make .ko objects temporarily executable for automatic stripping
|
|
Kmods SIG |
0a3da7 |
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%clean
|
|
Kmods SIG |
0a3da7 |
%{__rm} -rf %{buildroot}
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%post
|
|
Kmods SIG |
0a3da7 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
0a3da7 |
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/message/fusion/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%preun
|
|
Kmods SIG |
0a3da7 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
0a3da7 |
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
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%postun
|
|
Kmods SIG |
0a3da7 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
|
|
Kmods SIG |
0a3da7 |
then
|
|
Kmods SIG |
0a3da7 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
|
|
Kmods SIG |
0a3da7 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
Kmods SIG |
0a3da7 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
0a3da7 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
|
|
Kmods SIG |
0a3da7 |
fi
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%pretrans -p <lua>
|
|
Kmods SIG |
0a3da7 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
|
|
Kmods SIG |
0a3da7 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%posttrans
|
|
Kmods SIG |
0a3da7 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
|
|
Kmods SIG |
0a3da7 |
then
|
|
Kmods SIG |
0a3da7 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
|
|
Kmods SIG |
0a3da7 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
Kmods SIG |
0a3da7 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
0a3da7 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
|
|
Kmods SIG |
0a3da7 |
fi
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%files
|
|
Kmods SIG |
0a3da7 |
%defattr(644,root,root,755)
|
|
Kmods SIG |
0a3da7 |
/lib/modules/%{kernel_version}.%{_arch}
|
|
|
18a4bd |
%license LICENSES
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
|
|
Kmods SIG |
0a3da7 |
%changelog
|
|
|
1d1cfe |
* Thu Jan 27 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0.80-3
|
|
|
1d1cfe |
- Add obsoletes for update path
|
|
|
1d1cfe |
|
|
|
0e0875 |
* Sat Jan 22 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0.80-2
|
|
|
0e0875 |
- Enable ppc64le
|
|
|
0e0875 |
|
|
Kmods SIG |
0a3da7 |
* Tue Jan 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 4.18.0.80-1
|
|
Kmods SIG |
0a3da7 |
- Use EL kernel source and versioning
|
|
Kmods SIG |
0a3da7 |
- kABI tracking kmod package (kernel >= 4.18.0-348.el8)
|