|
Kmods SIG |
2ad684 |
%global pkg btrfs
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
c74cd4 |
%global driver_version 5.14.0-87.el9
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
c74cd4 |
%global kernel_version 5.14.0-96.el9
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%global debug_package %{nil}
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%global __spec_install_post \
|
|
Kmods SIG |
2ad684 |
%{?__debug_package:%{__debug_install_post}} \
|
|
Kmods SIG |
2ad684 |
%{__arch_install_post} \
|
|
Kmods SIG |
2ad684 |
%{__os_install_post} \
|
|
Kmods SIG |
2ad684 |
%{__mod_compress_install_post}
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
Name: kmod-%{pkg}
|
|
Kmods SIG |
c74cd4 |
Version: 5.14.0.87
|
|
Kmods SIG |
c74cd4 |
Release: 1%{?dist}
|
|
Kmods SIG |
2ad684 |
Summary: Btrfs filesystem support
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
License: GPLv2
|
|
Kmods SIG |
2ad684 |
URL: https://www.kernel.org/
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
Source0: %{pkg}-%{driver_version}.tar.xz
|
|
Kmods SIG |
2ad684 |
Patch9999: 9999-enable-btrfs.patch
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
ExclusiveArch: x86_64 aarch64 ppc64le
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
BuildRequires: elfutils-libelf-devel
|
|
Kmods SIG |
2ad684 |
BuildRequires: gcc
|
|
Kmods SIG |
2ad684 |
BuildRequires: kernel-rpm-macros
|
|
Kmods SIG |
2ad684 |
BuildRequires: kmod
|
|
Kmods SIG |
2ad684 |
BuildRequires: make
|
|
Kmods SIG |
2ad684 |
BuildRequires: redhat-rpm-config
|
|
Kmods SIG |
2ad684 |
BuildRequires: xz
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
BuildRequires: kernel-abi-stablelists = %{kernel_version}
|
|
Kmods SIG |
2ad684 |
BuildRequires: kernel-devel = %{kernel_version}
|
|
Kmods SIG |
2ad684 |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
Requires: kernel >= %{kernel_version}
|
|
Kmods SIG |
2ad684 |
Requires: kernel-uname-r >= %{kernel_version}.%{_arch}
|
|
Kmods SIG |
2ad684 |
Requires: kernel-modules >= %{kernel_version}
|
|
Kmods SIG |
2ad684 |
Requires: kernel-modules-uname-r >= %{kernel_version}.%{_arch}
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
Provides: installonlypkg(kernel-module)
|
|
Kmods SIG |
2ad684 |
Provides: kernel-modules >= %{kernel_version}.%{_arch}
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
Requires(post): %{_sbindir}/depmod
|
|
Kmods SIG |
2ad684 |
Requires(postun): %{_sbindir}/depmod
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
Requires(post): %{_sbindir}/weak-modules
|
|
Kmods SIG |
2ad684 |
Requires(postun): %{_sbindir}/weak-modules
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
Supplements: btrfs-progs
|
|
Kmods SIG |
2ad684 |
Recommends: btrfs-progs
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
|
4105a5 |
%if "%{version}" == "5.14.0.34" && "%{release}" == "2%{?dist}"
|
|
|
4105a5 |
Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist}
|
|
|
4105a5 |
%endif
|
|
|
4105a5 |
|
|
|
4105a5 |
%if "%{version}" == "5.14.0.45" && "%{release}" == "2%{?dist}"
|
|
|
4105a5 |
Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist}
|
|
|
4105a5 |
%endif
|
|
|
4105a5 |
|
|
|
4105a5 |
|
|
Kmods SIG |
2ad684 |
%description
|
|
Kmods SIG |
2ad684 |
Btrfs is a general purpose copy-on-write filesystem with extents, writable
|
|
Kmods SIG |
2ad684 |
snapshotting, support for multiple devices and many more features focused on
|
|
Kmods SIG |
2ad684 |
fault tolerance, repair and easy administration.
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%prep
|
|
Kmods SIG |
2ad684 |
%autosetup -p1 -n %{pkg}-%{driver_version}
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%build
|
|
Kmods SIG |
2ad684 |
pushd src
|
|
Kmods SIG |
2ad684 |
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
|
|
Kmods SIG |
2ad684 |
popd
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%install
|
|
Kmods SIG |
2ad684 |
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/fs src/%{pkg}.ko
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
# Make .ko objects temporarily executable for automatic stripping
|
|
Kmods SIG |
2ad684 |
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%clean
|
|
Kmods SIG |
2ad684 |
%{__rm} -rf %{buildroot}
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%post
|
|
Kmods SIG |
2ad684 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
2ad684 |
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/fs/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%preun
|
|
Kmods SIG |
2ad684 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
2ad684 |
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 |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%postun
|
|
Kmods SIG |
2ad684 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
|
|
Kmods SIG |
2ad684 |
then
|
|
Kmods SIG |
2ad684 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
|
|
Kmods SIG |
2ad684 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
Kmods SIG |
2ad684 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
2ad684 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
|
|
Kmods SIG |
2ad684 |
fi
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%pretrans -p <lua>
|
|
Kmods SIG |
2ad684 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
|
|
Kmods SIG |
2ad684 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%posttrans
|
|
Kmods SIG |
2ad684 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
|
|
Kmods SIG |
2ad684 |
then
|
|
Kmods SIG |
2ad684 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
|
|
Kmods SIG |
2ad684 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
Kmods SIG |
2ad684 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
Kmods SIG |
2ad684 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
|
|
Kmods SIG |
2ad684 |
fi
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%files
|
|
Kmods SIG |
2ad684 |
%defattr(644,root,root,755)
|
|
Kmods SIG |
2ad684 |
/lib/modules/%{kernel_version}.%{_arch}
|
|
|
12a7d3 |
%license LICENSES
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
|
|
Kmods SIG |
2ad684 |
%changelog
|
|
Kmods SIG |
c74cd4 |
* Fri May 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.87-1
|
|
Kmods SIG |
c74cd4 |
- Update to 5.14.0-87.el9
|
|
Kmods SIG |
c74cd4 |
|
|
Kmods SIG |
dbb6f0 |
* Fri May 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-12
|
|
Kmods SIG |
dbb6f0 |
- Rebuild for 5.14.0-86.el9
|
|
Kmods SIG |
dbb6f0 |
|
|
Kmods SIG |
0a4cb8 |
* Fri May 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-11
|
|
Kmods SIG |
0a4cb8 |
- Rebuild for 5.14.0-85.el9
|
|
Kmods SIG |
0a4cb8 |
|
|
Kmods SIG |
d15a2f |
* Thu May 26 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-10
|
|
Kmods SIG |
d15a2f |
- Rebuild for 5.14.0-83.el9
|
|
Kmods SIG |
d15a2f |
|
|
Kmods SIG |
2e0682 |
* Sat May 07 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-9
|
|
Kmods SIG |
2e0682 |
- Rebuild for 5.14.0-80.el9
|
|
Kmods SIG |
2e0682 |
|
|
Kmods SIG |
dfd69c |
* Fri Apr 22 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-8
|
|
Kmods SIG |
dfd69c |
- Rebuild for 5.14.0-79.el9
|
|
Kmods SIG |
dfd69c |
|
|
Kmods SIG |
b75a3f |
* Wed Apr 13 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-7
|
|
Kmods SIG |
b75a3f |
- Rebuild for 5.14.0-78.el9
|
|
Kmods SIG |
b75a3f |
|
|
Kmods SIG |
d62131 |
* Tue Apr 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-6
|
|
Kmods SIG |
d62131 |
- Rebuild for 5.14.0-77.el9
|
|
Kmods SIG |
d62131 |
|
|
Kmods SIG |
7609e3 |
* Mon Mar 28 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-5
|
|
Kmods SIG |
7609e3 |
- Rebuild for 5.14.0-75.el9
|
|
Kmods SIG |
7609e3 |
|
|
Kmods SIG |
8c1c9f |
* Tue Mar 22 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-4
|
|
Kmods SIG |
8c1c9f |
- Rebuild for 5.14.0-73.el9
|
|
Kmods SIG |
8c1c9f |
|
|
Kmods SIG |
49bcf4 |
* Sat Feb 26 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-3
|
|
Kmods SIG |
49bcf4 |
- Rebuild for 5.14.0-69.el9
|
|
Kmods SIG |
49bcf4 |
|
|
Kmods SIG |
36afae |
* Sun Feb 20 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-2
|
|
Kmods SIG |
36afae |
- Rebuild for 5.14.0-62.el9
|
|
Kmods SIG |
36afae |
|
|
Kmods SIG |
ddd5e6 |
* Fri Feb 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.59-1
|
|
Kmods SIG |
ddd5e6 |
- Update to 5.14.0-59.el9
|
|
Kmods SIG |
ddd5e6 |
|
|
Kmods SIG |
3f1298 |
* Tue Feb 15 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-9
|
|
Kmods SIG |
3f1298 |
- Rebuild for 5.14.0-58.el9
|
|
Kmods SIG |
3f1298 |
|
|
Kmods SIG |
3bb228 |
* Sat Feb 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-8
|
|
Kmods SIG |
3bb228 |
- Rebuild for 5.14.0-57.el9
|
|
Kmods SIG |
3bb228 |
|
|
Kmods SIG |
ba4269 |
* Thu Feb 10 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-7
|
|
Kmods SIG |
ba4269 |
- Rebuild for 5.14.0-56.el9
|
|
Kmods SIG |
ba4269 |
|
|
Kmods SIG |
b012ec |
* Wed Feb 02 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-6
|
|
Kmods SIG |
b012ec |
- Rebuild for 5.14.0-51.el9
|
|
Kmods SIG |
b012ec |
|
|
Kmods SIG |
25db96 |
* Tue Feb 01 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-5
|
|
Kmods SIG |
25db96 |
- Rebuild for 5.14.0-50.el9
|
|
Kmods SIG |
25db96 |
|
|
Kmods SIG |
3bf2e2 |
* Sat Jan 29 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-4
|
|
Kmods SIG |
3bf2e2 |
- Rebuild for 5.14.0-49.el9
|
|
Kmods SIG |
3bf2e2 |
|
|
Kmods SIG |
199604 |
* Thu Jan 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-3
|
|
Kmods SIG |
199604 |
- Rebuild for 5.14.0-48.el9
|
|
Kmods SIG |
199604 |
|
|
|
c7de60 |
* Wed Jan 26 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.45-2
|
|
|
c7de60 |
- Drop dracut conf
|
|
|
c7de60 |
|
|
Kmods SIG |
3f9ceb |
* Tue Jan 25 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.45-1
|
|
Kmods SIG |
3f9ceb |
- Update to 5.14.0-45.el9
|
|
Kmods SIG |
3f9ceb |
|
|
|
e57dcd |
* Wed Jan 19 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.34-2
|
|
|
e57dcd |
- Add dracut conf to include btrfs in initramfs
|
|
|
e57dcd |
|
|
|
7f8f55 |
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.34-1
|
|
Kmods SIG |
2ad684 |
- Switch to EL kernel source and versioning
|
|
Kmods SIG |
2ad684 |
- kABI tracking kmod package (kernel >= 5.14.0-44.el9)
|