Blame SPECS/kmod-ecryptfs.spec

e54940
%global pkg ecryptfs
e54940
Kmods SIG 331c39
%global driver_version 5.14.0-1.el9
Kmods SIG 331c39
Kmods SIG e4bf53
%global kernel_version 5.14.0-85.el9
e54940
e54940
%global debug_package %{nil}
e54940
e54940
%global __spec_install_post \
e54940
  %{?__debug_package:%{__debug_install_post}} \
e54940
  %{__arch_install_post} \
e54940
  %{__os_install_post} \
e54940
  %{__mod_compress_install_post}
e54940
e54940
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
e54940
e54940
e54940
Name:             kmod-%{pkg}
Kmods SIG 331c39
Version:          5.14.0.1
Kmods SIG e4bf53
Release:          27%{?dist}
e54940
Summary:          Encrypted filesystem that operates on the VFS layer
e54940
22562a
License:          GPLv2 and GPLv2+
e54940
URL:              https://www.kernel.org/
e54940
Kmods SIG 331c39
Source0:          %{pkg}-%{driver_version}.tar.xz
Kmods SIG 331c39
Patch9999:        9999-enable-ecryptfs.patch
e54940
706362
ExclusiveArch:    x86_64 aarch64 ppc64le
e54940
e54940
BuildRequires:    elfutils-libelf-devel
e54940
BuildRequires:    gcc
e54940
BuildRequires:    kernel-rpm-macros
e54940
BuildRequires:    kmod
e54940
BuildRequires:    make
e54940
BuildRequires:    redhat-rpm-config
e54940
BuildRequires:    xz
e54940
e54940
BuildRequires:    kernel-abi-stablelists = %{kernel_version}
e54940
BuildRequires:    kernel-devel = %{kernel_version}
e54940
BuildRequires:    kernel-devel-uname-r = %{kernel_version}.%{_arch}
e54940
e54940
Requires:         kernel >= %{kernel_version}
e54940
Requires:         kernel-uname-r >= %{kernel_version}.%{_arch}
e54940
Requires:         kernel-modules >= %{kernel_version}
e54940
Requires:         kernel-modules-uname-r >= %{kernel_version}.%{_arch}
e54940
e54940
Provides:         installonlypkg(kernel-module)
e54940
Provides:         kernel-modules >= %{kernel_version}.%{_arch}
e54940
e54940
Requires(post):   %{_sbindir}/depmod
e54940
Requires(postun): %{_sbindir}/depmod
e54940
e54940
Requires(post):   %{_sbindir}/weak-modules
e54940
Requires(postun): %{_sbindir}/weak-modules
e54940
e54940
Supplements:      ecryptfs-utils
e54940
Recommends:       ecryptfs-utils
e54940
e54940
cfd68e
%if "%{version}" == "5.14.0.1" && "%{release}" == "10%{?dist}"
cfd68e
Obsoletes:        kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-9%{?dist}
cfd68e
%endif
cfd68e
cfd68e
e54940
%description
e54940
This package provides the required kernel module (ecryptfs) to mount devices
e54940
formatted with the Encrypted filesystem that operates on the VFS layer.
e54940
e54940
e54940
%prep
Kmods SIG 331c39
%autosetup -p1 -n %{pkg}-%{driver_version}
e54940
e54940
e54940
%build
e54940
pushd src
e54940
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
e54940
popd
e54940
e54940
e54940
%install
08e7d8
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/fs/%{pkg} src/%{pkg}.ko
e54940
e54940
# Make .ko objects temporarily executable for automatic stripping
e54940
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
e54940
e54940
e54940
%clean
e54940
%{__rm} -rf %{buildroot}
e54940
e54940
e54940
%post
e54940
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
08e7d8
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/fs/%{pkg}/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
e54940
e54940
e54940
%preun
e54940
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
e54940
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
e54940
e54940
e54940
%postun
e54940
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
e54940
then
e54940
    modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
e54940
    rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
e54940
    rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
e54940
    printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
e54940
fi
e54940
e54940
e54940
%pretrans -p <lua>
e54940
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
e54940
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
e54940
e54940
e54940
%posttrans
e54940
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
e54940
then
e54940
    modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
e54940
    rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
e54940
    rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
e54940
    printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
