Name: akmod-zfs Version: 2.3.4 Release: 1%{?dist} Summary: Akmods package to build ZFS kernel modules locally License: CDDL and GPLv2 URL: https://openzfs.org/ Source0: zfs-%{version}.tar.gz Source1: zfs-kmod.spec.txt BuildArch: noarch Provides: akmod(zfs) Requires: akmods Requires: gcc Requires: make Requires: rpm-build Requires: redhat-rpm-config Requires: elfutils-libelf-devel Requires: kernel-devel Requires: libtirpc-devel Requires: zlib-devel Requires: libuuid-devel Requires: libblkid-devel Requires: systemd-devel Requires: libudev-devel %description This package installs the OpenZFS sources and the upstream kmod spec file under /usr/src/akmods/zfs-%{version}/ so that the akmods framework can build the ZFS kernel modules for the running kernel on this system. %prep %setup -q -T -c -n %{name}-%{version} cp -p %{SOURCE0} zfs-%{version}.tar.gz cp -p %{SOURCE1} zfs-kmod.spec.txt %build # nothing %install mkdir -p %{buildroot}/usr/src/akmods/zfs-%{version} install -pm0644 zfs-%{version}.tar.gz %{buildroot}/usr/src/akmods/zfs-%{version}/ install -pm0644 zfs-kmod.spec.txt %{buildroot}/usr/src/akmods/zfs-%{version}/zfs-kmod.spec %files %dir /usr/src/akmods %dir /usr/src/akmods/zfs-%{version} %attr(0644,root,root) /usr/src/akmods/zfs-%{version}/zfs-%{version}.tar.gz %attr(0644,root,root) /usr/src/akmods/zfs-%{version}/zfs-kmod.spec %post if command -v akmods >/dev/null 2>&1; then akmods --force --kernels "$(uname -r)" --akmod zfs || : fi %changelog * Thu Oct 24 2025 You - %{version}-1 - Initial akmod packaging for ZFS.