Projects
openEuler:24.03:Factory
zfs
_service:tar_scm:zfs-kmod.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:zfs-kmod.spec of Package zfs
%bcond_with debug %bcond_with debuginfo Name: zfs-kmod Version: 2.1.10 Release: 1 Summary: Kernel module(s) Group: System Environment/Kernel License: CDDL-1.0 URL: https://github.com/openzfs/zfs BuildRequires: %kernel_module_package_buildreqs BuildRequires: kernel-rpm-macros Source0: zfs-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Additional dependency information for the kmod sub-package must be specified # by generating a preamble text file which kmodtool can append to the spec file. %(/bin/echo -e "\ Requires: zfs = %{version}\n\ Conflicts: zfs-dkms\n\ Obsoletes: kmod-spl\n\ Obsoletes: spl-kmod\n\n" > %{_sourcedir}/kmod-preamble) # LDFLAGS are not sanitized by arch/*/Makefile for these architectures. %ifarch ppc ppc64 ppc64le aarch64 %global __global_ldflags %{nil} %endif %description This package contains the ZFS kernel modules. # Explicitly set latest kernel verion to for kernel_module_package %global kernel_version %(ls -1 /usr/src/kernels|sort -rV |head -n 1) %define kmod_name zfs %kernel_module_package -n %{kmod_name} -p %{_sourcedir}/kmod-preamble %define ksrc %{_usrsrc}/kernels/%{kverrel} %define kobj %{ksrc} %package -n kmod-%{kmod_name}-devel Summary: ZFS kernel module(s) devel common Group: System Environment/Kernel Provides: kmod-spl-devel = %{version} %description -n kmod-%{kmod_name}-devel This package provides the header files and objects to build kernel modules. %prep if ! [ -d "%{ksrc}" ]; then echo "Kernel build directory isn't set properly, cannot continue" exit 1 fi %if %{with debug} %define debug --enable-debug %else %define debug --disable-debug %endif %if %{with debuginfo} %define debuginfo --enable-debuginfo %else %define debuginfo --disable-debuginfo %endif %setup -n %{kmod_name}-%{version} %build %configure \ --with-config=kernel \ --with-linux=%{ksrc} \ --with-linux-obj=%{kobj} \ %{debug} \ %{debuginfo} \ %{?kernel_cc} \ %{?kernel_ld} \ %{?kernel_llvm} make %{?_smp_mflags} %install make install \ DESTDIR=${RPM_BUILD_ROOT} \ INSTALL_MOD_DIR=extra/%{kmod_name} %{__rm} -f %{buildroot}/lib/modules/%{kverrel}/modules.* # find-debuginfo.sh only considers executables %{__chmod} u+x %{buildroot}/lib/modules/%{kverrel}/extra/*/*/* %clean rm -rf $RPM_BUILD_ROOT %files -n kmod-%{kmod_name}-devel %{_usrsrc}/%{kmod_name}-%{version} %{_usrsrc}/spl-%{version} %changelog * Wed Apr 19 2023 Xinliang Liu <xinliang.liu@linaro.org> - 2.1.10-1 - Update to 2.1.10 - Fix release number contains double %{dist}, e.g. "*.oe1.oe1.aarch64.rpm" - Fix kmod name without kernel release number by switching to redhat spec - Only build for latest kernel * Wed Mar 08 2023 Xinliang Liu <xinliang.liu@linaro.org> - 2.1.9-2 - Fix Source0 url. * Fri Feb 24 2023 Xinliang Liu <xinliang.liu@linaro.org> - 2.1.9-1 - Initial RPM release
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2