This was added in
93ce2b4ca5a40c41ac945cd3aaf4a4a22bb751e1 ("Update
build system and packaging"), which merged the SPL and ZFS trees,
and included in 0.8.0; "the next major release" was 2.0.0
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13316
$(SED) ${ac_inplace} -e 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
$(distdir)/META
-if BUILD_LINUX
-# For compatibility, create a matching spl-x.y.z directly which contains
-# symlinks to the updated header and object file locations. These
-# compatibility links will be removed in the next major release.
-if CONFIG_KERNEL
-install-data-hook:
- rm -rf $(DESTDIR)$(prefix)/src/spl-$(VERSION) && \
- mkdir $(DESTDIR)$(prefix)/src/spl-$(VERSION) && \
- cd $(DESTDIR)$(prefix)/src/spl-$(VERSION) && \
- ln -s ../zfs-$(VERSION)/include/spl include && \
- ln -s ../zfs-$(VERSION)/$(LINUX_VERSION) $(LINUX_VERSION) && \
- ln -s ../zfs-$(VERSION)/zfs_config.h.in spl_config.h.in && \
- ln -s ../zfs-$(VERSION)/zfs.release.in spl.release.in && \
- cd $(DESTDIR)$(prefix)/src/zfs-$(VERSION)/$(LINUX_VERSION) && \
- ln -fs zfs_config.h spl_config.h && \
- ln -fs zfs.release spl.release
-endif
-endif
-
PHONY += codecheck
codecheck: cstyle shellcheck checkbashisms flake8 mancheck testscheck vcscheck zstdcheck
%files -n kmod-%{kmod_name}-devel
%{_usrsrc}/%{kmod_name}-%{version}
-%{_usrsrc}/spl-%{version}
%defattr(644,root,root,755)
%{_usrsrc}/${kmodname}-%{version}
EOF
- if [ -n "${obsolete_name}" ]; then
- echo "%{_usrsrc}/${obsolete_name}-%{version}"
- fi
for kernel in ${1}; do
local kernel_uname_r=${kernel}
echo "%exclude %{_usrsrc}/${kmodname}-%{version}/${kernel_uname_r}"
- if [ -n "${obsolete_name}" ]; then
- echo "%exclude %{_usrsrc}/${obsolete_name}-%{version}/${kernel_uname_r}"
- fi
done
echo
%defattr(644,root,root,755)
%{_usrsrc}/${kmodname}-%{version}/${kernel_uname_r}
EOF
- if [ -n "${obsolete_name}" ]; then
- echo "%{_usrsrc}/${obsolete_name}-%{version}/${kernel_uname_r}"
- fi
}
print_rpmtemplate_kmodmetapkg ()