e54940
fi
e54940
e54940
e54940
%files
e54940
%defattr(644,root,root,755)
e54940
/lib/modules/%{kernel_version}.%{_arch}
d55cd0
%license LICENSES
e54940
e54940
e54940
%changelog
Kmods SIG e4bf53
* Fri May 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-27
Kmods SIG e4bf53
- Rebuild for 5.14.0-85.el9
Kmods SIG e4bf53
Kmods SIG 87d5e8
* Thu May 26 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-26
Kmods SIG 87d5e8
- Rebuild for 5.14.0-83.el9
Kmods SIG 87d5e8
Kmods SIG 679afc
* Sat May 07 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-25
Kmods SIG 679afc
- Rebuild for 5.14.0-80.el9
Kmods SIG 679afc
Kmods SIG 2eada9
* Fri Apr 22 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-24
Kmods SIG 2eada9
- Rebuild for 5.14.0-79.el9
Kmods SIG 2eada9
Kmods SIG 08b5dc
* Wed Apr 13 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-23
Kmods SIG 08b5dc
- Rebuild for 5.14.0-78.el9
Kmods SIG 08b5dc
Kmods SIG cc22ee
* Tue Apr 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-22
Kmods SIG cc22ee
- Rebuild for 5.14.0-77.el9
Kmods SIG cc22ee
Kmods SIG 92d76f
* Mon Mar 28 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-21
Kmods SIG 92d76f
- Rebuild for 5.14.0-75.el9
Kmods SIG 92d76f
Kmods SIG a7f934
* Tue Mar 22 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-20
Kmods SIG a7f934
- Rebuild for 5.14.0-73.el9
Kmods SIG a7f934
Kmods SIG 108241
* Sat Feb 26 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-19
Kmods SIG 108241
- Rebuild for 5.14.0-69.el9
Kmods SIG 108241
Kmods SIG b47ab3
* Sun Feb 20 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-18
Kmods SIG b47ab3
- Rebuild for 5.14.0-62.el9
Kmods SIG b47ab3
Kmods SIG 922e9b
* Fri Feb 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-17
Kmods SIG 922e9b
- Rebuild for 5.14.0-60.el9
Kmods SIG 922e9b
Kmods SIG 1d8657
* Tue Feb 15 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-16
Kmods SIG 1d8657
- Rebuild for 5.14.0-58.el9
Kmods SIG 1d8657
Kmods SIG 8c79cf
* Sat Feb 12 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-15
Kmods SIG 8c79cf
- Rebuild for 5.14.0-57.el9
Kmods SIG 8c79cf
Kmods SIG 5520f4
* Thu Feb 10 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-14
Kmods SIG 5520f4
- Rebuild for 5.14.0-56.el9
Kmods SIG 5520f4
Kmods SIG 8a4397
* Wed Feb 02 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-13
Kmods SIG 8a4397
- Rebuild for 5.14.0-51.el9
Kmods SIG 8a4397
Kmods SIG b9526f
* Thu Jan 27 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-12
Kmods SIG b9526f
- Rebuild for 5.14.0-48.el9
Kmods SIG b9526f
Kmods SIG e5ddd4
* Tue Jan 25 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-11
Kmods SIG e5ddd4
- Rebuild for 5.14.0-47.el9
Kmods SIG e5ddd4
706362
* Wed Jan 19 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 5.14.0.1-10
706362
- Enable ppc64le
706362
Kmods SIG 9987e0
* Wed Jan 19 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-9
Kmods SIG 9987e0
- Rebuild for 5.14.0-44.el9
Kmods SIG 9987e0
Kmods SIG 316c7c
* Tue Jan 18 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-8
Kmods SIG 316c7c
- Rebuild for 5.14.0-43.el9
Kmods SIG 316c7c
Kmods SIG 2880db
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-7
Kmods SIG 2880db
- Rebuild for 5.14.0-42.el9
Kmods SIG 2880db
Kmods SIG a79676
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-6
Kmods SIG a79676
- Rebuild for 5.14.0-41.el9
Kmods SIG a79676
Kmods SIG 6bd783
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-5
Kmods SIG 6bd783
- Rebuild for 5.14.0-39.el9
Kmods SIG 6bd783
Kmods SIG 68ad51
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-4
Kmods SIG 68ad51
- Rebuild for 5.14.0-37.el9
Kmods SIG 68ad51
Kmods SIG 9a7e8b
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-3
Kmods SIG 9a7e8b
- Rebuild for 5.14.0-36.el9
Kmods SIG 9a7e8b
Kmods SIG fd9feb
* Mon Jan 17 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-2
Kmods SIG fd9feb
- Rebuild for 5.14.0-34.el9
Kmods SIG fd9feb
Kmods SIG 331c39
* Thu Jan 13 2022 Kmods SIG <sig-kmods@centosproject.org> - 5.14.0.1-1
Kmods SIG 331c39
- Switch to EL kernel source and versioning
Kmods SIG 331c39
- kABI tracking kmod package (kernel >= 5.14.0-31.el9)