2010-12-23 11:08:49 +01:00
#
2021-10-21 19:55:02 +02:00
# spec file
2010-12-23 11:08:49 +01:00
#
2022-01-20 20:34:11 +01:00
# Copyright (c) 2022 SUSE LLC
2010-12-23 11:08:49 +01:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-05-29 16:36:37 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2010-12-23 11:08:49 +01:00
#
2011-12-28 13:20:47 +01:00
2020-07-10 20:39:52 +02:00
%if "@BUILD_FLAVOR@" == "kmp"
### macros for virtualbox-kmp ###
%define main_package 0
%define kmp_package 1
%define name_suffix kmp
%define dash -
%define package_summary Kernel modules for VirtualBox
%define package_group System/Kernel
2021-10-13 04:42:15 +02:00
%if %{undefined kernel_module_directory}
%define kernel_module_directory /lib/modules
%endif
2020-07-10 20:39:52 +02:00
%else
### macros for virtualbox main package ###
%define main_package 1
%define kmp_package 0
%define package_summary VirtualBox is an Emulator
%define package_group System/Emulators/PC
2019-04-05 16:49:14 +02:00
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
2017-11-23 18:10:09 +01:00
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
2021-07-30 03:41:47 +02:00
%define _fillupdir %{_localstatedir}/adm/fillup-templates
2017-11-23 18:10:09 +01:00
%endif
2021-04-24 18:53:46 +02:00
%if ! %{defined _distconfdir}
%define _distconfdir %{_sysconfdir}
%endif
2017-03-01 15:44:22 +01:00
# Do not provide libGL.so symbols - they are owned by Mesa already and this could potentially confuse rpm/zypp
%global __provides_exclude ^libE?GL.so.1.*$
2019-05-28 02:19:51 +02:00
# With 32-bit builds, the job limit cannot be larger than 2, otherwise the build runs out of memory.
# For 64-bit builds, no memory limit is reached when more jobs are run, but the builds crash with strange errors.
# For the above reasons, limit the number of jobs to 2.
2022-07-23 16:10:28 +02:00
#%define _smp_mflags -j2
2021-10-01 16:57:38 +02:00
%define _vbox_instdir %{_prefix}/lib/virtualbox
2021-07-30 03:41:47 +02:00
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
2021-04-01 18:06:20 +02:00
%endif
2020-01-20 21:15:41 +01:00
# ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!!
2020-07-10 20:39:52 +02:00
Name : virtualbox%{?dash} %{?name_suffix}
2022-09-16 19:04:36 +02:00
Version : 6.1.38
2011-12-07 11:41:35 +01:00
Release : 0
2020-07-10 20:39:52 +02:00
Summary : %{package_summary}
2021-07-30 03:41:47 +02:00
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
2021-10-02 20:12:15 +02:00
License : GPL-2.0-or-later
2021-12-14 22:03:37 +01:00
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
2020-07-10 20:39:52 +02:00
Group : %{package_group}
2021-07-30 03:41:47 +02:00
URL : https://www.virtualbox.org/
2010-12-23 11:08:49 +01:00
#
2011-04-13 18:03:05 +02:00
# so you don't need to repack virtualbox by hand, just add new release of VirtualBox-x.x.x.tar.bz2 and line below with
2010-12-23 11:08:49 +01:00
# script virtualbox-patch-source.sh will do the job :)
2019-01-28 21:37:13 +01:00
# WARNING: This is not a comment, but the real command to repack source
2018-03-09 02:42:48 +01:00
#%%(bash %%{_sourcedir}/virtualbox-patch-source.sh VirtualBox-%%{version}.tar.bz2)
2010-12-23 11:08:49 +01:00
Source0 : VirtualBox-%{version} -patched.tar.bz2
2016-03-31 22:35:37 +02:00
Source1 : UserManual.pdf
2020-07-10 20:39:52 +02:00
Source3 : virtualbox-60-vboxguest.rules
Source4 : virtualbox-default.virtualbox
2021-04-24 18:51:36 +02:00
Source5 : virtualbox-kmp-files
2020-07-10 20:39:52 +02:00
Source7 : virtualbox-kmp-preamble
2020-03-24 03:06:06 +01:00
Source8 : update-extpack.sh
2020-07-10 20:39:52 +02:00
Source9 : virtualbox-wrapper.sh
Source10 : virtualbox-LocalConfig.kmk
Source11 : virtualbox-60-vboxdrv.rules
2022-08-11 01:50:09 +02:00
Source12 : vboxclient.service
Source13 : vboxservice.service
2017-04-29 07:52:10 +02:00
Source14 : vboxdrv.service
Source15 : vboxadd-service.service
2017-05-10 20:01:46 +02:00
Source16 : vboxconfig.sh
2021-03-09 18:15:18 +01:00
Source17 : vboxguestconfig.sh
2017-06-09 00:26:55 +02:00
Source18 : fix_usb_rules.sh
2017-07-10 20:31:23 +02:00
Source19 : vboxdrv.sh
2019-01-03 04:21:14 +01:00
Source20 : README.autostart
2019-01-28 21:37:13 +01:00
Source21 : vboxweb-service.service
Source22 : vboxweb-service.sh
2021-04-24 15:48:44 +02:00
Source23 : vboxautostart-service.service
Source24 : vboxautostart-service.sh
2022-08-11 01:50:09 +02:00
Source25 : vboxclient.desktop
2019-09-07 23:48:44 +02:00
Source97 : README.build
2020-07-10 20:39:52 +02:00
Source98 : virtualbox-rpmlintrc
Source99 : virtualbox-patch-source.sh
2012-03-24 18:13:42 +01:00
#rework init scripts to fit suse needs
2010-12-23 11:08:49 +01:00
Patch1 : vbox-vboxdrv-init-script.diff
Patch2 : vbox-vboxadd-init-script.diff
2011-01-01 16:49:43 +01:00
#fix build : "Error 4001 - String must be entirely alphanumeric"
#with renaming we probably break some macosx functionality however ths is just quick fix
#see thread : http://lists.freebsd.org/pipermail/freebsd-acpi/2010-October/006795.html
Patch6 : vbox-smc-napa.diff
2013-04-03 09:17:07 +02:00
#deprecated old-style C++ service proxies and objects,we have to use soapcpp2 -z1 flag
Patch9 : vbox-deprec-gsoap-service-proxies.diff
#fix failed linking process during build - this patch is just quick workaround
Patch10 : vbox-gsoapssl-deps.diff
2010-12-23 11:08:49 +01:00
#PATCH-FIX-OPENSUSE implement messagebox (VBoxPermissionMessage app), which is displayed, when user
2019-01-28 21:37:13 +01:00
#try to start VirtualBox and is not member of vboxusers group
2010-12-23 11:08:49 +01:00
Patch99 : vbox-permissions_warning.diff
#PATCH-FIX-OPENSUSE Do not include build dates on binaries, makes build-compare happier
Patch100 : vbox-no-build-dates.diff
Patch101 : vbox-default-os-type.diff
2019-01-31 20:33:38 +01:00
# Disable the distributed versions of vboxdrv.sh and vboxadd.sh for security reasons.
Patch102 : security_fixes.patch
2011-01-16 07:19:36 +01:00
#disable update in vbox gui
2012-03-08 16:14:52 +01:00
Patch103 : vbox-disable-updates.diff
2015-01-28 13:40:06 +01:00
#use pie/fPIE for setuid binaries (bnc#743143)
2012-03-18 09:57:09 +01:00
Patch104 : vbox-fpie.diff
2015-05-19 17:33:08 +02:00
#smap issues on Haswell or Broadwell (boo#931461)
Patch105 : smap.diff
2015-07-11 13:43:54 +02:00
# Patch to build with Factory gcc5
Patch106 : gcc5-real-support.patch
2015-07-11 14:47:21 +02:00
# Patch to build with gnu sed correctly
Patch107 : virtualbox-sed-params.patch
2015-07-14 21:14:21 +02:00
# Patch to use snprintf correcty and not overflow dst buffer
Patch108 : virtualbox-snpritnf-buffer-overflow.patch
2015-11-08 10:13:53 +01:00
# Patch to add code to explain USB Passthru
Patch109 : vbox-usb-warning.diff
Accepting request 696073 from home:lwfinger:branches:openSUSE:Factory
- Updated file "Fixes_for_Leap15.1.patch" to handle one addition problem due to backporting of kernel APIa.
Remove "BuildRequires: quilt" - that package is not needed.
VirtualBox 6.0.6 fixes the following: CVE-2019-2656, CVE-2019-2680, CVE-2019-2696, CVE-2019-2703, CVE-2019-2721,
CVE-2019-2722, CVE-2019-2723, CVE-2019-2657, CVE-2019-2690, CVE-2019-2679,
CVE-2019-2678, and CVE-2019-2574 boo#1132827.
- Version bump to 6.0.6 (released April 17 2019 by Oracle)
The following files in the openSUSE implemetation are removed: "fix_32_bit_builds.patch", "fixes_for_5.0.patch", and
"fixes_for_5.1.patch". These issues are fixed upstream.
OBS-URL: https://build.opensuse.org/request/show/696073
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=486
2019-04-30 02:56:27 +02:00
# Patch to ensure that VirtualBoxVM is SUID
Patch110 : vbox-suid-warning.diff
2019-07-30 21:54:24 +02:00
# Fix symbol conflict between host and guest kmp
Patch111 : fix_conflict_between_host_and_guest.patch
2016-08-19 10:55:54 +02:00
# Fix change in kernel API for ttm_bo_move_memcpy()
Patch112 : modify_for_4_8_bo_move.patch
2016-10-19 17:57:33 +02:00
# Remove all mention of _smp_mflags
Patch113 : vbox_remove_smp_mflags.patch
Accepting request 821171 from home:lwfinger:branches:Virtualization
- Version bump to 6.1.12 (released July 14 2020 by Oracle)
This is a maintenance release. The following items were fixed and/or added:
File "turn_off_cloud_net.patch" added.
Fixes for CVE-2020-14628, CVE-2020-14646, CVE-2020-14647, CVE-2020-14649
CVE-2020-14713, CVE-2020-14674, CVE-2020-14675, CVE-2020-14676
CVE-2020-14677, CVE-2020-14699, CVE-2020-14711, CVE-2020-14629
CVE-2020-14703, CVE-2020-14704, CVE-2020-14648, CVE-2020-14650
CVE-2020-14673, CVE-2020-14694, CVE-2020-14695, CVE-2020-14698
CVE-2020-14700, CVE-2020-14712, CVE-2020-14707, CVE-2020-14714
CVE-2020-14715 bsc#1174159.
UI: Fixes for Log-Viewer search-backward icon
Devices: Fixes and improvements for the BusLogic SCSI controller emulation
Serial Port: Regression fixes in FIFO data handling
Oracle Cloud Infrastructure integration: Experimental new type of network attachment, allowing local VM to act as if it was run in cloud
API: improved resource management in the guest control functionality
VBoxManage: fixed command option parsing for the "snapshot edit" sub-command
VBoxManage: Fix crash of 'VBoxManage internalcommands repairhd' when processing invalid input (bug #19579)
Guest Additions, 3D: New experimental GLX graphics output
Guest Additions, 3D: Fixed releasing texture objects, which could cause guest crashes
Guest Additions: Fixed writes to a file on a shared folder not being reflected on the host when the file is mmap'ed and the used Linux kernel is between version 4.10.0 and 4.11.x
Guest Additions: Fixed the shared folder driver on 32bit Windows 8 and newer returning an error when flushing writes to a file which is mapped into memory under rare circumstances
Guest Additions: Improve resize coverage for VMSVGA graphics controller
Guest Additions: Fix issues detecting guest additions ISO at runtime
Guest Additions: Fixed German translation encoding for Windows GA installer
OBS-URL: https://build.opensuse.org/request/show/821171
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=563
2020-07-16 03:03:58 +02:00
# Disable experimental and incomplete CLOUD_NET
Patch114 : turn_off_cloud_net.patch
2016-12-05 04:50:25 +01:00
# Fix for missing include needed for server 1.19
Patch116 : Fix_for_server_1.19.patch
2017-08-07 20:11:53 +02:00
# Fix invalid use of internal headers
Patch118 : internal-headers.patch
2017-11-07 17:41:30 +01:00
# Fix rpmlint error for script /lib/usr/virtualbox/vboxshell.py
Patch120 : fixes_for_python.patch
2018-05-18 01:05:08 +02:00
# Fix build for Qt 5.11
2018-11-09 21:17:28 +01:00
Patch122 : fixes_for_Qt5.11.patch
2022-05-23 20:55:37 +02:00
# xpcom: Support up to python 3.10 -- https://www.virtualbox.org/changeset/90537/vbox + https://www.virtualbox.org/changeset/86623/vbox, thanks to Archlinux
Patch123 : vbox-python-py310.patch
# fix build of Python and dev package on openSUSE 11.3 (was vbox-detection.diff)
# use plain python3 interpreter of the distro (part of former switch_to_pyton3.4+.patch),
Patch124 : vbox-python-selection.patch
2019-01-28 21:37:13 +01:00
# Use build parameters to control video driver problems
Patch125 : remove_vbox_video_build.patch
# fix library search
Patch128 : fix_lib_search.patch
2019-05-29 16:36:37 +02:00
# Fixes for modified kernel in Leap 42.3
2022-08-11 01:50:09 +02:00
Patch129 : VirtualBox-5.2.10-xclient.patch
2019-05-29 16:36:37 +02:00
Patch130 : fixes_for_Leap42.3.patch
2020-07-10 20:39:52 +02:00
# Fixes for SLE12
Patch131 : fixes_for_sle12.patch
2019-07-19 21:54:30 +02:00
# Fixes for Qt5.13 on 32-bit systems
Patch132 : fixes_for_qt5.13.patch
2020-01-20 21:15:41 +01:00
# Fixes for openSUSE Leap 15.2
Patch133 : fixes_for_leap15.2.patch
2020-06-14 23:31:47 +02:00
# Fixes for kernel modules Makefile used at boot time
Patch134 : fixes_for_makefile.patch
2020-03-27 16:29:58 +01:00
# Fix build for Qt 5.15
2020-04-16 01:48:18 +02:00
Patch135 : fix-missing-includes-with-qt-5.15.patch
2020-03-30 06:53:46 +02:00
# Fix builds with GCC10
2020-04-16 01:48:18 +02:00
Patch136 : fixes_for_gcc10.patch
2020-06-14 23:31:47 +02:00
# Fix for changes in GSOAP 2.8.103
2020-05-29 20:57:25 +02:00
Patch137 : handle_gsoap_208103.patch
2021-11-17 19:23:55 +01:00
# Fix for struct file_operations backport in 15.3
Patch142 : fixes_for_leap15.3.patch
Patch143 : vb-6.1.16-modal-dialog-parent.patch
2021-08-23 18:25:09 +02:00
Patch144 : fixes_for_leap15.4.patch
2019-04-05 16:49:14 +02:00
Patch999 : virtualbox-fix-ui-background-color.patch
2015-11-08 10:13:53 +01:00
#
2020-07-10 20:39:52 +02:00
# Common BuildRequires for both virtualbox and virtualbox-kmp
BuildRequires : %{kernel_module_package_buildreqs}
BuildRequires : gcc
BuildRequires : gcc-c++
BuildRequires : kbuild >= 0.1.9998svn3101
BuildRequires : libcap-devel
BuildRequires : libcurl-devel
BuildRequires : libopenssl-devel
BuildRequires : libxslt-devel
BuildRequires : module-init-tools
BuildRequires : pam-devel
BuildRequires : yasm
2021-07-30 03:41:47 +02:00
ExclusiveArch : x86_64
%if 0%{?sle_version} != 120300
Source2 : VirtualBox.appdata.xml
%endif
2020-07-10 20:39:52 +02:00
### Requirements for virtualbox main package ###
%if %{main_package}
2015-01-28 13:40:06 +01:00
BuildRequires : LibVNCServer-devel
BuildRequires : acpica
BuildRequires : alsa-devel
BuildRequires : bin86
BuildRequires : dev86
BuildRequires : device-mapper-devel
BuildRequires : dmidecode
BuildRequires : e2fsprogs-devel
BuildRequires : fdupes
2018-03-10 22:21:01 +01:00
BuildRequires : glibc-devel-static
2019-04-05 16:49:14 +02:00
BuildRequires : gsoap-devel >= 2.8.50
2021-07-30 03:41:47 +02:00
BuildRequires : infinipath-psm
2015-01-28 13:40:06 +01:00
BuildRequires : java-devel >= 1.6.0
2017-05-10 20:01:46 +02:00
BuildRequires : libelf-devel
2015-01-28 13:40:06 +01:00
BuildRequires : libidl-devel
- Version bump to 5.2.16 (released July 17 2018 by Oracle)
This is a maintenance release. The following items were fixed and/or added:
OVF: case insensitive comparison of manifest attribute values, to improve compatibility (bug #17357)
Linux: build for openSUSE 15.0 (bug #17554)
Linux: various build fixes for distribution builds, thank you Gianfranco Costamagna
This update fixes CVE-2018-3005, CVE-2018-3055, CVE-2018-3085, CVE-2018-3086,
CVE-2018-3087, CVE-2018-3088, CVE-2018-3089, CVE-2018-3090, and CVE-2018-3091. bsc#1101667.
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=439
2018-08-04 16:50:11 +02:00
BuildRequires : libopus-devel
2016-07-26 18:15:55 +02:00
BuildRequires : libqt5-linguist
BuildRequires : libqt5-qtbase-devel
BuildRequires : libqt5-qtx11extras-devel
2015-01-28 13:40:06 +01:00
BuildRequires : libvpx-devel
BuildRequires : libxslt-devel
2018-09-20 21:27:52 +02:00
BuildRequires : libzio-devel
2015-01-28 13:40:06 +01:00
BuildRequires : pulseaudio-devel
2021-12-14 22:03:37 +01:00
BuildRequires : python-rpm-macros
2018-06-19 19:53:58 +02:00
BuildRequires : python3-devel
2015-01-28 13:40:06 +01:00
BuildRequires : sed
2021-07-30 03:41:47 +02:00
BuildRequires : systemd-rpm-macros
2015-01-28 13:40:06 +01:00
BuildRequires : update-desktop-files
BuildRequires : which
BuildRequires : xorg-x11
BuildRequires : xorg-x11-server
BuildRequires : xorg-x11-server-sdk
BuildRequires : zlib-devel-static
2015-05-06 18:53:12 +02:00
BuildRequires : pkgconfig(fontsproto)
2022-06-08 17:32:24 +02:00
BuildRequires : pkgconfig(glu)
BuildRequires : pkgconfig(glx)
2016-07-26 18:15:55 +02:00
BuildRequires : pkgconfig(libpng)
2015-05-06 18:53:12 +02:00
BuildRequires : pkgconfig(randrproto)
BuildRequires : pkgconfig(renderproto)
BuildRequires : pkgconfig(resourceproto)
BuildRequires : pkgconfig(scrnsaverproto)
2022-05-23 20:55:37 +02:00
BuildRequires : pkgconfig(sdl)
2015-10-02 13:12:59 +02:00
BuildRequires : pkgconfig(udev)
2015-05-06 18:53:12 +02:00
BuildRequires : pkgconfig(x11)
BuildRequires : pkgconfig(xau)
BuildRequires : pkgconfig(xcomposite)
2016-07-26 18:15:55 +02:00
BuildRequires : pkgconfig(xcursor)
2015-05-06 18:53:12 +02:00
BuildRequires : pkgconfig(xdmcp)
BuildRequires : pkgconfig(xext)
BuildRequires : pkgconfig(xextproto)
BuildRequires : pkgconfig(xf86driproto)
BuildRequires : pkgconfig(xfixes)
2016-07-26 18:15:55 +02:00
BuildRequires : pkgconfig(xinerama)
2015-05-06 18:53:12 +02:00
BuildRequires : pkgconfig(xineramaproto)
2016-07-26 18:15:55 +02:00
BuildRequires : pkgconfig(xmu)
2015-05-06 18:53:12 +02:00
BuildRequires : pkgconfig(xproto)
2016-07-26 18:15:55 +02:00
BuildRequires : pkgconfig(xrandr)
2021-07-30 03:41:47 +02:00
Requires : %{name} -kmp = %{version}
Requires(pre) : %fillup_prereq
Requires(pre) : permissions
Requires(pre) : shadow
Recommends: %{name} -gui = %{version}
# package i4l-vbox from source package i4l-base shares the directory /etc/vbox
# with us, but with different owner.
Conflicts : i4l-vbox
#rename from ose version:
Provides : %{name} -ose = %{version}
Obsoletes : %{name} -ose < %{version}
%{?systemd_ordering}
%if 0%{?suse_version} > 1325
BuildRequires : libboost_headers-devel
%else
BuildRequires : boost-devel
%endif
2020-07-10 20:39:52 +02:00
%ifarch amd64 x86_64 ia32e em64t
BuildRequires : gcc-32bit
BuildRequires : gcc-c++-32bit
BuildRequires : xorg-x11-libX11-devel-32bit
BuildRequires : xorg-x11-libXext-devel-32bit
BuildRequires : xorg-x11-libXmu-devel-32bit
BuildRequires : xorg-x11-libXt-devel-32bit
%endif
2017-06-25 19:14:46 +02:00
%if ! 0%{?suse_version} > 1325
Requires(pre) : net-tools-deprecated
%endif
2020-08-29 21:52:49 +02:00
# end of main_package
%endif
2020-07-10 20:39:52 +02:00
### Requirements for virtualbox-kmp ###
%if %{kmp_package}
BuildRequires : libxml2-devel
2021-07-30 03:41:47 +02:00
Requires : openSUSE-signkey-cert
%kernel_module_package -p %{SOURCE7} -n virtualbox -f %{SOURCE5} -x kdump um xen pae xenpae pv
2020-08-29 21:52:49 +02:00
# end of kmp_package
%endif
2020-07-10 20:39:52 +02:00
### Description and subpackages of virtualbox main package ###
%if %{main_package}
2010-12-23 11:08:49 +01:00
%description
2018-11-08 21:10:03 +01:00
VirtualBox is a hosted hypervisor for x86 computers. It supports the
creation and management of guest virtual machines running versions
and derivations of Windows, Linux, BSD, OS/2, Solaris, Haiku, OSx86
and others, and limited virtualization of macOS guests on Apple
hardware. VirtualBox is freely available as Open Source Software under
the terms of the GNU Public License (GPL).
2015-01-28 13:40:06 +01:00
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
##########################################
2022-09-16 19:04:36 +02:00
2010-12-23 11:08:49 +01:00
%package qt
Summary : Qt GUI part for %{name}
Group : System/Emulators/PC
2018-11-03 05:10:03 +01:00
Requires(pre) : %{name} = %{version}
2015-01-28 13:40:06 +01:00
Requires(pre) : permissions
2010-12-23 22:39:13 +01:00
Provides : %{name} -gui = %{version}
2010-12-25 22:26:12 +01:00
#this is needed during update to trigger installing qt subpackage
#http://en.opensuse.org/openSUSE:Upgrade_dependencies_explanation#Splitting_and_Merging
2021-10-01 16:57:38 +02:00
Provides : %{name} -ose:%{_vbox_instdir} /VirtualBox.so
2010-12-23 11:56:06 +01:00
#rename from "ose" version:
2015-01-28 13:40:06 +01:00
Provides : %{name} -ose-qt = %{version}
Obsoletes : %{name} -ose-qt < %{version}
2011-01-05 23:13:56 +01:00
2010-12-23 11:08:49 +01:00
%description qt
2019-01-28 21:37:13 +01:00
This package contains the code for the GUI used to control VMs.
2015-01-28 13:40:06 +01:00
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
#########################################
2022-09-16 19:04:36 +02:00
2012-03-14 21:47:21 +01:00
%package websrv
Summary : WebService GUI part for %{name}
Group : System/Emulators/PC
Requires : %{name} = %{version}
2022-05-05 23:28:14 +02:00
Requires : sysvinit-tools
2012-03-14 21:47:21 +01:00
Provides : %{name} -gui = %{version}
2021-10-01 16:57:38 +02:00
Obsoletes : %{name} -vboxwebsrv < %{version}
2012-03-14 21:47:21 +01:00
%description websrv
2019-01-28 21:37:13 +01:00
The VirtualBox web server is used to control headless VMs using a browser.
2015-01-28 13:40:06 +01:00
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
2022-06-08 17:32:24 +02:00
###########################################
2010-12-23 11:08:49 +01:00
%package guest-tools
Summary : VirtualBox guest tools
Group : System/Emulators/PC
2019-07-30 21:54:24 +02:00
Requires : %{name} -kmp = %{version}
2022-08-11 01:50:09 +02:00
Requires : libnotify-tools
2021-07-30 03:41:47 +02:00
# for /usr/lib/virtualbox/vboxadd-service
Requires : which
2021-04-24 15:48:44 +02:00
Supplements: modalias(pci:v000080EEd0000CAFEsv*sd*bc*sc*i*)
2010-12-23 11:56:06 +01:00
#rename from "ose" version:
2015-01-28 13:40:06 +01:00
Provides : %{name} -ose-guest-tools = %{version}
Obsoletes : %{name} -ose-guest-tools < %{version}
2022-08-12 02:26:34 +02:00
Obsoletes : virtualbox-guest-x11
Obsoletes : xorg-x11-driver-virtualbox-ose
2017-06-25 19:14:46 +02:00
%if ! 0%{?suse_version} > 1325
2017-06-10 15:21:20 +02:00
Requires(pre) : net-tools-deprecated
2017-06-25 20:06:27 +02:00
%endif
2010-12-23 11:08:49 +01:00
%description guest-tools
VirtualBox guest addition tools.
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
###########################################
2022-09-16 19:04:36 +02:00
2018-06-19 19:53:58 +02:00
%package -n python3-%{name}
2010-12-23 11:08:49 +01:00
Summary : Python bindings for %{name}
Group : Development/Libraries/Python
Requires : %{name} = %{version}
2010-12-23 11:56:06 +01:00
#rename from "ose" version:
2018-06-19 19:53:58 +02:00
Provides : python3-%{name} = %{version} -%{release}
2017-11-01 17:00:41 +01:00
Obsoletes : python-%{name} < %{version} -%{release}
2018-06-19 19:53:58 +02:00
Obsoletes : python2-%{name} < %{version} -%{release}
Obsoletes : python3-%{name} < %{version} -%{release}
Provides : python3-%{name} -ose = %{version}
2015-01-28 13:40:06 +01:00
Obsoletes : python-%{name} -ose < %{version}
2018-06-19 19:53:58 +02:00
Obsoletes : python2-%{name} -ose < %{version}
Obsoletes : python3-%{name} -ose < %{version}
2010-12-23 11:08:49 +01:00
2018-06-19 19:53:58 +02:00
%description -n python3-%{name}
2010-12-23 22:44:12 +01:00
Python XPCOM bindings to %{name} . Used e.g. by vboxgtk package.
2015-01-28 13:40:06 +01:00
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
###########################################
2022-09-16 19:04:36 +02:00
2010-12-23 11:08:49 +01:00
%package devel
Summary : Devel files for %{name}
Group : Development/Libraries/Other
Requires : %{name} = %{version}
2018-06-19 19:53:58 +02:00
Requires : python3-%{name} = %{version}
2010-12-23 11:56:06 +01:00
#rename from "ose" version:
2015-01-28 13:40:06 +01:00
Provides : %{name} -ose-devel = %{version}
Obsoletes : %{name} -ose-devel < %{version}
2010-12-23 11:08:49 +01:00
%description devel
Development file for %{name}
2015-01-28 13:40:06 +01:00
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
###########################################
2022-09-16 19:04:36 +02:00
2015-05-10 16:59:12 +02:00
%package host-source
2017-05-10 20:01:46 +02:00
Summary : Source files for %{name} host kernel modules
2015-05-10 16:59:12 +02:00
Group : Development/Sources
Requires : %{name} = %{version}
Requires : gcc
2017-11-22 17:53:50 +01:00
Requires : kernel-devel
Requires : libelf-devel
2015-05-10 16:59:12 +02:00
Requires : make
2015-06-09 13:38:55 +02:00
BuildArch : noarch
2015-05-10 16:59:12 +02:00
%description host-source
2017-05-10 20:01:46 +02:00
Source files for %{name} host kernel modules
2015-05-10 16:59:12 +02:00
These can be built for custom kernels using
2021-12-14 22:03:37 +01:00
sudo %{_sbindir} /vboxconfig
2017-05-10 20:01:46 +02:00
2021-03-09 18:15:18 +01:00
%package guest-source
Summary : Source files for %{name} guest kernel modules
Group : Development/Sources
Requires : gcc
Requires : kernel-devel
Requires : libelf-devel
Requires : make
BuildArch : noarch
%description guest-source
Source files for %{name} guest kernel modules
These can be built for custom kernels using
2021-12-14 22:03:37 +01:00
sudo %{_sbindir} /vboxguestconfig
2021-11-17 19:23:55 +01:00
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
###########################################
2022-09-16 19:04:36 +02:00
2014-01-13 04:23:05 +01:00
%package guest-desktop-icons
Summary : Icons for guest desktop files
Group : System/Emulators/PC
Requires : %{name} = %{version}
Recommends: %{name} -gui = %{version}
BuildArch : noarch
%description guest-desktop-icons
This package contains icons for guest desktop files that were created on the desktop.
2015-01-28 13:40:06 +01:00
2021-12-14 22:03:37 +01:00
2022-05-28 01:33:15 +02:00
2022-06-18 01:30:55 +02:00
2022-08-12 02:26:34 +02:00
###########################################
2022-09-16 19:04:36 +02:00
2017-05-10 20:01:46 +02:00
%package vnc
Summary : VNC desktop sharing
Group : System/Emulators/PC
Requires : %{name} = %{version}
%description vnc
Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer
protocol (RFB) to remotely control another computer. When this optional feature is desired, it is installed
as an " e x t p a c k " for VirtualBox. The implementation is licensed under GPL.
###########################################
2020-08-29 21:52:49 +02:00
# main_package
%endif
2020-07-10 20:39:52 +02:00
### Description of virtualbox-kmp ###
%if %{kmp_package}
%description
This package contains the kernel-modules that VirtualBox uses to create or run virtual machines.
2020-08-29 21:52:49 +02:00
# kmp_package
%endif
2017-05-10 20:01:46 +02:00
2010-12-23 11:08:49 +01:00
%prep
2012-04-04 06:13:22 +02:00
%setup -q -n VirtualBox-%{version}
2016-08-19 10:55:54 +02:00
%patch1 -p1
2016-05-16 23:36:43 +02:00
%patch2 -p1
2011-01-01 16:49:43 +01:00
%patch6 -p1
2013-04-03 09:17:07 +02:00
%patch9 -p1
%patch10 -p1
2010-12-23 11:08:49 +01:00
%patch99 -p1
2017-12-29 20:22:29 +01:00
%patch100 -p1
2014-03-04 12:09:44 +01:00
%patch101 -p1
2019-01-31 20:33:38 +01:00
%patch102 -p1
2015-07-11 13:43:54 +02:00
%patch103 -p1
2012-03-18 09:57:09 +01:00
%patch104 -p1
2015-05-19 17:33:08 +02:00
%patch105 -p1
2015-07-11 13:43:54 +02:00
%patch106 -p1
2015-07-11 14:47:21 +02:00
%patch107 -p1
2015-07-14 21:14:21 +02:00
%patch108 -p1
2015-11-08 10:13:53 +01:00
%patch109 -p1
Accepting request 696073 from home:lwfinger:branches:openSUSE:Factory
- Updated file "Fixes_for_Leap15.1.patch" to handle one addition problem due to backporting of kernel APIa.
Remove "BuildRequires: quilt" - that package is not needed.
VirtualBox 6.0.6 fixes the following: CVE-2019-2656, CVE-2019-2680, CVE-2019-2696, CVE-2019-2703, CVE-2019-2721,
CVE-2019-2722, CVE-2019-2723, CVE-2019-2657, CVE-2019-2690, CVE-2019-2679,
CVE-2019-2678, and CVE-2019-2574 boo#1132827.
- Version bump to 6.0.6 (released April 17 2019 by Oracle)
The following files in the openSUSE implemetation are removed: "fix_32_bit_builds.patch", "fixes_for_5.0.patch", and
"fixes_for_5.1.patch". These issues are fixed upstream.
OBS-URL: https://build.opensuse.org/request/show/696073
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=486
2019-04-30 02:56:27 +02:00
%patch110 -p1
2019-07-30 21:54:24 +02:00
%patch111 -p1
2016-04-23 07:10:51 +02:00
%patch112 -p1
2016-10-19 17:57:33 +02:00
%patch113 -p1
Accepting request 821171 from home:lwfinger:branches:Virtualization
- Version bump to 6.1.12 (released July 14 2020 by Oracle)
This is a maintenance release. The following items were fixed and/or added:
File "turn_off_cloud_net.patch" added.
Fixes for CVE-2020-14628, CVE-2020-14646, CVE-2020-14647, CVE-2020-14649
CVE-2020-14713, CVE-2020-14674, CVE-2020-14675, CVE-2020-14676
CVE-2020-14677, CVE-2020-14699, CVE-2020-14711, CVE-2020-14629
CVE-2020-14703, CVE-2020-14704, CVE-2020-14648, CVE-2020-14650
CVE-2020-14673, CVE-2020-14694, CVE-2020-14695, CVE-2020-14698
CVE-2020-14700, CVE-2020-14712, CVE-2020-14707, CVE-2020-14714
CVE-2020-14715 bsc#1174159.
UI: Fixes for Log-Viewer search-backward icon
Devices: Fixes and improvements for the BusLogic SCSI controller emulation
Serial Port: Regression fixes in FIFO data handling
Oracle Cloud Infrastructure integration: Experimental new type of network attachment, allowing local VM to act as if it was run in cloud
API: improved resource management in the guest control functionality
VBoxManage: fixed command option parsing for the "snapshot edit" sub-command
VBoxManage: Fix crash of 'VBoxManage internalcommands repairhd' when processing invalid input (bug #19579)
Guest Additions, 3D: New experimental GLX graphics output
Guest Additions, 3D: Fixed releasing texture objects, which could cause guest crashes
Guest Additions: Fixed writes to a file on a shared folder not being reflected on the host when the file is mmap'ed and the used Linux kernel is between version 4.10.0 and 4.11.x
Guest Additions: Fixed the shared folder driver on 32bit Windows 8 and newer returning an error when flushing writes to a file which is mapped into memory under rare circumstances
Guest Additions: Improve resize coverage for VMSVGA graphics controller
Guest Additions: Fix issues detecting guest additions ISO at runtime
Guest Additions: Fixed German translation encoding for Windows GA installer
OBS-URL: https://build.opensuse.org/request/show/821171
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=563
2020-07-16 03:03:58 +02:00
%patch114 -p1
2016-12-05 04:50:25 +01:00
%patch116 -p1
2017-08-07 20:11:53 +02:00
%patch118 -p1
2017-11-07 17:41:30 +01:00
%patch120 -p1
2018-11-09 21:17:28 +01:00
%patch122 -p1
%patch123 -p1
2022-05-23 20:55:37 +02:00
%patch124 -p1
2018-05-18 01:05:08 +02:00
%patch125 -p1
2019-01-28 21:37:13 +01:00
%patch128 -p1
2022-08-11 01:50:09 +02:00
%patch129 -p1
2019-07-19 21:54:30 +02:00
# Adjustments that are version dependent
2021-04-01 18:06:20 +02:00
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
2019-07-19 21:54:30 +02:00
# Patch for Leap 42.3
2019-05-29 16:36:37 +02:00
%patch130 -p1
%endif
2020-07-10 20:39:52 +02:00
%patch131 -p1
2019-07-19 21:54:30 +02:00
# Handle the 32-bit changes needed for Qt 5.13
2021-07-30 03:41:47 +02:00
%ifarch %{ix86} && 0%{?qt5ver} >= 51300
2019-06-01 22:27:45 +02:00
%patch132 -p1
2019-07-19 21:54:30 +02:00
%endif
2019-09-24 18:49:12 +02:00
%patch133 -p1
2019-12-19 06:12:48 +01:00
%patch134 -p1
2020-02-12 21:05:40 +01:00
%patch135 -p1
2020-03-16 22:42:02 +01:00
%patch136 -p1
2020-05-29 20:57:25 +02:00
%patch137 -p1
2021-04-01 18:06:20 +02:00
%if 0%{?sle_version} == 150300 && 0%{?is_opensuse}
2021-02-04 23:48:26 +01:00
# Patch for Leap 15.3
2021-07-14 18:47:06 +02:00
%patch142 -p1
2021-11-17 19:23:55 +01:00
%endif
2021-08-23 18:25:09 +02:00
%if 0%{?sle_version} == 1504 && 0%{?is_opensuse}
# Patch for Leap 15.4
%patch144 -p1
%endif
2021-11-17 19:23:55 +01:00
%patch143 -p1
2019-05-29 16:36:37 +02:00
# make VB UI background colors look sane again
2019-04-05 16:49:14 +02:00
%patch999 -p1
2016-07-26 18:15:55 +02:00
2020-07-10 20:39:52 +02:00
### Documents for virtualbox main package ###
%if %{main_package}
2010-12-23 11:08:49 +01:00
#copy user manual
2015-01-28 13:40:06 +01:00
cp %{SOURCE1} UserManual.pdf
2019-09-07 23:48:44 +02:00
#copy README.build
cp %{SOURCE97} README.build
2012-04-21 23:05:19 +02:00
#copy kbuild config
2015-01-28 13:40:06 +01:00
cp %{SOURCE10} LocalConfig.kmk
2019-01-03 04:21:14 +01:00
#copy autostart doc
cp %{SOURCE20} README.autostart
2020-08-29 21:52:49 +02:00
# main_package
%endif
2020-07-10 20:39:52 +02:00
2012-04-29 20:59:19 +02:00
#
##########################
####workaround kmk_sed --v
2015-01-28 13:40:06 +01:00
#instead of kmk_sed use /usr/bin/sed because of bug http://svn.netlabs.org/kbuild/ticket/112,
2017-05-10 20:01:46 +02:00
#but we have to create wrapper which will handle --append and --output options which are not provided by /usr/bin/sed
2012-04-29 20:59:19 +02:00
cat >> kmk_sed <<EOF
2021-10-01 16:57:38 +02:00
#!/usr/bin/bash
2012-04-29 20:59:19 +02:00
while [ " \ $ # " != " 0 " ]; do
pass=\${pass}" \ $ 1 "
[ " \ $ 1 " == " - e " ] && shift && pass=\${pass}" ' \ $ 1 ' "
shift
done
eval " s e d \ $ ( e c h o " \$pass" | s e d - e " s/--output=/>/g;s/--append=/>/g;s/--output/>/g;s/--append/>>/g" ) ; "
EOF
chmod +x ./kmk_sed
echo " S E D = $RPM_BUILD_DIR / V i r t u a l B o x - %{version} / k m k _ s e d " >> LocalConfig.kmk
####workaround kmk_sed --^
##########################
#
2019-05-29 16:36:37 +02:00
# fix build of vboxvideo kernel module: replace relative drm include path with absolute include path
2021-07-30 03:41:47 +02:00
sed -i 's:include/drm:%{_prefix}/src/linux/include/drm:' src/VBox/Additions/linux/drm/Makefile.module.kms
2015-01-28 13:40:06 +01:00
2020-09-18 20:53:04 +02:00
### %%build, %%install, and %%file sections for virtualbox ###
2020-07-10 20:39:52 +02:00
%if %{main_package}
2010-12-23 11:08:49 +01:00
%build
2019-05-28 02:19:51 +02:00
# Disable LTO - Link Time Optimization
2022-08-11 01:50:09 +02:00
%define _lto_cflags %{nil}
#ensure we don't ever use them
2011-04-26 21:46:22 +02:00
rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*}
2011-07-21 12:51:05 +02:00
# --disable-kmods don't build Linux kernel modules - but use SUSE specific way see few lines under
2015-03-05 09:26:24 +01:00
# NOT an autoconf configure macro
2010-12-23 11:08:49 +01:00
./configure \
2015-05-06 18:53:12 +02:00
--ose \
--enable-vnc \
--enable-vde \
--disable-kmods \
2021-07-30 03:41:47 +02:00
--with-linux=" %{_prefix} " \
2015-05-06 18:53:12 +02:00
--disable-java \
--disable-docs \
2016-07-26 18:15:55 +02:00
--enable-webservice \
2021-12-14 22:03:37 +01:00
--with-makeself=%{_bindir} /true
2011-02-08 08:32:31 +01:00
# configure actually warns we should source env.sh (which seems like it could influence the build...)
2012-10-11 22:41:51 +02:00
source ./env.sh
2011-02-08 08:32:31 +01:00
2010-12-23 11:08:49 +01:00
#
2011-04-13 18:03:05 +02:00
# VBOX_PATH_PACKAGE_DOCS set propper path for link to pdf in .desktop file
# VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= just disable some functionality in gui
2011-07-21 12:51:05 +02:00
echo " b u i l d b a s i c p a r t s "
2021-07-30 03:41:47 +02:00
%{_bindir} /kmk %{?_smp_mflags} \
2015-05-06 17:51:56 +02:00
VBOX_GCC_WERR= \
KBUILD_VERBOSE=2 \
2015-05-06 18:53:12 +02:00
VBOX_USE_SYSTEM_XORG_HEADERS=1 \
2015-05-06 17:51:56 +02:00
VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= \
TOOL_YASM_AS=yasm \
2015-05-06 18:53:12 +02:00
VBOX_BUILD_PUBLISHER=_SUSE \
2015-07-14 20:52:12 +02:00
TOOL_GCC3_CFLAGS=" %{optflags} " TOOL_GCC3_CXXFLAGS=" %{optflags} " \
2015-05-06 18:53:12 +02:00
VBOX_GCC_OPT=" %{optflags} "
2017-05-10 20:01:46 +02:00
echo " b u i l d V N C e x t e n s i o n p a c k "
# tar must use GNU, not POSIX, format here
sed -i 's/tar /tar --format=gnu /' src/VBox/ExtPacks/VNC/Makefile.kmk
kmk -C src/VBox/ExtPacks/VNC packing
2010-12-23 11:08:49 +01:00
%install
#################################
echo " c r e a t e d i r e c t o r y s t r u c t u r e "
#################################
2021-12-14 22:03:37 +01:00
install -d -m 755 %{buildroot} %{_sbindir}
install -d -m 755 %{buildroot} %{_prefix} /lib
2015-01-28 13:40:06 +01:00
install -d -m 755 %{buildroot} %{_bindir}
install -d -m 755 %{buildroot} %{_sbindir}
install -d -m 755 %{buildroot} %{_datadir} /virtualbox/nls
install -d -m 755 %{buildroot} %{_datadir} /pixmaps
install -d -m 755 %{buildroot} %{_datadir} /applications
install -d -m 755 %{buildroot} %{_vbox_instdir} /sdk/bindings/xpcom
install -d -m 755 %{buildroot} %{_vbox_instdir} /components
install -d -m 755 %{buildroot} %{_libdir} /dri
install -d -m 755 %{buildroot} %{_libdir} /xorg/modules/drivers
install -d -m 755 %{buildroot} %{_libdir} /xorg/modules/input
install -d -m 755 %{buildroot} %{_sysconfdir} /default
2019-04-05 16:49:14 +02:00
install -d -m 755 %{buildroot} %{_sysconfdir} /init.d
2017-04-29 07:52:10 +02:00
install -d %{buildroot} %{_unitdir}
install -d %{buildroot} %{_unitdir} /multi-user.target.wants
2015-01-28 13:40:06 +01:00
install -d -m 755 %{buildroot} %{_sysconfdir} /vbox
2021-04-24 15:48:44 +02:00
install -d -m 755 %{buildroot} %{_sysconfdir} /vbox/autostart.d
2015-01-28 13:40:06 +01:00
install -d -m 755 %{buildroot} %{_udevrulesdir}
2022-09-16 19:04:36 +02:00
install -d -m 755 %{buildroot} %{_sysconfdir} /X11/xinit/xinitrc.d
2010-12-23 11:08:49 +01:00
###########################################
echo " e n t e r i n g g u e s t - t o o l s i n s t a l l s e c t i o n "
###########################################
2022-08-11 01:50:09 +02:00
install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot} %{_bindir}
2015-09-02 01:16:44 +02:00
install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot} %{_sbindir} /VBoxService
2021-12-14 22:03:37 +01:00
install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot} %{_sbindir} /mount.vboxsf
2017-07-10 20:31:23 +02:00
install -m 744 src/VBox/Additions/linux/installer/vboxadd-service.sh %{buildroot} %{_vbox_instdir} /vboxadd-service
2022-01-20 20:34:11 +01:00
install -d %{buildroot} %{_userunitdir}
2010-12-23 11:08:49 +01:00
# udev rule for guest (virtualbox-guest-tools)
2015-01-28 13:40:06 +01:00
install -m 644 %{SOURCE3} %{buildroot} %{_udevrulesdir} /60-vboxguest.rules
2022-08-11 01:50:09 +02:00
install -p -m 0644 -D %{SOURCE12} %{buildroot} %{_unitdir} /vboxclient.service
install -p -m 0644 -D %{SOURCE13} %{buildroot} %{_unitdir} /vboxservice.service
2015-09-02 01:16:44 +02:00
# /media is used for auto-mounting of shared folders
2022-08-11 01:50:09 +02:00
#VBoxClient daemon (support for clipboard,autoresize,seamless windows)
install -m 755 out/linux.*/release/bin/additions/VBoxClient %{buildroot} %{_bindir}
install -m 755 out/linux.*/release/bin/additions/VBoxDRMClient %{buildroot} %{_bindir}
# install init script which start VBoxClient daemon (support for clipboard,autoresize,seamless windows)
2022-09-16 19:04:36 +02:00
install -m 755 src/VBox/Additions/x11/Installer/98vboxadd-xclient %{buildroot} %{_sysconfdir} /X11/xinit/xinitrc.d/
2022-08-11 01:50:09 +02:00
install -d %{buildroot} %{_sysconfdir} /xdg/autostart/
2022-09-16 19:04:36 +02:00
install -m 644 %{SOURCE25} %{buildroot} %{_sysconfdir} /xdg/autostart/vboxclient.desktop
2017-06-26 01:44:07 +02:00
%if 0%{?suse_version} > 1320 || 0%{?sle_version} == 120300
2016-07-26 18:15:55 +02:00
install -d -m 755 %{buildroot} /media
2015-09-02 01:16:44 +02:00
%endif
2020-12-09 16:52:37 +01:00
###########################################
echo " e n t e r i n g V N C e x t e n s i o n i n s t a l l s e c t i o n "
###########################################
pushd out/linux.*/release/packages/
mkdir -p " %{buildroot} %{_datadir} / v i r t u a l b o x / e x t e n s i o n s / "
install -D -m 644 VNC-*.vbox-extpack " %{buildroot} %{_datadir} / v i r t u a l b o x / e x t e n s i o n s / V N C - %{version} . v b o x - e x t p a c k "
popd
2010-12-23 11:08:49 +01:00
##############################################
echo " e n t e r i n g v i r t u a l b o x ( - q t ) i n s t a l l s e c t i o n "
##############################################
2019-01-28 21:37:13 +01:00
# copy the main files to %%{_vbox_instdir}
2010-12-23 11:08:49 +01:00
pushd out/linux.*/release/bin
2015-01-28 13:40:06 +01:00
install -m 755 VBoxManage %{buildroot} %{_vbox_instdir}
install -m 755 VBoxHeadless %{buildroot} %{_vbox_instdir}
2015-05-06 17:41:28 +02:00
install -m 755 VBoxSDL %{buildroot} %{_vbox_instdir}
2015-01-28 13:40:06 +01:00
install -m 755 VBoxTunctl %{buildroot} %{_vbox_instdir}
2015-07-15 20:42:07 +02:00
install -m 755 VBoxNetNAT %{buildroot} %{_vbox_instdir}
install -m 755 VBoxAutostart %{buildroot} %{_vbox_instdir}
install -m 755 VBoxVolInfo %{buildroot} %{_vbox_instdir}
install -m 755 vboxshell.py %{buildroot} %{_vbox_instdir}
install -m 755 VBoxBalloonCtrl %{buildroot} %{_vbox_instdir}
install -m 755 webtest %{buildroot} %{_vbox_instdir}
install -m 755 VBoxDTrace %{buildroot} %{_vbox_instdir}
2017-09-25 22:31:11 +02:00
install -m 755 VBoxDbg.so %{buildroot} %{_vbox_instdir}
2020-01-20 21:15:41 +01:00
install -m 755 VBoxDbg.so %{buildroot} %{_vbox_instdir}
install -m 755 UICommon.so %{buildroot} %{_vbox_instdir}
2021-07-21 03:05:06 +02:00
install -m 755 vboximg-mount %{buildroot} %{_vbox_instdir}
2010-12-23 11:08:49 +01:00
# create links to vbox tools in PATH - they could be usefull for controlling vbox from command line
2015-01-28 13:40:06 +01:00
ln -s %{_vbox_instdir} /VBoxManage %{buildroot} %{_bindir} /VBoxManage
2015-05-06 17:41:28 +02:00
ln -s %{_vbox_instdir} /VBoxHeadless %{buildroot} %{_bindir} /VBoxHeadless
ln -s %{_vbox_instdir} /VBoxSDL %{buildroot} %{_bindir} /VBoxSDL
2015-01-28 13:40:06 +01:00
ln -s %{_vbox_instdir} /VBoxTunctl %{buildroot} %{_bindir} /VBoxTunctl
2022-06-22 20:17:00 +02:00
ln -s %{_vbox_instdir} /vboximg-mount %{buildroot} %{_bindir} /vboximg-mount
2015-05-06 17:41:28 +02:00
install -m 755 VBoxSVC %{buildroot} %{_vbox_instdir}
install -m 755 VBoxXPCOMIPCD %{buildroot} %{_vbox_instdir}
2015-01-28 13:40:06 +01:00
install -m 755 VBoxExtPackHelperApp %{buildroot} %{_vbox_instdir}
install -m 755 VBoxTestOGL %{buildroot} %{_vbox_instdir}
2015-05-06 17:41:28 +02:00
install -m 755 VBoxPermissionMessage %{buildroot} %{_vbox_instdir}
Accepting request 696073 from home:lwfinger:branches:openSUSE:Factory
- Updated file "Fixes_for_Leap15.1.patch" to handle one addition problem due to backporting of kernel APIa.
Remove "BuildRequires: quilt" - that package is not needed.
VirtualBox 6.0.6 fixes the following: CVE-2019-2656, CVE-2019-2680, CVE-2019-2696, CVE-2019-2703, CVE-2019-2721,
CVE-2019-2722, CVE-2019-2723, CVE-2019-2657, CVE-2019-2690, CVE-2019-2679,
CVE-2019-2678, and CVE-2019-2574 boo#1132827.
- Version bump to 6.0.6 (released April 17 2019 by Oracle)
The following files in the openSUSE implemetation are removed: "fix_32_bit_builds.patch", "fixes_for_5.0.patch", and
"fixes_for_5.1.patch". These issues are fixed upstream.
OBS-URL: https://build.opensuse.org/request/show/696073
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=486
2019-04-30 02:56:27 +02:00
install -m 755 VBoxSUIDMessage %{buildroot} %{_vbox_instdir}
2017-01-14 03:16:29 +01:00
install -m 755 VBoxUSB_DevRules %{buildroot} %{_vbox_instdir}
2015-01-28 13:40:06 +01:00
install -m 755 VBoxNetDHCP %{buildroot} %{_vbox_instdir}
install -m 755 VBoxNetAdpCtl %{buildroot} %{_vbox_instdir}
2019-01-28 21:37:13 +01:00
install -m 755 VirtualBox %{buildroot} %{_vbox_instdir} /VirtualBox6
install -m 755 VirtualBoxVM %{buildroot} %{_vbox_instdir}
2019-04-05 16:49:14 +02:00
# compatibility symlink in order to keep old desktop links functional
ln -s %{_vbox_instdir} /VirtualBoxVM %{buildroot} %{_vbox_instdir} /VirtualBox
2015-01-28 13:40:06 +01:00
install -m 755 VBoxEFI*.fd %{buildroot} %{_vbox_instdir}
2015-05-06 17:41:28 +02:00
install -m 755 VBoxSysInfo.sh %{buildroot} %{_vbox_instdir}
2015-01-28 13:40:06 +01:00
install -m 644 *.so %{buildroot} %{_vbox_instdir}
install -m 644 *.r0 %{buildroot} %{_vbox_instdir}
install -m 644 components/* %{buildroot} %{_vbox_instdir} /components/
2010-12-23 11:08:49 +01:00
# install languages
2015-01-28 13:40:06 +01:00
install -m 644 nls/* %{buildroot} %{_datadir} /virtualbox/nls/
2015-05-10 16:59:12 +02:00
# install kmp src
2017-05-10 20:01:46 +02:00
mkdir -p %{buildroot} %{_usrsrc}/kernel-modules/virtualbox
mkdir -p %{buildroot} %{_usrsrc}/kernel-modules/additions
2021-03-09 18:15:18 +01:00
tar jcf %{buildroot} %{_usrsrc}/kernel-modules/additions/guest_src.tar.bz2 additions/src
2015-05-10 16:59:12 +02:00
cp -a src %{buildroot} %{_usrsrc}/kernel-modules/virtualbox
2017-01-14 03:16:29 +01:00
install -m 644 %{SOURCE11} %{buildroot} %{_udevrulesdir} /60-vboxdrv.rules
2010-12-23 11:08:49 +01:00
popd
2011-02-08 08:32:31 +01:00
2010-12-23 11:08:49 +01:00
# install desktop file
2015-05-06 17:41:28 +02:00
install -m 644 out/linux.*/release/bin/virtualbox.desktop %{buildroot} %{_datadir} /applications/%{name} .desktop
2013-04-03 09:17:07 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /applications/%{name} .desktop 'System Emulator'
2011-02-08 08:32:31 +01:00
2021-04-01 18:06:20 +02:00
%if 0%{?sle_version} != 120300
2019-10-22 00:21:51 +02:00
# install appstream file
2019-10-22 18:38:53 +02:00
mkdir -p %{buildroot} %{_datadir} /metainfo
2019-10-22 00:21:51 +02:00
install -m 644 %{SOURCE2} %{buildroot} %{_datadir} /metainfo/%{name} .appdata.xml
2019-11-02 15:40:38 +01:00
%endif
2019-10-22 00:21:51 +02:00
2010-12-23 11:08:49 +01:00
# create a menu entry
2015-05-06 17:41:28 +02:00
install -m 644 out/linux.*/release/bin/VBox.png %{buildroot} %{_datadir} /pixmaps/virtualbox.png
2010-12-23 11:08:49 +01:00
# install config with session shutdown defs
2015-01-28 13:40:06 +01:00
install -m 644 %{SOURCE4} %{buildroot} %{_sysconfdir} /default/virtualbox
2011-01-05 23:13:56 +01:00
#install wrapper script
2015-01-28 13:40:06 +01:00
install -m 644 %{SOURCE9} %{buildroot} %{_bindir} /VirtualBox
2020-03-24 03:06:06 +01:00
install -m 644 %{SOURCE8} %{buildroot} %{_bindir} /update-extpack.sh
2017-04-29 07:52:10 +02:00
# Service files to load kernel modules on boot
2020-09-09 15:44:15 +02:00
install -m 0644 %{SOURCE14} %{buildroot} %{_unitdir} /vboxdrv.service
2019-01-03 04:21:14 +01:00
ln -s -f %{_sbindir} /service %{buildroot} %{_sbindir} /rcvboxdrv
2020-09-09 15:44:15 +02:00
install -m 0644 %{SOURCE15} %{buildroot} %{_unitdir} /vboxadd-service.service
2021-12-14 22:03:37 +01:00
install -m 0755 %{SOURCE16} %{buildroot} %{_sbindir} /vboxconfig
install -m 0755 %{SOURCE17} %{buildroot} %{_sbindir} /vboxguestconfig
install -m 0755 %{SOURCE18} %{buildroot} %{_sbindir} /vbox-fix-usb-rules.sh
Accepting request 514488 from home:frispete:Kernel-base
Hi Larry,
I finally put some effort in fixing the VM autostart mechanics,
that are terminally broken in the current package (due to the way,
systemd interacts with Sys-V init scripts, stop operations aren't
executed most of the time, because it lost track of the state...).
With these changes, I'm able to reliably start/stop all VMs on
hosts ranging from 13.2 to 42.2. I'm confident, this will improve
for all systemd based systems, i.o.w all those systems we care about..
It resembles pretty much the same scheme, vboxdrv is using already.
Give it a try.
- reorganize vbox autostart, coping with systemd:
- add /usr/lib/virtualbox/vboxes.sh (based on /etc/init.d/vboxes)
- add /usr/lib/systemd/system/vboxes.service
- remove /etc/init.d/vboxes
OBS-URL: https://build.opensuse.org/request/show/514488
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=357
2017-08-04 04:39:17 +02:00
install -m 0755 %{SOURCE19} %{buildroot} %{_vbox_instdir} /vboxdrv.sh
2019-01-28 21:37:13 +01:00
install -m 0644 %{SOURCE21} %{buildroot} %{_unitdir} /vboxweb-service.service
install -m 0755 %{SOURCE22} %{buildroot} %{_vbox_instdir} /vboxweb-service.sh
2021-04-24 15:48:44 +02:00
install -m 0644 %{SOURCE23} %{buildroot} %{_unitdir} /vboxautostart-service.service
2019-05-29 16:36:37 +02:00
ln -s -f %{_sbindir} /service %{buildroot} %{_sbindir} /rcvboxautostart
2021-04-24 15:48:44 +02:00
install -m 0755 %{SOURCE24} %{buildroot} %{_vbox_instdir} /vboxautostart-service.sh
2019-05-29 16:36:37 +02:00
# Init scripts to start virtualbox during boot
2017-06-25 02:21:46 +02:00
ln -sf %{_unitdir} /vboxdrv.service %{buildroot} %{_unitdir} /multi-user.target.wants/vboxdrv.service
ln -sf %{_unitdir} /vboxadd-service.service %{buildroot} %{_unitdir} /multi-user.target.wants/vboxadd-service.service
2021-04-24 15:48:44 +02:00
ln -sf %{_unitdir} /vboxautostart-service.service %{buildroot} %{_unitdir} /multi-user.target.wants/vboxautostart-service.service
2012-03-24 18:13:42 +01:00
2019-05-29 16:36:37 +02:00
# config file for vboxdrv and vboxweb
- Version bump to 5.2.20 (released October 16 2018 by Oracle)
This is a maintenance release. The following items were fixed and/or added:
VMM: fixed task switches triggered by INTn instruction (bug #17979)
Storage: fixed connecting to certain iSCSI targets (bug #17507)
Storage: fixed handling of flush requests when configured to be ignored when the host I/O cache is used (bug #17573)
Drag and drop: implemented support for UNC paths (bug #17146)
Drag and drop: fixed resuming operation when restoring from a saved state (bug #17649)
Drag and drop: fixed copying files with long file names (> 248 characters) from guests to Windows hosts (bug #17447)
Drag and drop: fixed handling files with Unicode names on Windows guests (bug #15501)
Drag and drop: fixed copying empty (0-byte) files to / from guests (bugs #14863 + #17443)
Drag and drop: fixed copying over files from hosts to Linux guests (bug #16025)
Networking: restore connectivity for guests bridged to host adapters that were unavailable temporarily (Windows hosts, bug #17090)
Guest Control: fixed hang when using --wait-stdout and/or --wait-stderr (bug #17386). Needs updating Guest Additions
Video recording: fixed starting video recording on VM power up (bug #17307)
Linux Additions: various build fixes for kernel modules on recent distributions, and made sure modules end up in initramfs files
Linux Additions: build fixes for 4.19, thank you Larry Finger
Linux Additions: various small fixes for video driver
This version also addresses the following vulnerabilities: CVE-2018-0732, CVE-2018-2909, CVE-2018-3287
CVE-2018-3288, CVE-2018-3289, CVE-2018-3290, CVE-2018-3291, CVE-2018-3292, CVE-2018-3293,
CVE-2018-3294, CVE-2018-3295, CVE-2018-3296, CVE-2018-3297, and CVE-2018-3298. bsc#1112097
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=446
2018-10-29 21:13:27 +01:00
install -d -m 755 %{buildroot} %{_sysconfdir} /vbox
2021-10-01 16:57:38 +02:00
# install -d -m 775 %{buildroot}%{_sysconfdir}/vbox/autostart.d
2015-05-06 17:41:28 +02:00
echo -e " # s e t t i n g s f o r v b o x w e b s r n \n V B O X W E B _ U S E R = r o o t " > %{buildroot} %{_sysconfdir} /vbox/vbox.cfg
2019-05-29 16:36:37 +02:00
# config file for vboxautostart
2019-01-03 04:21:14 +01:00
cat > %{buildroot} %{_sysconfdir} /vbox/autostart.cfg << EOF
default_policy = deny
# Create an entry for each user allowed to use autostart
myusername = {
allow = true
}
EOF
2013-04-03 09:17:07 +02:00
# install udev helper script for creating usb devices
2016-08-22 05:08:37 +02:00
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot} %{_vbox_instdir} /VBoxCreateUSBNode.sh
2010-12-23 11:08:49 +01:00
######################################################
2017-05-10 20:01:46 +02:00
echo " e n t e r i n g p y t h o n - v i r t u a l b o x i n s t a l l s e c t i o n "
2010-12-23 11:08:49 +01:00
######################################################
2011-02-08 08:32:31 +01:00
pushd out/linux.*/release/bin/sdk/installer
2018-11-03 05:10:03 +01:00
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
2011-02-08 08:32:31 +01:00
popd
2015-01-28 13:40:06 +01:00
install -d -m 755 %{buildroot} %{_vbox_instdir} /sdk/bindings/xpcom
cp -r out/linux.*/release/bin/sdk/bindings/xpcom/python %{buildroot} %{_vbox_instdir} /sdk/bindings/xpcom
2022-05-23 20:55:37 +02:00
%py3_compile %{buildroot} %{_vbox_instdir} /sdk/bindings/xpcom/python
2011-02-08 08:32:31 +01:00
######################################################
echo " e n t e r i n g v i r t u a l b o x - d e v e l i n s t a l l s e c t i o n "
######################################################
2015-01-28 13:40:06 +01:00
cp -r out/linux.*/release/bin/sdk/bindings/auth %{buildroot} %{_vbox_instdir} /sdk/bindings
2011-02-08 08:32:31 +01:00
pushd out/linux.*/release/bin/sdk/bindings/xpcom
2015-01-28 13:40:06 +01:00
cp -r include %{buildroot} %{_vbox_instdir} /sdk/bindings/xpcom
cp -r idl %{buildroot} %{_vbox_instdir} /sdk/bindings/xpcom
cp -r samples %{buildroot} %{_vbox_instdir} /sdk/bindings/xpcom
2011-02-08 08:32:31 +01:00
popd
2015-01-28 13:40:06 +01:00
cp out/linux.*/release/bin/sdk/bindings/VirtualBox.xidl %{buildroot} %{_vbox_instdir} /sdk/bindings
2010-12-23 11:08:49 +01:00
2012-03-14 21:47:21 +01:00
######################################################
echo " e n t e r i n g v i r t u a l b o x - w e b s r v i n s t a l l s e c t i o n "
######################################################
pushd out/linux.*/release/bin
2015-05-06 17:41:28 +02:00
install -m 755 vboxwebsrv %{buildroot} %{_vbox_instdir}
install -m 755 webtest %{buildroot} %{_vbox_instdir}
2012-03-14 21:47:21 +01:00
popd
2022-09-16 19:04:36 +02:00
ln -sf %{_unitdir} /vboxweb-service.service %{buildroot} %{_unitdir} /multi-user.target.wants/vboxweb-service.service
2012-03-14 21:47:21 +01:00
#
2010-12-23 11:08:49 +01:00
######################################################
2014-01-13 04:23:05 +01:00
echo " e n t e r i n g v i r t u a l b o x - g u e s t - d e s k t o p - i c o n s i n s t a l l s e c t i o n "
######################################################
2019-05-29 16:36:37 +02:00
install -d -m 755 %{buildroot} %{_datadir} /pixmaps/virtualbox
2014-01-13 04:23:05 +01:00
pushd src/VBox/Frontends/VirtualBox/images
for icon in os_*.png; do
2019-05-29 16:36:37 +02:00
install -m 644 " $ i c o n " %{buildroot} %{_datadir} /pixmaps/virtualbox/" $ i c o n " ;
2014-01-13 04:23:05 +01:00
done
popd
#
######################################################
2010-12-23 11:08:49 +01:00
# run fdupes
######################################################
#run fdupes because we lost link for virtualbox/components directory
%fdupes %{buildroot} /%{_vbox_instdir}
#also some translation files are duplicated
%fdupes %{buildroot} /%{_datadir} /virtualbox/nls
2014-01-13 04:23:05 +01:00
#also some icon files are duplicated
2019-05-29 16:36:37 +02:00
%fdupes %{buildroot} /%{_datadir} /pixmaps/virtualbox
2010-12-23 11:08:49 +01:00
2012-03-14 21:47:21 +01:00
#
#
######################################################
# scriptlets - pre
######################################################
2010-12-23 11:08:49 +01:00
%pre
2015-05-06 22:36:38 +02:00
getent group vboxusers >/dev/null || groupadd -r vboxusers
2017-04-29 07:52:10 +02:00
%service_add_pre vboxdrv.service
2021-04-24 15:48:44 +02:00
%service_add_pre vboxautostart-service.service
2015-05-06 22:36:38 +02:00
%pre guest-tools
# Add groups for seamless mode and shared folders:
getent group vboxguest >/dev/null || groupadd -r vboxguest
getent group vboxsf >/dev/null || groupadd -r vboxsf
2019-07-30 21:54:24 +02:00
%if 0%{?suse_version} <= 1500
Accepting request 696073 from home:lwfinger:branches:openSUSE:Factory
- Updated file "Fixes_for_Leap15.1.patch" to handle one addition problem due to backporting of kernel APIa.
Remove "BuildRequires: quilt" - that package is not needed.
VirtualBox 6.0.6 fixes the following: CVE-2019-2656, CVE-2019-2680, CVE-2019-2696, CVE-2019-2703, CVE-2019-2721,
CVE-2019-2722, CVE-2019-2723, CVE-2019-2657, CVE-2019-2690, CVE-2019-2679,
CVE-2019-2678, and CVE-2019-2574 boo#1132827.
- Version bump to 6.0.6 (released April 17 2019 by Oracle)
The following files in the openSUSE implemetation are removed: "fix_32_bit_builds.patch", "fixes_for_5.0.patch", and
"fixes_for_5.1.patch". These issues are fixed upstream.
OBS-URL: https://build.opensuse.org/request/show/696073
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=486
2019-04-30 02:56:27 +02:00
getent group vboxvideo >/dev/null || groupadd -r vboxvideo
%endif
2019-01-28 21:37:13 +01:00
%service_add_pre vboxadd-service.service
%pre websrv
%service_add_pre vboxweb-service.service
2010-12-23 11:08:49 +01:00
2012-03-14 21:47:21 +01:00
#######################################################
# scriptlets - post
#######################################################
2018-03-21 16:58:15 +01:00
%post
2021-10-05 18:20:22 +02:00
/sbin/ldconfig
2012-03-24 18:13:42 +01:00
#setup our sysconfig file /etc/sysconfig/vbox
2017-09-11 02:35:53 +02:00
%set_permissions %{_vbox_instdir} /VBoxNetNAT
2015-01-28 13:40:06 +01:00
%set_permissions %{_vbox_instdir} /VBoxNetDHCP
%set_permissions %{_vbox_instdir} /VBoxNetAdpCtl
%set_permissions %{_vbox_instdir} /VBoxHeadless
2017-04-29 07:52:10 +02:00
%service_add_post vboxdrv.service
2021-04-24 15:48:44 +02:00
%service_add_post vboxautostart-service.service
2019-01-05 02:23:29 +01:00
# add new autostart stuff to the existing default config, if missing
2021-07-30 03:41:47 +02:00
grep -q VBOXAUTOSTART %{_sysconfdir} /default/virtualbox || {
cat >> %{_sysconfdir} /default/virtualbox << EOF
2019-01-05 02:23:29 +01:00
#
# -------------------------------------------------------------------------------------------------
# Autostart
# -------------------------------------------------------------------------------------------------
2021-07-30 03:41:47 +02:00
VBOXAUTOSTART_DB=%{_sysconfdir} /vbox/autostart.d
VBOXAUTOSTART_CONFIG=%{_sysconfdir} /vbox/autostart.cfg
2019-01-05 02:23:29 +01:00
EOF
}
2021-07-30 03:41:47 +02:00
for entry in %{_sysconfdir} /vbox/*.start
2021-04-24 15:48:44 +02:00
do
user=$(basename " $ e n t r y " .start)
[ " $ u s e r " = " * " ] && break
2021-07-30 03:41:47 +02:00
mv %{_sysconfdir} /vbox/user.start %{_sysconfdir} /vbox/autostart.d/.
2021-04-24 15:48:44 +02:00
done
2010-12-23 11:08:49 +01:00
2018-03-21 16:58:15 +01:00
%post qt
2019-01-28 21:37:13 +01:00
%set_permissions %{_vbox_instdir} /VirtualBoxVM
2017-10-03 15:06:25 +02:00
%set_permissions %{_vbox_instdir} /VBoxSDL
2011-03-17 14:20:12 +01:00
%verify script
2017-09-11 02:35:53 +02:00
%verify _permissions -e %{_vbox_instdir} /VBoxNetNAT
2015-01-28 13:40:06 +01:00
%verify _permissions -e %{_vbox_instdir} /VBoxNetDHCP
2011-10-10 11:26:15 +02:00
%verify _permissions -e %{_vbox_instdir} /VBoxNetAdpCtl
2015-01-28 13:40:06 +01:00
%verify _permissions -e %{_vbox_instdir} /VBoxHeadless
2011-03-17 14:20:12 +01:00
%verify script qt
2019-01-28 21:37:13 +01:00
%verify _permissions -e %{_vbox_instdir} /VirtualBoxVM
2017-10-03 15:06:25 +02:00
%verify _permissions -e %{_vbox_instdir} /VBoxSDL
2010-12-23 11:08:49 +01:00
2018-03-21 16:58:15 +01:00
%post guest-tools
2017-04-29 07:52:10 +02:00
%service_add_post vboxadd-service.service
2022-08-11 01:50:09 +02:00
%service_add_post vboxclient.service
%service_add_post vboxservice.service
2010-12-23 11:08:49 +01:00
2018-03-21 16:58:15 +01:00
%post websrv
2019-01-28 21:37:13 +01:00
%service_add_post vboxweb-service.service
2017-05-10 20:01:46 +02:00
2018-03-21 16:58:15 +01:00
%post vnc
2021-07-30 03:41:47 +02:00
EXTPACK=" %{_datadir} / v i r t u a l b o x / e x t e n s i o n s / V N C - %{version} . v b o x - e x t p a c k "
2017-05-17 22:36:36 +02:00
ACCEPT=" $ ( t a r - - t o - s t d o u t - x f " ${EXTPACK}" . / E x t P a c k - l i c e n s e . t x t | s h a 2 5 6 s u m | h e a d - - b y t e s = 6 4 ) "
VBoxManage extpack install --replace " $ { E X T P A C K } " --accept-license=" $ { A C C E P T } " > /dev/null
2017-05-10 20:01:46 +02:00
2012-03-14 21:47:21 +01:00
#######################################################
# scriptlets preun
#######################################################
2010-12-23 11:08:49 +01:00
%preun
2021-04-24 15:48:44 +02:00
%stop_on_removal vboxautostart-service
2010-12-23 11:08:49 +01:00
%stop_on_removal vboxdrv
2021-04-24 15:48:44 +02:00
%service_del_preun vboxautostart-service.service
2017-04-29 07:52:10 +02:00
%service_del_preun vboxdrv.service
2010-12-23 11:08:49 +01:00
exit 0
%preun guest-tools
2015-09-02 01:16:44 +02:00
%stop_on_removal vboxadd-service
2011-04-13 18:03:05 +02:00
%stop_on_removal vboxadd
2017-04-29 07:52:10 +02:00
%service_del_preun vboxadd-service.service
2022-08-11 01:50:09 +02:00
%systemd_preun vboxclient.service
%systemd_preun vboxservice.service
2010-12-23 11:08:49 +01:00
exit 0
2012-03-14 21:47:21 +01:00
%preun websrv
%stop_on_removal vboxweb-service
2019-01-28 21:37:13 +01:00
%service_del_preun vboxweb-service.service
2012-03-14 21:47:21 +01:00
exit 0
#######################################################
# scriptlets postun
#######################################################
2018-03-21 16:58:15 +01:00
%postun
2021-10-05 18:20:22 +02:00
/sbin/ldconfig
2010-12-23 11:08:49 +01:00
%restart_on_update vboxdrv
2021-04-24 15:48:44 +02:00
%restart_on_update vboxautostart-service
2017-04-29 07:52:10 +02:00
# immediately restarting virtualbox may not work. As such wait for the next reboot to restart
2020-09-18 20:53:04 +02:00
%if ! %{defined service_del_postun_without_restart}
export DISABLE_RESTART_ON_UPDATE=yes
2021-04-24 15:48:44 +02:00
%service_del_postun vboxautostart-service.service
2020-09-18 20:53:04 +02:00
%service_del_postun vboxdrv.service
%else
2021-04-24 15:48:44 +02:00
%service_del_postun_without_restart vboxautostart-service.service
2020-09-17 18:28:55 +02:00
%service_del_postun_without_restart vboxdrv.service
2020-09-18 20:53:04 +02:00
%endif
2010-12-23 11:08:49 +01:00
2018-03-21 16:58:15 +01:00
%postun guest-tools
2010-12-23 11:08:49 +01:00
%restart_on_update vboxadd
2015-09-02 01:16:44 +02:00
%restart_on_update vboxadd-service
2017-04-29 07:52:10 +02:00
%service_del_postun vboxadd-service.service
2022-08-11 01:50:09 +02:00
%service_del_postun vboxclient.service
%service_del_postun vboxservice.service
2011-02-08 08:32:31 +01:00
2018-03-21 16:58:15 +01:00
%postun websrv
2012-03-14 21:47:21 +01:00
%restart_on_update vboxweb-service
2019-01-28 21:37:13 +01:00
%service_del_postun vboxweb-service.service
2015-01-28 13:40:06 +01:00
#
2012-03-14 21:47:21 +01:00
#######################################################
2010-12-23 11:08:49 +01:00
%files
2019-09-07 23:48:44 +02:00
%doc README.autostart UserManual.pdf README.build
2010-12-23 11:08:49 +01:00
%{_bindir} /VBoxManage
2011-04-13 18:03:05 +02:00
%{_bindir} /VBoxHeadless
2010-12-23 11:08:49 +01:00
%{_bindir} /VBoxTunctl
2022-06-22 20:17:00 +02:00
%{_bindir} /vboximg-mount
2010-12-23 11:08:49 +01:00
%dir %{_vbox_instdir}
2015-07-15 20:42:07 +02:00
%{_vbox_instdir} /VBoxAutostart
%{_vbox_instdir} /VBoxBalloonCtrl
%{_vbox_instdir} /VBoxDTrace
%{_vbox_instdir} /VBoxNetNAT
%{_vbox_instdir} /VBoxVolInfo
%{_vbox_instdir} /vboxshell.py
2010-12-23 11:08:49 +01:00
%{_vbox_instdir} /VBoxSysInfo.sh
%{_vbox_instdir} /VBoxDD2.so
%{_vbox_instdir} /VBoxDD.so
%{_vbox_instdir} /VBoxDDU.so
%{_vbox_instdir} /VBoxGuestControlSvc.so
%{_vbox_instdir} /VBoxGuestPropSvc.so
%{_vbox_instdir} /VBoxHeadless.so
%{_vbox_instdir} /VBoxNetDHCP.so
2014-01-19 19:22:44 +01:00
%{_vbox_instdir} /VBoxNetNAT.so
2010-12-23 11:08:49 +01:00
%{_vbox_instdir} /VBoxRT.so
%{_vbox_instdir} /VBoxSharedFolders.so
%{_vbox_instdir} /VBoxVMM.so
%{_vbox_instdir} /VBoxXPCOMC.so
%{_vbox_instdir} /VBoxXPCOM.so
%{_vbox_instdir} /VBox*.r0
%{_vbox_instdir} /VMMR0.r0
%{_vbox_instdir} /VBoxEFI*.fd
%{_vbox_instdir} /VBoxManage
%{_vbox_instdir} /VBoxSVC
%{_vbox_instdir} /VBoxTunctl
%{_vbox_instdir} /VBoxXPCOMIPCD
2011-02-02 21:59:25 +01:00
%{_vbox_instdir} /VBoxExtPackHelperApp
2021-07-21 03:05:06 +02:00
%{_vbox_instdir} /vboximg-mount
2015-07-13 14:42:49 +02:00
%{_vbox_instdir} /DbgPlugInDiggers.so
2010-12-23 11:08:49 +01:00
%{_vbox_instdir} /VBoxAuth.so
%{_vbox_instdir} /VBoxAuthSimple.so
2012-10-02 16:03:09 +02:00
%{_vbox_instdir} /VBoxDragAndDropSvc.so
%{_vbox_instdir} /VBoxVMMPreload.so
2012-10-23 12:43:42 +02:00
#todo:double check - if this file should be assigned to the host side
2020-01-20 21:15:41 +01:00
%{_vbox_instdir} /UICommon.so
2012-10-23 12:43:42 +02:00
%{_vbox_instdir} /VBoxHostChannel.so
2010-12-23 11:08:49 +01:00
%dir %{_vbox_instdir} /components
%{_vbox_instdir} /components/*.so
%{_vbox_instdir} /components/*.xpt
%dir %{_datadir} /virtualbox
%config %{_sysconfdir} /default/virtualbox
2021-07-30 03:41:47 +02:00
%dir %{_prefix} /lib/virtualbox
2017-04-29 07:52:10 +02:00
%dir %{_unitdir}
%dir %{_unitdir} /multi-user.target.wants
2021-07-30 03:41:47 +02:00
%{_prefix} /lib/virtualbox/vboxdrv.sh
%{_prefix} /lib/virtualbox/vboxautostart-service.sh
2017-04-29 07:52:10 +02:00
%{_unitdir} /vboxdrv.service
2021-04-24 15:48:44 +02:00
%{_unitdir} /vboxautostart-service.service
2017-04-29 07:52:10 +02:00
%{_unitdir} /multi-user.target.wants/vboxdrv.service
2021-04-24 15:48:44 +02:00
%{_unitdir} /multi-user.target.wants/vboxautostart-service.service
2022-09-16 19:04:36 +02:00
%{_unitdir} /multi-user.target.wants/vboxweb-service.service
2019-01-03 04:21:14 +01:00
%{_sbindir} /rcvboxdrv
2019-05-29 16:36:37 +02:00
%{_sbindir} /rcvboxautostart
2021-12-14 22:03:37 +01:00
%{_sbindir} /vboxconfig
2021-10-03 17:43:40 +02:00
#rules fixing script is in /usr/sbin
2021-12-14 22:03:37 +01:00
%attr (0755,root,root) %{_sbindir} /vbox-fix-usb-rules.sh
2016-08-22 05:08:37 +02:00
%{_vbox_instdir} /VBoxCreateUSBNode.sh
2020-01-20 21:15:41 +01:00
%verify (not mode) %attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxNetNAT
%verify (not mode) %attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxNetDHCP
%verify (not mode) %attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxNetAdpCtl
%verify (not mode) %attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxHeadless
2019-01-05 02:23:29 +01:00
%dir %{_sysconfdir} /vbox
2021-04-24 15:48:44 +02:00
%dir %{_sysconfdir} /vbox/autostart.d
%attr (755,root,root) %{_sysconfdir} /vbox
%attr (1770,root,vboxusers) %{_sysconfdir} /vbox/autostart.d
2019-01-05 02:23:29 +01:00
%config %attr (644,root,vboxusers) %{_sysconfdir} /vbox/vbox.cfg
%config %attr (644,root,vboxusers) %{_sysconfdir} /vbox/autostart.cfg
2011-09-19 20:07:13 +02:00
2010-12-23 11:08:49 +01:00
%files qt
2011-10-10 11:26:15 +02:00
%attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxPermissionMessage
Accepting request 696073 from home:lwfinger:branches:openSUSE:Factory
- Updated file "Fixes_for_Leap15.1.patch" to handle one addition problem due to backporting of kernel APIa.
Remove "BuildRequires: quilt" - that package is not needed.
VirtualBox 6.0.6 fixes the following: CVE-2019-2656, CVE-2019-2680, CVE-2019-2696, CVE-2019-2703, CVE-2019-2721,
CVE-2019-2722, CVE-2019-2723, CVE-2019-2657, CVE-2019-2690, CVE-2019-2679,
CVE-2019-2678, and CVE-2019-2574 boo#1132827.
- Version bump to 6.0.6 (released April 17 2019 by Oracle)
The following files in the openSUSE implemetation are removed: "fix_32_bit_builds.patch", "fixes_for_5.0.patch", and
"fixes_for_5.1.patch". These issues are fixed upstream.
OBS-URL: https://build.opensuse.org/request/show/696073
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=486
2019-04-30 02:56:27 +02:00
%attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxSUIDMessage
2017-01-14 03:16:29 +01:00
%attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxUSB_DevRules
2019-01-28 21:37:13 +01:00
%attr (0755,root,vboxusers) %{_vbox_instdir} /VirtualBox6
2020-09-18 20:53:04 +02:00
%verify (not mode) %attr (0750,root,vboxusers) %{_vbox_instdir} /VirtualBoxVM
2020-01-20 21:15:41 +01:00
%verify (not mode) %attr (0755,root,vboxusers) %{_vbox_instdir} /VBoxSDL
2019-04-05 16:49:14 +02:00
%{_vbox_instdir} /VirtualBox
2010-12-23 11:08:49 +01:00
#wrapper script is in bindir
%attr (0755,root,root) %{_bindir} /VirtualBox
2020-03-24 03:06:06 +01:00
%attr (0755,root,root) %{_bindir} /update-extpack.sh
2010-12-23 11:08:49 +01:00
#ldd shows libQt* dependency
%{_vbox_instdir} /VBoxTestOGL
#qm's translations
%{_datadir} /virtualbox/nls
2019-01-28 21:37:13 +01:00
%{_vbox_instdir} /VBoxSVGA3D.so
%{_vbox_instdir} /VirtualBoxVM.so
2017-09-25 22:31:11 +02:00
%{_vbox_instdir} /VBoxDbg.so
2017-10-03 15:06:25 +02:00
%{_bindir} /VBoxSDL
%{_vbox_instdir} /VBoxSDL.so
2017-10-17 15:51:44 +02:00
%{_vbox_instdir} /VBoxKeyboard.so
%{_vbox_instdir} /VBoxSharedClipboard.so
2011-04-25 07:36:42 +02:00
%{_datadir} /pixmaps/virtualbox.png
2010-12-23 11:08:49 +01:00
%{_datadir} /applications/%{name} .desktop
2021-04-01 18:06:20 +02:00
%if 0%{?sle_version} != 120300
2019-10-22 00:21:51 +02:00
%{_datadir} /metainfo/%{name} .appdata.xml
2019-11-02 15:40:38 +01:00
%endif
2017-01-14 03:16:29 +01:00
%{_udevrulesdir} /60-vboxdrv.rules
2011-09-19 20:07:13 +02:00
2010-12-23 11:08:49 +01:00
%files guest-tools
%{_bindir} /VBoxControl
2015-09-02 01:16:44 +02:00
%{_sbindir} /VBoxService
2021-12-14 22:03:37 +01:00
%{_sbindir} /vboxguestconfig
%{_sbindir} /mount.vboxsf
2013-04-26 12:03:16 +02:00
%{_udevrulesdir} /60-vboxguest.rules
2017-07-10 20:31:23 +02:00
%{_vbox_instdir} /vboxadd-service
2017-04-29 07:52:10 +02:00
%{_unitdir} /vboxadd-service.service
%{_unitdir} /multi-user.target.wants/vboxadd-service.service
2022-08-11 01:50:09 +02:00
%dir %{_libdir} /xorg/modules/drivers
%dir %{_libdir} /xorg/modules/input
%dir %{_libdir} /dri/
2022-09-16 19:04:36 +02:00
%dir %{_sysconfdir} /X11
%dir %{_sysconfdir} /X11/xinit
%dir %{_sysconfdir} /X11/xinit/xinitrc.d
2022-08-11 01:50:09 +02:00
%{_bindir} /VBoxClient
%{_bindir} /VBoxDRMClient
2022-09-16 19:04:36 +02:00
%{_sysconfdir} /X11/xinit/xinitrc.d/98vboxadd-xclient
2022-08-11 01:50:09 +02:00
%{_unitdir} /vboxclient.service
%{_unitdir} /vboxservice.service
2022-09-16 19:04:36 +02:00
%dir %{_sysconfdir} /xdg
%dir %{_sysconfdir} /xdg/autostart
%{_sysconfdir} /xdg/autostart/vboxclient.desktop
2017-06-26 01:44:07 +02:00
%if 0%{?suse_version} > 1320 || 0%{?sle_version} == 120300
2015-09-02 01:16:44 +02:00
%dir /media
%endif
2011-09-19 20:07:13 +02:00
2018-11-08 09:19:49 +01:00
%files -n python3-%{name}
2010-12-23 11:08:49 +01:00
%dir %{_vbox_instdir} /sdk
%dir %{_vbox_instdir} /sdk/bindings
%dir %{_vbox_instdir} /sdk/bindings/xpcom
%{_vbox_instdir} /sdk/bindings/xpcom/python
2018-11-08 09:19:49 +01:00
%{_vbox_instdir} /VBoxPython*.so
%{python3_sitelib} /vboxapi-1.0-*.egg-info
%{python3_sitelib} /vboxapi/
2010-12-23 11:08:49 +01:00
%files devel
2011-02-08 08:32:31 +01:00
%dir %{_vbox_instdir} /sdk
%dir %{_vbox_instdir} /sdk/bindings
%dir %{_vbox_instdir} /sdk/bindings/xpcom
2010-12-23 11:08:49 +01:00
%{_vbox_instdir} /sdk/bindings/VirtualBox.xidl
%{_vbox_instdir} /sdk/bindings/xpcom/idl
%{_vbox_instdir} /sdk/bindings/xpcom/include
%{_vbox_instdir} /sdk/bindings/xpcom/samples
%{_vbox_instdir} /sdk/bindings/auth
2015-05-10 16:59:12 +02:00
%files host-source
%dir %{_usrsrc}/kernel-modules
%{_usrsrc}/kernel-modules/virtualbox
2021-03-09 18:15:18 +01:00
%files guest-source
%dir %{_usrsrc}/kernel-modules
%dir %{_usrsrc}/kernel-modules/additions
%{_usrsrc}/kernel-modules/additions/guest_src.tar.bz2
2012-03-14 21:47:21 +01:00
%files websrv
2019-01-28 21:37:13 +01:00
%{_unitdir} /vboxweb-service.service
%{_vbox_instdir} /vboxweb-service.sh
2012-03-14 21:47:21 +01:00
%{_vbox_instdir} /webtest
2019-01-28 21:37:13 +01:00
%{_vbox_instdir} /vboxwebsrv
2012-03-14 21:47:21 +01:00
2014-01-13 04:23:05 +01:00
%files guest-desktop-icons
2019-05-29 16:36:37 +02:00
%dir %{_datadir} /pixmaps/virtualbox
%{_datadir} /pixmaps/virtualbox/*.png
2014-01-13 04:23:05 +01:00
2017-05-10 20:01:46 +02:00
%files vnc
2021-05-11 20:15:49 +02:00
%license COPYING
2017-05-10 20:01:46 +02:00
%dir %{_datadir} /virtualbox/extensions
%{_datadir} /virtualbox/extensions/VNC-%{version} .vbox-extpack
2020-08-29 21:52:49 +02:00
# main_package
%endif
2020-07-10 20:39:52 +02:00
2021-04-01 18:06:20 +02:00
### %%build and %%install sections of virtualbox-kmp ###
2020-07-10 20:39:52 +02:00
%if %{kmp_package}
%build
# Disable LTO - Link Time Optimization
%define _lto_cflags %{nil}
#ensure we don't ever use them
rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*}
# Craft LocalConfig.kmk
echo "
VBOX_GCC_OPT := %{optflags}
2021-04-01 18:06:20 +02:00
VBOX_GCC_WERR :=
2020-07-10 20:39:52 +02:00
VBOX_BUILD_PUBLISHER := _SUSE
VBOX_OSE := 1
VBOX_WITH_DOCS :=
VBOX_WITHOUT_LINUX_TEST_BUILDS := 1
VBOX_WITH_TESTCASES :=
SDK_VBOX_LIBXML2_DEFS := _REENTRANT
2021-07-30 03:41:47 +02:00
SDK_VBOX_LIBXML2_INCS := %{_includedir} /libxml2
2020-07-10 20:39:52 +02:00
SDK_VBOX_LIBXML2_LIBS := xml2
SDK_VBOX_OPENSSL_INCS :=
SDK_VBOX_OPENSSL_LIBS := ssl crypto
SDK_VBOX_BLD_OPENSSL_LIBS := ssl crypto
SDK_VBOX_LIBCURL_INCS :=
SDK_VBOX_LIBCURL_LIBS := curl
" > L o c a l C o n f i g . k m k
COMMON_KMK_FLAGS="
KBUILD_VERBOSE=2 \
KBUILD_TARGET=linux \
BUILD_TARGET=linux \
"
# Architecture specific flags
%ifarch x86_64
COMMON_KMK_FLAGS+="
KBUILD_TARGET_ARCH=amd64 \
BUILD_TARGET_ARCH=amd64
"
%endif
# Build additions to export the source code of vbox{guest,sf,video} to
# out/linux.*/release/bin/additions/src/
2021-07-30 03:41:47 +02:00
%{_bindir} /kmk %{?_smp_mflags} \
2020-07-10 20:39:52 +02:00
${COMMON_KMK_FLAGS} \
VBOX_WITH_X11_ADDITIONS= \
VBOX_ONLY_ADDITIONS=1
# The following kmk commands are used to extract the source of
# vbox{drv,netflt,netadp} without building the whole virtualbox
# program.
# 1. build src/bldprogs/ to get bin2c and VBoxTpG
2021-07-30 03:41:47 +02:00
%{_bindir} /kmk %{?_smp_mflags} -C src/bldprogs/ \
2020-07-10 20:39:52 +02:00
${COMMON_KMK_FLAGS} \
VBOX_ONLY_EXTPACKS=1
# 2. build src/VBox/HostDrivers/ with VBOX_ONLY_EXTPACKS=1 to
# get SUPR3.a for src/VBox/Runtime/
2021-07-30 03:41:47 +02:00
%{_bindir} /kmk %{?_smp_mflags} -C src/VBox/HostDrivers/ \
2020-07-10 20:39:52 +02:00
${COMMON_KMK_FLAGS} \
VBOX_ONLY_EXTPACKS=1
# 3. build src/VBox/Runtime/ with VBOX_ONLY_BUILD=1 to get
# VBoxRt.so for src/VBox/HostDrivers/Support/
2021-07-30 03:41:47 +02:00
%{_bindir} /kmk %{?_smp_mflags} -C src/VBox/Runtime/ \
2020-07-10 20:39:52 +02:00
${COMMON_KMK_FLAGS} \
VBOX_ONLY_BUILD=1
# 4. build src/VBox/HostDrivers/ to export the source of
# host kernel modules to out/linux.*/release/bin/src/
2021-07-30 03:41:47 +02:00
%{_bindir} /kmk %{?_smp_mflags} -C src/VBox/HostDrivers/ \
2020-07-10 20:39:52 +02:00
${COMMON_KMK_FLAGS}
#
2021-03-09 18:15:18 +01:00
# build kernel modules for guest and host (check novel-kmp package as example)
# host modules : vboxdrv,vboxnetflt,vboxnetadp
2021-05-20 22:31:33 +02:00
# guest modules : vboxguest,vboxsf
2021-03-09 18:15:18 +01:00
echo " b u i l d k e r n e l m o d u l e s "
for vbox_module in out/linux.*/release/bin/src/vbox{drv,netflt,netadp} \
2021-05-20 22:31:33 +02:00
out/linux.*/release/bin/additions/src/vbox{guest,sf}; do
2020-07-10 20:39:52 +02:00
#get the module name from path
module_name=$(basename " $ v b o x _ m o d u l e " )
# go through the all flavors (desktop,default ...)
for flavor in %{flavors_to_build} ; do
# delete old build dir for sure
rm -rf modules_build_dir/${module_name}_${flavor}
2021-03-09 18:15:18 +01:00
if [ " $ m o d u l e _ n a m e " = " v b o x d r v " -o \
" $ m o d u l e _ n a m e " = " v b o x g u e s t " ] ; then
2020-07-10 20:39:52 +02:00
SYMBOLS=" "
fi
# create build directory for specific flavor
mkdir -p modules_build_dir/$flavor
# copy sources which will be used to build vbox module in last step
cp -r $vbox_module/ modules_build_dir/$flavor/
# copy vboxdrv (for host) module symbols which are used by vboxnetflt and vboxnetadp km's:
if [ " $ m o d u l e _ n a m e " = " v b o x n e t f l t " -o \
" $ m o d u l e _ n a m e " = " v b o x n e t a d p " ] ; then
cp $PWD/modules_build_dir/$flavor/vboxdrv/Module.symvers \
$PWD/modules_build_dir/$flavor/$module_name
SYMBOLS=" $ P W D / m o d u l e s _ b u i l d _ d i r / $ f l a v o r / v b o x d r v / M o d u l e . s y m v e r s "
fi
2021-03-09 18:15:18 +01:00
# copy vboxguest (for guest) module symbols which are used by vboxsf km:
if [ " $ m o d u l e _ n a m e " = " v b o x s f " -o \
" $ m o d u l e _ n a m e " = " v b o x v i d e o " ] ; then
cp $PWD/modules_build_dir/$flavor/vboxguest/Module.symvers \
$PWD/modules_build_dir/$flavor/$module_name
SYMBOLS=" $ P W D / m o d u l e s _ b u i l d _ d i r / $ f l a v o r / v b o x g u e s t / M o d u l e . s y m v e r s "
fi
2020-07-10 20:39:52 +02:00
# build the module for the specific flavor
2021-07-30 03:41:47 +02:00
%make_build -j2 -C %{_prefix} /src/linux-obj/%{_target_cpu}/$flavor %{?linux_make_arch} modules \
2020-07-10 20:39:52 +02:00
M=$PWD/modules_build_dir/$flavor/$module_name KBUILD_EXTRA_SYMBOLS=" $ S Y M B O L S " V=1
done
done
%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=extra
#to install modules we use here similar steps like in build phase, go through all the modules :
2021-05-20 22:31:33 +02:00
for module_name in vbox{drv,netflt,netadp,guest,sf}
2020-07-10 20:39:52 +02:00
do
#and through the all flavors
for flavor in %{flavors_to_build} ; do
make -C %{_prefix} /src/linux-obj/%{_target_cpu}/$flavor modules_install M=$PWD/modules_build_dir/$flavor/$module_name
done
done
2020-08-29 21:52:49 +02:00
# kmp_package
%endif
2020-07-10 20:39:52 +02:00
2010-12-23 11:08:49 +01:00
%changelog