|
|
cef010 |
%global pkg ntfs3
|
|
|
cef010 |
|
|
Kmods SIG |
8b3d74 |
%global kernel_version 5.14.0-41.el9
|
|
|
cef010 |
|
|
|
cef010 |
%global debug_package %{nil}
|
|
|
cef010 |
|
|
|
cef010 |
%global __spec_install_post \
|
|
|
cef010 |
%{?__debug_package:%{__debug_install_post}} \
|
|
|
cef010 |
%{__arch_install_post} \
|
|
|
cef010 |
%{__os_install_post} \
|
|
|
cef010 |
%{__mod_compress_install_post}
|
|
|
cef010 |
|
|
|
cef010 |
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
Name: kmod-%{pkg}
|
|
|
cef010 |
Version: 5.15
|
|
Kmods SIG |
8b3d74 |
Release: 6%{?dist}
|
|
|
cef010 |
Summary: NTFS filesystem support
|
|
|
cef010 |
|
|
|
cef010 |
License: GPLv2
|
|
|
cef010 |
URL: https://www.kernel.org/
|
|
|
cef010 |
|
|
|
cef010 |
Source0: %{pkg}-%{version}.tar.xz
|
|
|
cef010 |
|
|
|
cef010 |
ExclusiveArch: x86_64 aarch64
|
|
|
cef010 |
|
|
|
cef010 |
BuildRequires: elfutils-libelf-devel
|
|
|
cef010 |
BuildRequires: gcc
|
|
|
cef010 |
BuildRequires: kernel-rpm-macros
|
|
|
cef010 |
BuildRequires: kmod
|
|
|
cef010 |
BuildRequires: make
|
|
|
cef010 |
BuildRequires: redhat-rpm-config
|
|
|
cef010 |
BuildRequires: xz
|
|
|
cef010 |
|
|
|
cef010 |
BuildRequires: kernel-abi-stablelists = %{kernel_version}
|
|
|
cef010 |
BuildRequires: kernel-devel = %{kernel_version}
|
|
|
cef010 |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
|
cef010 |
|
|
|
cef010 |
Requires: kernel >= %{kernel_version}
|
|
|
cef010 |
Requires: kernel-uname-r >= %{kernel_version}.%{_arch}
|
|
|
cef010 |
Requires: kernel-modules >= %{kernel_version}
|
|
|
cef010 |
Requires: kernel-modules-uname-r >= %{kernel_version}.%{_arch}
|
|
|
cef010 |
|
|
|
cef010 |
Provides: installonlypkg(kernel-module)
|
|
|
cef010 |
Provides: kernel-modules >= %{kernel_version}.%{_arch}
|
|
|
cef010 |
|
|
|
cef010 |
Requires(post): %{_sbindir}/depmod
|
|
|
cef010 |
Requires(postun): %{_sbindir}/depmod
|
|
|
cef010 |
|
|
|
cef010 |
Requires(post): %{_sbindir}/weak-modules
|
|
|
cef010 |
Requires(postun): %{_sbindir}/weak-modules
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%description
|
|
|
cef010 |
This package provides the required kernel module (ntfs3) to mount devices
|
|
|
cef010 |
formatted with the Windows OS native file system (NTFS) up to version 3.1.
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%prep
|
|
|
cef010 |
%autosetup -p1 -n %{pkg}-%{version}
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%build
|
|
|
cef010 |
pushd src
|
|
|
cef010 |
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
|
|
|
cef010 |
popd
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%install
|
|
|
cef010 |
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/fs src/%{pkg}.ko
|
|
|
cef010 |
|
|
|
cef010 |
# Make .ko objects temporarily executable for automatic stripping
|
|
|
cef010 |
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%clean
|
|
|
cef010 |
%{__rm} -rf %{buildroot}
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%post
|
|
|
cef010 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
cef010 |
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/fs/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%preun
|
|
|
cef010 |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
cef010 |
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
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%postun
|
|
|
cef010 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
|
|
|
cef010 |
then
|
|
|
cef010 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
|
|
|
cef010 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
|
cef010 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
cef010 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
|
|
|
cef010 |
fi
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%pretrans -p <lua>
|
|
|
cef010 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
|
|
|
cef010 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%posttrans
|
|
|
cef010 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
|
|
|
cef010 |
then
|
|
|
cef010 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
|
|
|
cef010 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
cef010 |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
cef010 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
|
|
|
cef010 |
fi
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%files
|
|
|
cef010 |
%defattr(644,root,root,755)
|
|
|
cef010 |
/lib/modules/%{kernel_version}.%{_arch}
|
|
|
cef010 |
%license COPYING
|
|
|
cef010 |
|
|
|
cef010 |
|
|
|
cef010 |
%changelog
|
|
Kmods SIG |
8b3d74 |
* Fri Jan 14 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.15-6
|
|
Kmods SIG |
8b3d74 |
- Rebuild for 5.14.0-41.el9
|
|
Kmods SIG |
8b3d74 |
|
|
Kmods SIG |
fe61f9 |
* Sun Dec 26 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.15-5
|
|
Kmods SIG |
fe61f9 |
- Rebuild for 5.14.0-39.el9
|
|
Kmods SIG |
fe61f9 |
|
|
Kmods SIG |
23c45d |
* Sun Dec 26 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.15-4
|
|
Kmods SIG |
23c45d |
- Rebuild for 5.14.0-37.el9
|
|
Kmods SIG |
23c45d |
|
|
Kmods SIG |
56b524 |
* Sun Dec 26 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.15-3
|
|
Kmods SIG |
56b524 |
- Rebuild for 5.14.0-36.el9
|
|
Kmods SIG |
56b524 |
|
|
Kmods SIG |
5e78d7 |
* Sat Dec 25 2021 Kmods SIG <sig-kmods@centosproject.org> - 5.15-2
|
|
Kmods SIG |
5e78d7 |
- Rebuild for 5.14.0-34.el9
|
|
Kmods SIG |
5e78d7 |
|
|
|
cef010 |
* Wed Dec 22 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.15-1
|
|
|
cef010 |
- Initial version
|
|
|
cef010 |
- kABI tracking kmod package (kernel >= 5.14.0-31.el9)
|