Sisyphus repository
Last update: 19 june 2019 | SRPMs: 17691 | Visits: 14142634
en ru br
ALT Linux repos
S:5.2.26-alt5.267059.1
5.0: 3.0.4-alt0.M50.132635.16
4.1: 2.1.4-alt0.M41.132633.8.M41.5

Group :: System/Kernel and hardware
RPM: kernel-modules-virtualbox-addition-std-def

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define module_name virtualbox-addition
%define module_version  5.2.26
%define module_release alt5

%define flavour std-def
%define karch %ix86 x86_64
BuildRequires(pre): rpm-build-kernel >= 0.100-alt1
BuildRequires(pre): kernel-headers-modules-std-def

%setup_kernel_module %flavour

%define module_dir /lib/modules/%kversion-%flavour-%krelease/misc

%define guest_module_name vboxguest
%define vfs_module_name vboxsf
%define video_module_name vboxvideo

Summary: VirtualBox modules
Name: kernel-modules-%module_name-%flavour
Version: %module_version
Release: %module_release.%kcode.%kbuildrelease
License: GPL
Group: System/Kernel and hardware

Packager: Kernel Maintainer Team <kernel at packages.altlinux.org>

ExclusiveOS: Linux
Url: http://www.virtualbox.org/
Patch: virtualbox-addition-kernel5.0.patch

BuildPreReq: gcc-c++
BuildRequires: perl
BuildRequires: rpm >= 4.0.2-75
BuildRequires: kernel-headers-modules-%flavour = %kepoch%kversion-%krelease
BuildRequires: kernel-source-%guest_module_name = %module_version
BuildRequires: kernel-source-%vfs_module_name = %module_version
BuildRequires: kernel-source-%video_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

Provides: kernel-modules-%guest_module_name-%kversion-%flavour-%krelease = %version-%release
Provides: kernel-modules-%guest_module_name-%flavour = %version-%release

Provides: kernel-modules-%video_module_name-%kversion-%flavour-%krelease = %version-%release
Provides: kernel-modules-%video_module_name-%flavour = %version-%release

Provides: kernel-modules-%vfs_module_name-%kversion-%flavour-%krelease = %version-%release
Provides: kernel-modules-%vfs_module_name-%flavour = %version-%release
Obsoletes: kernel-modules-%vfs_module_name-%flavour

%requires_kimage
ExclusiveArch: %karch

%description
This package contains VirtualBox addition modules (vboxguest, vboxsf)
that are needed for additonal guests support for VirtualBox.

%update_kernel_modules_checkinstall %name

%if "%kversion" < "5.0.0"
%package -n kernel-modules-%module_name-video-%flavour
Summary: VirtualBox video modules
Version: %module_version
Release: %module_release.%kcode.%kbuildrelease
%requires_kimage
License: GPL
Group: System/Kernel and hardware
%description -n kernel-modules-%module_name-video-%flavour
This package contains VirtualBox addition vboxvideo module
that are needed for additonal guests support for VirtualBox.
You can also use vboxvideo module from staging subpackage of
your kernel.

%update_kernel_modules_checkinstall kernel-modules-%module_name-video-%flavour
%endif

%prep
%setup -T -c -n kernel-source-%module_name-%module_version
tar jxvf %kernel_src/kernel-source-%guest_module_name-%module_version.tar.bz2
tar jxvf %kernel_src/kernel-source-%vfs_module_name-%module_version.tar.bz2
%patch
%if "%kversion" < "5.0.0"
tar jxvf %kernel_src/kernel-source-%video_module_name-%module_version.tar.bz2
%endif

%build
. %_usrsrc/linux-%kversion-%flavour/gcc_version.inc
%make -C kernel-source-%guest_module_name-%module_version \
   KERN_DIR=%_usrsrc/linux-%kversion-%flavour/ KERN_VER=%kversion
cp kernel-source-%guest_module_name-%module_version/Module.symvers \
   kernel-source-%vfs_module_name-%module_version
%make -C kernel-source-%vfs_module_name-%module_version \
   KERN_DIR=%_usrsrc/linux-%kversion-%flavour/ KERN_VER=%kversion
cp kernel-source-%guest_module_name-%module_version/Module.symvers \
   kernel-source-%video_module_name-%module_version
%if "%kversion" < "5.0.0"
%make -C kernel-source-%video_module_name-%module_version \
   KERN_DIR=%_usrsrc/linux-%kversion-%flavour/ KERN_VER=%kversion
%endif

%install
mkdir -p %buildroot/%module_dir
install -pD -m644 kernel-source-%guest_module_name-%module_version/vboxguest.ko \
   %buildroot%module_dir/
install -pD -m644 kernel-source-%vfs_module_name-%module_version/vboxsf.ko \
   %buildroot%module_dir/
%if "%kversion" < "5.0.0"
install -pD -m644 kernel-source-%video_module_name-%module_version/vboxvideo.ko \
   %buildroot%module_dir/
%endif

%files
%defattr(644,root,root,755)
%module_dir
%if "%kversion" < "5.0.0"
%exclude %module_dir/vboxvideo.ko

%files -n kernel-modules-%module_name-video-%flavour
%module_dir/vboxvideo.ko
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin