Package kernel-modules-kvdo-std-def: Specfile
%define module_name kvdo %define module_version 8.2.3.3 %define module_release alt1 %define flavour std-def # Note: This project can only be built on x86_64, ppc, and aarch64. %define karch x86_64 aarch64 ppc64le %setup_kernel_module %flavour %define module_dir /lib/modules/%kversion-%flavour-%krelease/misc Summary: Kernel modules which provide pools of deduplicated and compressed block storage Name: kernel-modules-%module_name-%flavour Version: %module_version Release: %module_release.%kcode.%kbuildrelease License: GPL-2.0-only Group: System/Kernel and hardware Packager: Kernel Maintainer Team <kernel@packages.altlinux.org> Url: http://github.com/dm-vdo/kvdo # This is build from template. # Look for actual sources in kvdo package. ExclusiveOS: Linux BuildRequires(pre): rpm-build-kernel BuildRequires(pre): kernel-headers-modules-std-def BuildRequires: kernel-headers-modules-%flavour = %kepoch%kversion-%krelease BuildRequires: kernel-source-%module_name = %module_version Provides: kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release PreReq: kernel-image-%flavour = %kepoch%kversion-%krelease ExcludeArch: i586 ExclusiveArch: %karch %description Virtual Data Optimizer (VDO) is software that provides inline block-level deduplication, compression, and thin provisioning capabilities for primary storage. VDO installs within the Linux device mapper framework, where it takes ownership of existing physical block devices and remaps these to new, higher-level block devices with data-efficiency capabilities. This is Red Hat proeject. %prep rm -rf %module_name-%module_version tar xf %kernel_src/kernel-source-%module_name-%module_version.tar* %setup -D -T -n %module_name-%module_version %build make -C %_usrsrc/linux-%kversion-%flavour-%krelease M=$(pwd) modules %install install -d %buildroot%module_dir install -m644 -D vdo/kvdo.ko %buildroot%module_dir/ %files %module_dir %changelog * %(date "+%%a %%b %%d %%Y") %{?package_signer:%package_signer}%{!?package_signer:%packager} %version-%release - Build for kernel-image-%flavour-%kversion-%krelease. |