2010-12-23 11:08:49 +01:00
|
|
|
#
|
2011-09-19 20:07:13 +02:00
|
|
|
# spec file for package virtualbox
|
2010-12-23 11:08:49 +01:00
|
|
|
#
|
2015-01-28 13:40:06 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-28 13:20:47 +01:00
|
|
|
|
2015-01-28 13:40:06 +01:00
|
|
|
%define _vbox_instdir %{_libexecdir}/virtualbox
|
|
|
|
%define _udevrulesdir %{_libexecdir}/udev/rules.d
|
2010-12-23 11:08:49 +01:00
|
|
|
Name: virtualbox
|
2015-03-23 11:06:31 +01:00
|
|
|
Version: 4.3.26
|
2011-12-07 11:41:35 +01:00
|
|
|
Release: 0
|
2010-12-23 11:08:49 +01:00
|
|
|
Summary: VirtualBox is an Emulator
|
2011-12-07 11:41:35 +01:00
|
|
|
License: GPL-2.0+
|
2010-12-23 11:08:49 +01:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Url: http://www.virtualbox.org/
|
|
|
|
#
|
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 :)
|
2011-04-13 18:03:05 +02:00
|
|
|
# WARNING: This is not a comment, but the real command to repack souce
|
2010-12-23 11:08:49 +01:00
|
|
|
#%(bash %{_sourcedir}/virtualbox-patch-source.sh VirtualBox-%{version}.tar.bz2)
|
|
|
|
Source0: VirtualBox-%{version}-patched.tar.bz2
|
Accepting request 265616 from home:coolo:branches:openSUSE:Factory
- update to version 4.3.20:
+ VMM: fixed reboot hang of 32-bit Windows SMP guests (bug #13319, #13462)
+ VMM: proper Math Fault handling with certain legacy guests (bug #9042, AMD hosts)
+ VMM: fixed a Guru Meditation VINF_EM_TRIPLE_FAULT on older CPUs that don't support MSR-bitmaps (VT-x only; bugs #13034, #13125, #13311, #13425, #13426, #13463, #13585)
+ GUI: fix 3D overlay window re-parenting issue when VM goes to full screen mode on X11 hosts.
+ GUI: fix occasional loss of focus in full-screen mode on X11 host systems (4.3.16 regression)
+ GUI: Mac OS X: wizards should have Cancel button (bug #12541)
+ GUI: added a global option to prevent automatic raising of the new window by mouse move with multi-screen guests (bug #8878)
+ API: accept remote display port 0 as the default RDP port (bug #8534)
+ VBoxManage: fixed crash when executing showvminfo command under certain circumstances (bug #13190)
+ ACPI: fixed occasional Guru Meditations in ACPI timer code (4.3.18 regression; bug #13521)
+ EFI: improved performance of IDE disk access
+ EFI: fixed a bug in the EFI video driver which prevented Windows to boot in UEFI mode (bug #12022)
+ EFI: properly announce the amount of RAM for big VMs (bugs #11103 and #13211)
+ Storage: fixed a crash under certain circumstances when a medium was ejected from a drive attached to the SATA controller without inserting a new medium before pausing or closing the VM (4.3.16 regression)
+ Storage: fixed an interrupt acknowledge issue causing hanging guests or slower I/O (4.3.18 regression)
+ Storage: fixed broken resume after the VM was suspended due to a full disk if host I/O caching is used
+ Storage: fixed a Guru Meditation under certain conditions when using the DevLsiLogic controller with VMs running in raw mode (4.3 regression; bugs #12254, #12655, #12709, #12774, #12886)
+ Guest Control: fixed a bug which might lead to a crash during recursive copy
+ SDK: Java COM bindings fixes
+ iPXE: enable the HTTP download protocol (bug #13628)
+ Runtime: do not use a fixed stack size creating temporary threads during initialization (bug #13038)
+ Windows hosts: fixed more startup problems on certain Windows hosts due to conflicts with anti-virus software; better error reporting (4.3.14 regression; bug #13187)
+ Windows hosts: fixed DirectSound host audio failure under certain conditions (bug #13418)
+ Windows hosts: fixed additional cases of 4.3.14 regression whereby AltGr stopped working for some people (bug #13216)
+ Windows Additions: preserve guest monitor layout when resizing Windows 7 or newer guests
+ Linux Additions: Linux 3.18 compile fixes (bug #13515)
- download the Manual directly without rename
OBS-URL: https://build.opensuse.org/request/show/265616
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=169
2014-12-21 11:36:06 +01:00
|
|
|
Source1: http://download.virtualbox.org/%{name}/%{version}/UserManual.pdf
|
2010-12-23 11:08:49 +01:00
|
|
|
Source2: %{name}-60-vboxdrv.rules
|
|
|
|
Source3: %{name}-60-vboxguest.rules
|
|
|
|
Source4: %{name}-default.virtualbox
|
|
|
|
Source5: %{name}-host-kmp-files
|
|
|
|
Source6: %{name}-guest-kmp-files
|
|
|
|
Source7: %{name}-host-preamble
|
|
|
|
Source8: %{name}-guest-preamble
|
|
|
|
Source9: %{name}-wrapper.sh
|
2012-04-21 23:05:19 +02:00
|
|
|
Source10: %{name}-LocalConfig.kmk
|
2010-12-23 11:08:49 +01:00
|
|
|
# init script to start virtual boxes during boot, to be configured via /etc/sysconfig/vbox bnc#582398
|
|
|
|
Source12: %{name}-vboxes
|
|
|
|
Source13: %{name}-sysconfig.vbox
|
2012-10-02 16:03:09 +02:00
|
|
|
Source98: %{name}-rpmlintrc
|
2010-12-23 11:08:49 +01:00
|
|
|
Source99: %{name}-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
|
2012-03-24 18:13:42 +01:00
|
|
|
Patch3: vbox-vboxweb-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
|
|
|
|
#file :http://www.virtualbox.org/browser/trunk/src/VBox/Devices/PC/vbox.ds
|
|
|
|
#see thread : http://lists.freebsd.org/pipermail/freebsd-acpi/2010-October/006795.html
|
|
|
|
Patch6: vbox-smc-napa.diff
|
2011-02-08 08:32:31 +01:00
|
|
|
#fix build of Python and dev package on openSUSE 11.3
|
|
|
|
Patch8: vbox-python-detection.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
|
|
|
|
#try to start VirtualBox and is not memeber of vboxusers group
|
|
|
|
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
|
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-01-28 13:40:06 +01:00
|
|
|
BuildRequires: LibVNCServer-devel
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: acpica
|
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: bin86
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: dev86
|
|
|
|
BuildRequires: device-mapper-devel
|
|
|
|
BuildRequires: dmidecode
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
#gsoap,libopenssl and java needed for building webservice
|
|
|
|
BuildRequires: gsoap-devel
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
|
|
|
BuildRequires: kbuild >= 0.1.9998svn2689
|
|
|
|
BuildRequires: kernel-syms
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libgsoap-devel
|
|
|
|
BuildRequires: libidl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: libvpx-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: module-init-tools
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pulseaudio-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: quilt
|
|
|
|
BuildRequires: sed
|
|
|
|
BuildRequires: udev
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: which
|
|
|
|
BuildRequires: xorg-x11
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
BuildRequires: xorg-x11-server
|
|
|
|
BuildRequires: xorg-x11-server-sdk
|
|
|
|
BuildRequires: yasm
|
|
|
|
BuildRequires: zlib-devel-static
|
|
|
|
Requires: %{name}-host-kmp = %{version}
|
|
|
|
Requires(post): sysvinit(syslog)
|
|
|
|
Requires(pre): permissions
|
|
|
|
Requires(pre): pwdutils
|
|
|
|
Recommends: %{name}-gui = %{version}
|
2010-12-23 11:56:06 +01:00
|
|
|
#rename from ose version:
|
2015-01-28 13:40:06 +01:00
|
|
|
Provides: %{name}-ose = %{version}
|
|
|
|
Obsoletes: %{name}-ose < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%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
|
2011-03-09 22:08:00 +01:00
|
|
|
%endif
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
VirtualBox is an extremely feature rich, high performance product
|
|
|
|
for enterprise customers, it is also the only professional solution
|
|
|
|
that is freely available as Open Source Software under the terms of the
|
|
|
|
GNU Public License (GPL).
|
|
|
|
##########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%package qt
|
|
|
|
Summary: Qt GUI part for %{name}
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires: %{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
|
2015-01-28 13:40:06 +01:00
|
|
|
Provides: %{name}-ose:%{_libexecdir}/virtualbox/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
|
|
|
|
Qt GUI part for %{name}.
|
|
|
|
#########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2012-03-14 21:47:21 +01:00
|
|
|
%package websrv
|
|
|
|
Summary: WebService GUI part for %{name}
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: %{name}-gui = %{version}
|
|
|
|
|
|
|
|
%description websrv
|
|
|
|
websrv GUI part for %{name}.
|
|
|
|
#########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%package host-KMP
|
|
|
|
Summary: Host kernel module for VirtualBox
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
# SUSE specify macro to define host kmp package
|
2015-01-28 13:40:06 +01:00
|
|
|
%{?suse_kernel_module_package:%suse_kernel_module_package -p %{SOURCE7} -n %{name}-host -f %{SOURCE5} kdump um xen xenpae}
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%description host-KMP
|
|
|
|
This package contains the kernel-module for VirtualBox.
|
|
|
|
##########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%package guest-KMP
|
|
|
|
Summary: Guest kernel modules for VirtualBox
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
#SUSE specify macro to define guest kmp package
|
2015-01-28 13:40:06 +01:00
|
|
|
%{?suse_kernel_module_package:%suse_kernel_module_package -p %{SOURCE8} -n %{name}-guest -f %{SOURCE6} kdump um xen xenpae}
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%description guest-KMP
|
|
|
|
This package contains the kernel-module for VirtualBox.
|
|
|
|
##########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%package guest-x11
|
|
|
|
Summary: VirtualBox X11 drivers for mouse and video
|
|
|
|
Group: System/X11/Servers/XF86_4
|
2015-01-28 13:40:06 +01:00
|
|
|
Requires: %{name}-guest-kmp = %{version}
|
2013-03-20 16:08:03 +01:00
|
|
|
Supplements: modalias(xorg-x11-server:pci:v000080EEd0000BEEFsv*sd*bc*sc*i*)
|
2010-12-23 11:56:06 +01:00
|
|
|
#rename from xorg-x11-driver-virtualbox-ose:
|
2015-01-28 13:40:06 +01:00
|
|
|
Provides: xorg-x11-driver-virtualbox-ose = %{version}
|
|
|
|
Obsoletes: xorg-x11-driver-virtualbox-ose < %{version}
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%description guest-x11
|
2011-04-13 18:03:05 +02:00
|
|
|
VirtualBox
|
2010-12-23 11:08:49 +01:00
|
|
|
This package contains X11 guest utilities and X11 guest mouse and video drivers
|
|
|
|
###########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%package guest-tools
|
|
|
|
Summary: VirtualBox guest tools
|
|
|
|
Group: System/Emulators/PC
|
2015-01-28 13:40:06 +01:00
|
|
|
Requires: %{name}-guest-kmp = %{version}
|
2010-12-23 11:08:49 +01:00
|
|
|
Supplements: modalias(pci:v000080EEd0000BEEFsv*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}
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%description guest-tools
|
|
|
|
VirtualBox guest addition tools.
|
|
|
|
###########################################
|
|
|
|
|
2015-01-28 13:40:06 +01:00
|
|
|
%package -n python-%{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:
|
2015-01-28 13:40:06 +01:00
|
|
|
Provides: python-%{name}-ose = %{version}
|
|
|
|
Obsoletes: python-%{name}-ose < %{version}
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%description -n python-%{name}
|
2010-12-23 22:44:12 +01:00
|
|
|
Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
|
2010-12-23 11:08:49 +01:00
|
|
|
###########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Devel files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-%{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
|
|
|
|
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
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%prep
|
2012-04-04 06:13:22 +02:00
|
|
|
%setup -q -n VirtualBox-%{version}
|
2010-12-23 11:08:49 +01:00
|
|
|
%patch1
|
2011-04-13 18:03:05 +02:00
|
|
|
%patch2
|
2012-03-24 18:13:42 +01:00
|
|
|
%patch3 -p1
|
2011-01-01 16:49:43 +01:00
|
|
|
%patch6 -p1
|
2011-02-08 08:32:31 +01:00
|
|
|
%patch8 -p1
|
2013-04-03 09:17:07 +02:00
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2010-12-23 11:08:49 +01:00
|
|
|
%patch99 -p1
|
2015-01-28 13:40:06 +01:00
|
|
|
%patch100
|
2014-03-04 12:09:44 +01:00
|
|
|
%patch101 -p1
|
2012-03-08 16:14:52 +01:00
|
|
|
%patch103
|
2012-03-18 09:57:09 +01:00
|
|
|
%patch104 -p1
|
2010-12-23 11:08:49 +01:00
|
|
|
#copy user manual
|
2015-01-28 13:40:06 +01:00
|
|
|
cp %{SOURCE1} UserManual.pdf
|
2012-04-21 23:05:19 +02:00
|
|
|
#copy kbuild config
|
2015-01-28 13:40:06 +01:00
|
|
|
cp %{SOURCE10} LocalConfig.kmk
|
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,
|
2012-04-29 20:59:19 +02:00
|
|
|
#but we have to create wrapper which will handle --append and --outpout options which are not provided by /usr/bin/sed
|
|
|
|
cat >> kmk_sed <<EOF
|
|
|
|
#!/bin/bash
|
|
|
|
while [ "\$#" != "0" ]; do
|
|
|
|
pass=\${pass}" \$1"
|
|
|
|
[ "\$1" == "-e" ] && shift && pass=\${pass}" '\$1'"
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
eval "sed \$(echo "\$pass" | sed -e "s/--output=/>/g;s/--append=/>/g;s/--output/>/g;s/--append/>>/g");"
|
|
|
|
EOF
|
|
|
|
chmod +x ./kmk_sed
|
|
|
|
echo "SED = $RPM_BUILD_DIR/VirtualBox-%{version}/kmk_sed" >> LocalConfig.kmk
|
|
|
|
####workaround kmk_sed --^
|
|
|
|
##########################
|
|
|
|
#
|
2015-01-28 13:40:06 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%build
|
2011-04-26 21:46:22 +02:00
|
|
|
#ensure we dont ever use them
|
|
|
|
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
|
|
|
|
# --nofatal try to avoid build fail caused by missing makeself package
|
2015-03-05 09:26:24 +01:00
|
|
|
# NOT an autoconf configure macro
|
2010-12-23 11:08:49 +01:00
|
|
|
./configure \
|
2012-04-21 23:05:19 +02:00
|
|
|
--enable-vnc \
|
|
|
|
--enable-vde \
|
2010-12-23 11:08:49 +01:00
|
|
|
--disable-kmods \
|
|
|
|
--disable-java \
|
|
|
|
--disable-docs \
|
2012-03-14 21:47:21 +01:00
|
|
|
--nofatal \
|
|
|
|
--enable-webservice
|
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 "build basic parts"
|
2015-01-28 13:40:06 +01:00
|
|
|
%{_bindir}/kmk %{?_smp_mflags} VBOX_JAVA_HOME=%{_sysconfdir}/alternatives/java_sdk_openjdk/ VBOX_GCC_WERR= KBUILD_VERBOSE=2 VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= TOOL_YASM_AS=yasm VBOX_PATH_PACKAGE_DOCS=%{_docdir}/virtualbox all
|
2010-12-23 11:08:49 +01:00
|
|
|
#
|
|
|
|
# build kernel modules for guest and host (check novel-kmp package as example)
|
|
|
|
# host modules : vboxdrv,vboxnetflt,vboxnetadp
|
|
|
|
# guest modules : vboxguest,vboxsf,vboxvideo
|
2011-07-21 12:51:05 +02:00
|
|
|
echo "build kernel modules"
|
|
|
|
for vbox_module in out/linux.*/release/bin/src/vbox{drv,netflt,netadp,pci} \
|
2010-12-23 11:08:49 +01:00
|
|
|
out/linux.*/release/bin/additions/src/vbox{guest,sf,video}; do
|
|
|
|
#get the module name from path
|
|
|
|
module_name=$(basename "$vbox_module")
|
|
|
|
|
|
|
|
# go through the all flavors (desktop,default ...)
|
2015-01-28 13:40:06 +01:00
|
|
|
for flavor in %{flavors_to_build}; do
|
2010-12-23 11:08:49 +01:00
|
|
|
# delete old build dir for sure
|
2015-01-28 13:40:06 +01:00
|
|
|
rm -rf modules_build_dir/${module_name}_${flavor}
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
# create build directory for specific flavor
|
2015-01-28 13:40:06 +01:00
|
|
|
mkdir -p modules_build_dir/$flavor
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
# copy sources which will be used to build vbox module in last step
|
2015-01-28 13:40:06 +01:00
|
|
|
cp -r $vbox_module/ modules_build_dir/$flavor/
|
2010-12-23 11:08:49 +01:00
|
|
|
|
2011-01-12 14:33:13 +01:00
|
|
|
# copy vboxdrv (for host) module symbols which are used by vboxnetflt and vboxnetadp km's:
|
2010-12-23 11:08:49 +01:00
|
|
|
if [ "$module_name" = "vboxnetflt" -o \
|
2011-07-21 12:51:05 +02:00
|
|
|
"$module_name" = "vboxnetadp" -o \
|
|
|
|
"$module_name" = "vboxpci" ] ; then
|
2015-01-28 13:40:06 +01:00
|
|
|
cp $PWD/modules_build_dir/$flavor/vboxdrv/Module.symvers \
|
2010-12-23 11:08:49 +01:00
|
|
|
$PWD/modules_build_dir/$flavor/$module_name
|
|
|
|
fi
|
2011-01-12 14:33:13 +01:00
|
|
|
# copy vboxguest (for guest) module symbols which are used by vboxsf km:
|
|
|
|
if [ "$module_name" = "vboxsf" ]; then
|
2015-01-28 13:40:06 +01:00
|
|
|
cp $PWD/modules_build_dir/$flavor/vboxguest/Module.symvers \
|
2010-12-23 11:08:49 +01:00
|
|
|
$PWD/modules_build_dir/$flavor/$module_name
|
|
|
|
fi
|
|
|
|
# build the module for the specific flavor
|
2015-03-05 09:26:24 +01:00
|
|
|
make %{?_smp_mflags} -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules \
|
2010-12-23 11:08:49 +01:00
|
|
|
M=$PWD/modules_build_dir/$flavor/$module_name
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
#################################
|
|
|
|
echo "create directory structure"
|
|
|
|
#################################
|
2015-01-28 13:40:06 +01:00
|
|
|
install -d -m 755 %{buildroot}/sbin
|
|
|
|
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
|
2011-02-08 08:32:31 +01:00
|
|
|
#%__install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/glue
|
2015-01-28 13:40:06 +01:00
|
|
|
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
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/init.d
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/vbox
|
|
|
|
install -d -m 755 %{buildroot}%{_udevrulesdir}
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
####################################################################################
|
|
|
|
echo "entering virtualbox-kmp-guest and virtualbox-kmp-host install section"
|
|
|
|
####################################################################################
|
2015-01-28 13:40:06 +01:00
|
|
|
export INSTALL_MOD_PATH=%{buildroot}
|
2010-12-23 11:08:49 +01:00
|
|
|
export INSTALL_MOD_DIR=updates
|
|
|
|
#to install modules we use here similar steps like in build phase, go trought the all modules :
|
2011-07-21 12:51:05 +02:00
|
|
|
for module_name in vbox{drv,netflt,pci,netadp,guest,sf,video}
|
2010-12-23 11:08:49 +01:00
|
|
|
do
|
|
|
|
#and trought the all flavors
|
2015-01-28 13:40:06 +01:00
|
|
|
for flavor in %{flavors_to_build}; do
|
|
|
|
#to install modules use Makefile from %{_prefix}/src/linux-obj/%_target_cpu/$flavor and builds from $PWD/modules_build_dir/$flavor/$module_name
|
2015-03-05 09:26:24 +01:00
|
|
|
make %{?_smp_mflags} -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules_install M=$PWD/modules_build_dir/$flavor/$module_name
|
2010-12-23 11:08:49 +01:00
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
###########################################
|
|
|
|
echo "entering guest-tools install section"
|
|
|
|
###########################################
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 755 out/linux.*/release/bin/additions/VBoxControl \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_bindir}/VBoxControl
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 755 out/linux.*/release/bin/additions/VBoxService \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_bindir}/VBoxService
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 755 out/linux.*/release/bin/additions/mount.vboxsf \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}/sbin/mount.vboxsf
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 744 src/VBox/Additions/linux/installer/vboxadd.sh \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/init.d/vboxadd
|
2015-01-28 13:40:06 +01:00
|
|
|
ln -s %{_sysconfdir}/init.d/vboxadd \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_sbindir}/rcvboxadd
|
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
|
2010-12-23 11:08:49 +01:00
|
|
|
#
|
|
|
|
##############################################################
|
|
|
|
echo "entering guest-x11 install section"
|
|
|
|
##############################################################
|
|
|
|
pushd out/linux.*/release/bin/additions/
|
|
|
|
#VBoxClient daemon (support for clipboard,autoresize,seamless windows)
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 755 VBoxClient %{buildroot}%{_bindir}
|
2010-12-23 11:08:49 +01:00
|
|
|
# xorg drivers for mouse and videos check suse version to add propper driver
|
2011-10-10 11:26:15 +02:00
|
|
|
# check the patch https://www.virtualbox.org/changeset/38784, regarding the
|
|
|
|
# dropped xorg mouse driver in >= 1130
|
2012-06-02 08:04:34 +02:00
|
|
|
|
2015-03-02 10:32:46 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
install -m 755 vboxvideo_drv_117.so \
|
|
|
|
%{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
|
|
|
|
%else
|
2015-01-28 13:40:06 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
install -m 755 vboxvideo_drv_116.so \
|
2014-01-17 13:20:08 +01:00
|
|
|
%{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
|
2015-01-28 13:40:06 +01:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} == 1310
|
|
|
|
install -m 755 vboxvideo_drv_114.so \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
|
2015-01-28 13:40:06 +01:00
|
|
|
%endif
|
2015-03-02 10:32:46 +01:00
|
|
|
%endif
|
2010-12-23 11:08:49 +01:00
|
|
|
popd
|
|
|
|
# VBoxOGL* libs for guest-x11 subpackage
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 644 out/linux.*/release/bin/additions/VBoxOGL*.so \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_libdir}
|
2010-12-23 11:08:49 +01:00
|
|
|
# make link for dri lib
|
2015-01-28 13:40:06 +01:00
|
|
|
ln -s %{_libdir}/VBoxOGL.so %{buildroot}%{_libdir}/dri/vboxvideo_dri.so
|
2010-12-23 11:08:49 +01:00
|
|
|
# install init script which start VBoxClient daemon (support for clipboard,autoresize,seamless windows)
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 755 src/VBox/Additions/x11/Installer/98vboxadd-xclient \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/vboxadd-xclient.sh
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
##############################################
|
|
|
|
echo "entering virtualbox(-qt) install section"
|
|
|
|
##############################################
|
|
|
|
# copy the main files to %{_vbox_instdir}
|
|
|
|
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}
|
|
|
|
install -m 755 VBoxSDL %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxTunctl %{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
|
|
|
|
ln -s %{_vbox_instdir}/VBoxHeadless \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_bindir}/VBoxHeadless
|
2015-01-28 13:40:06 +01:00
|
|
|
ln -s %{_vbox_instdir}/VBoxSDL %{buildroot}%{_bindir}/VBoxSDL
|
|
|
|
ln -s %{_vbox_instdir}/VBoxTunctl %{buildroot}%{_bindir}/VBoxTunctl
|
|
|
|
install -m 755 VBoxSVC %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxXPCOMIPCD %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxExtPackHelperApp %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxTestOGL %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxPermissionMessage \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{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}
|
|
|
|
install -m 755 VirtualBox %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxEFI*.fd %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxSysInfo.sh %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 644 *.so %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 644 V*.gc %{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/
|
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-01-28 13:40:06 +01:00
|
|
|
install -m 644 out/linux.*/release/bin/virtualbox.desktop \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop 'System Emulator'
|
2011-02-08 08:32:31 +01:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
# create a menu entry
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 644 out/linux.*/release/bin/VBox.png \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_datadir}/pixmaps/virtualbox.png
|
2010-12-23 11:08:49 +01:00
|
|
|
# install udev rule for host (virtualbox)
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/60-vboxdrv.rules
|
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
|
2011-02-08 08:32:31 +01:00
|
|
|
|
2011-01-05 23:13:56 +01:00
|
|
|
# modify and install the vboxdrv init script
|
2011-04-13 18:03:05 +02:00
|
|
|
# TODO: some of this stuff breaks the fillup macros below?
|
2015-01-28 13:40:06 +01:00
|
|
|
sed -i "s|%{NOLSB}%|yes|g;s|%{DEBIAN}%||g;s|%{PACKAGE}%|virtualbox|g" \
|
2014-01-19 21:21:58 +01:00
|
|
|
src/VBox/Installer/linux/vboxdrv.sh.in
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 744 src/VBox/Installer/linux/vboxdrv.sh.in \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/init.d/vboxdrv
|
2015-01-28 13:40:06 +01:00
|
|
|
ln -s %{_sysconfdir}/init.d/vboxdrv \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_sbindir}/rcvboxdrv
|
2010-12-23 11:08:49 +01:00
|
|
|
# Init script to start virtual boxes during boot
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 755 %{SOURCE12} %{buildroot}%{_sysconfdir}/init.d/vboxes
|
|
|
|
ln -s %{_sysconfdir}/init.d/vboxes \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_sbindir}/rcvboxes
|
2012-03-24 18:13:42 +01:00
|
|
|
# sysconfig file intended for vboxes script
|
2015-01-28 13:40:06 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_var}/adm/fillup-templates
|
|
|
|
install -m 640 %{SOURCE13} %{buildroot}%{_var}/adm/fillup-templates/sysconfig.vbox
|
2012-03-24 18:13:42 +01:00
|
|
|
|
|
|
|
# config file for vboxdrv script and vboxweb
|
2015-01-28 13:40:06 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/vbox
|
2012-03-24 18:13:42 +01:00
|
|
|
echo -e "#settings for vboxwebsrn\nVBOXWEB_USER=root" > \
|
2013-04-03 09:17:07 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/vbox/vbox.cfg
|
|
|
|
# install udev helper script for creating usb devices
|
|
|
|
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh \
|
2015-01-28 13:40:06 +01:00
|
|
|
%{buildroot}%{_udevrulesdir}/../VBoxCreateUSBNode.sh
|
2010-12-23 11:08:49 +01:00
|
|
|
######################################################
|
2011-02-08 08:32:31 +01:00
|
|
|
echo "entrering python-virtualbox install section"
|
2010-12-23 11:08:49 +01:00
|
|
|
######################################################
|
2011-02-08 08:32:31 +01:00
|
|
|
pushd out/linux.*/release/bin/sdk/installer
|
|
|
|
VBOX_INSTALL_PATH=%{_vbox_instdir} python vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=%{_tmppath}/SITE_FILES
|
|
|
|
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
|
2011-02-08 08:32:31 +01:00
|
|
|
%py_compile %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom/python
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
echo "entering virtualbox-devel install section"
|
|
|
|
######################################################
|
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 cbinding %{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 "entering virtualbox-websrv install section"
|
|
|
|
######################################################
|
|
|
|
pushd out/linux.*/release/bin
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
2012-03-14 21:47:21 +01:00
|
|
|
popd
|
|
|
|
|
2015-01-28 13:40:06 +01:00
|
|
|
sed -i "s|%{NOLSB}%|yes|g;s|%{DEBIAN}%||g;s|%{PACKAGE}%|virtualbox|g" \
|
2014-01-19 21:21:58 +01:00
|
|
|
src/VBox/Installer/linux/vboxweb-service.sh
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 744 src/VBox/Installer/linux/vboxweb-service.sh \
|
2012-03-14 21:47:21 +01:00
|
|
|
%{buildroot}%{_sysconfdir}/init.d/vboxweb-service
|
2015-01-28 13:40:06 +01:00
|
|
|
ln -s %{_sysconfdir}/init.d/vboxweb-service \
|
2012-03-14 21:47:21 +01:00
|
|
|
%{buildroot}%{_sbindir}/rcvboxweb-service
|
|
|
|
#
|
2010-12-23 11:08:49 +01:00
|
|
|
######################################################
|
2014-01-13 04:23:05 +01:00
|
|
|
echo "entering virtualbox-guest-desktop-icons install section"
|
|
|
|
######################################################
|
2015-01-28 13:40:06 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/pixmaps/virtalbox
|
2014-01-13 04:23:05 +01:00
|
|
|
|
|
|
|
pushd src/VBox/Frontends/VirtualBox/images
|
|
|
|
for icon in os_*.png; do
|
2015-01-28 13:40:06 +01:00
|
|
|
install -m 644 "$icon" %{buildroot}%{_datadir}/pixmaps/virtalbox/"$icon";
|
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
|
|
|
|
%fdupes %{buildroot}/%{_datadir}/pixmaps/virtalbox
|
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
|
|
|
|
echo "creating group vboxusers..."
|
|
|
|
groupadd -r vboxusers 2>/dev/null || :
|
|
|
|
|
2012-03-14 21:47:21 +01:00
|
|
|
#######################################################
|
|
|
|
# scriptlets - post
|
|
|
|
#######################################################
|
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2012-03-24 18:13:42 +01:00
|
|
|
#skip the fill up part and enable vboxdrv by default
|
2010-12-23 11:08:49 +01:00
|
|
|
%fillup_and_insserv -f -y vboxdrv
|
2012-03-24 18:13:42 +01:00
|
|
|
#setup our sysconfig file /etc/sysconfig/vbox
|
|
|
|
%fillup_only -an vbox
|
2015-01-28 13:40:06 +01:00
|
|
|
%set_permissions %{_vbox_instdir}/VBoxNetDHCP
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxNetAdpCtl
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxHeadless
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxSDL
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%post qt
|
2015-01-28 13:40:06 +01:00
|
|
|
%set_permissions %{_vbox_instdir}/VirtualBox
|
2011-03-17 14:20:12 +01:00
|
|
|
|
|
|
|
%verifyscript
|
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-10-10 11:26:15 +02:00
|
|
|
%verify_permissions -e %{_vbox_instdir}/VBoxSDL
|
2011-03-17 14:20:12 +01:00
|
|
|
|
|
|
|
%verifyscript qt
|
|
|
|
%verify_permissions -e %{_vbox_instdir}/VirtualBox
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%post guest-tools
|
|
|
|
%fillup_and_insserv -f -y vboxadd
|
|
|
|
|
2012-03-14 21:47:21 +01:00
|
|
|
%post websrv
|
|
|
|
%fillup_and_insserv -f -y vboxweb-service
|
|
|
|
#######################################################
|
|
|
|
# scriptlets preun
|
|
|
|
#######################################################
|
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%preun
|
|
|
|
%stop_on_removal vboxdrv
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun guest-tools
|
2011-04-13 18:03:05 +02:00
|
|
|
%stop_on_removal vboxadd
|
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
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
# scriptlets postun
|
|
|
|
#######################################################
|
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%restart_on_update vboxdrv
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
|
|
%postun guest-tools
|
|
|
|
%restart_on_update vboxadd
|
|
|
|
%insserv_cleanup
|
2011-02-08 08:32:31 +01:00
|
|
|
|
2012-03-14 21:47:21 +01:00
|
|
|
%postun websrv
|
|
|
|
%restart_on_update vboxweb-service
|
|
|
|
%insserv_cleanup
|
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
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc UserManual.pdf
|
|
|
|
%{_bindir}/VBoxManage
|
2011-04-13 18:03:05 +02:00
|
|
|
%{_bindir}/VBoxHeadless
|
2010-12-23 11:08:49 +01:00
|
|
|
%{_bindir}/VBoxSDL
|
|
|
|
%{_bindir}/VBoxTunctl
|
|
|
|
%dir %{_vbox_instdir}
|
|
|
|
%{_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}/VBoxKeyboard.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}/VBoxOGLhostcrutil.so
|
|
|
|
%{_vbox_instdir}/VBoxOGLhosterrorspu.so
|
|
|
|
%{_vbox_instdir}/VBoxOGLrenderspu.so
|
|
|
|
%{_vbox_instdir}/VBoxREM*.so
|
|
|
|
%{_vbox_instdir}/VBoxRT.so
|
|
|
|
%{_vbox_instdir}/VBoxSDL.so
|
|
|
|
%{_vbox_instdir}/VBoxSharedClipboard.so
|
|
|
|
%{_vbox_instdir}/VBoxSharedCrOpenGL.so
|
|
|
|
%{_vbox_instdir}/VBoxSharedFolders.so
|
|
|
|
%{_vbox_instdir}/VBoxVMM.so
|
|
|
|
%{_vbox_instdir}/VBoxXPCOMC.so
|
|
|
|
%{_vbox_instdir}/VBoxXPCOM.so
|
|
|
|
%{_vbox_instdir}/VBox*.gc
|
|
|
|
%{_vbox_instdir}/VBox*.r0
|
|
|
|
%{_vbox_instdir}/VMMGC.gc
|
|
|
|
%{_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
|
2010-12-23 11:08:49 +01:00
|
|
|
%{_vbox_instdir}/DBGCPlugInDiggers.so
|
|
|
|
%{_vbox_instdir}/VBoxAuth.so
|
|
|
|
%{_vbox_instdir}/VBoxAuthSimple.so
|
|
|
|
%{_vbox_instdir}/VBoxDbg.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
|
|
|
|
%{_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
|
2013-04-26 12:03:16 +02:00
|
|
|
%{_udevrulesdir}/60-vboxdrv.rules
|
2010-12-23 11:08:49 +01:00
|
|
|
%config %{_sysconfdir}/init.d/vboxdrv
|
2012-03-24 18:13:42 +01:00
|
|
|
%dir %{_sysconfdir}/vbox
|
|
|
|
%config %{_sysconfdir}/vbox/vbox.cfg
|
2010-12-23 11:08:49 +01:00
|
|
|
%{_sysconfdir}/init.d/vboxes
|
|
|
|
%{_var}/adm/fillup-templates/sysconfig.vbox
|
|
|
|
%{_sbindir}/rcvboxes
|
2011-01-05 23:13:56 +01:00
|
|
|
%{_sbindir}/rcvboxdrv
|
2013-04-26 12:03:16 +02:00
|
|
|
%{_udevrulesdir}/../VBoxCreateUSBNode.sh
|
2015-01-28 13:40:06 +01:00
|
|
|
%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxNetDHCP
|
2011-10-10 11:26:15 +02:00
|
|
|
%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxNetAdpCtl
|
|
|
|
%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxHeadless
|
|
|
|
%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxSDL
|
2011-09-19 20:07:13 +02:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%files qt
|
|
|
|
%defattr(-, root, root)
|
2011-10-10 11:26:15 +02:00
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxPermissionMessage
|
2014-05-06 15:08:10 +02:00
|
|
|
%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VirtualBox
|
2010-12-23 11:08:49 +01:00
|
|
|
#wrapper script is in bindir
|
|
|
|
%attr(0755,root,root) %{_bindir}/VirtualBox
|
|
|
|
#ldd shows libQt* dependency
|
|
|
|
%{_vbox_instdir}/VBoxTestOGL
|
|
|
|
#qm's translations
|
|
|
|
%{_datadir}/virtualbox/nls
|
|
|
|
%{_vbox_instdir}/VirtualBox.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
|
2011-09-19 20:07:13 +02:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%files guest-x11
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_libdir}/xorg/modules/drivers
|
|
|
|
%dir %{_libdir}/xorg/modules/input
|
|
|
|
%dir %{_libdir}/dri/
|
|
|
|
%{_bindir}/VBoxClient
|
|
|
|
%{_libdir}/VBoxOGL*.so
|
|
|
|
%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
|
|
|
|
%{_libdir}/dri/vboxvideo_dri.so
|
|
|
|
%{_sysconfdir}/X11/xinit/xinitrc.d/vboxadd-xclient.sh
|
2011-09-19 20:07:13 +02:00
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%files guest-tools
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_bindir}/VBoxControl
|
|
|
|
%{_bindir}/VBoxService
|
|
|
|
/sbin/mount.vboxsf
|
2013-04-26 12:03:16 +02:00
|
|
|
%{_udevrulesdir}/60-vboxguest.rules
|
2010-12-23 11:08:49 +01:00
|
|
|
%config %{_sysconfdir}/init.d/vboxadd
|
2011-01-05 23:13:56 +01:00
|
|
|
%{_sbindir}/rcvboxadd
|
2011-09-19 20:07:13 +02:00
|
|
|
|
2011-02-08 08:32:31 +01:00
|
|
|
%files -n python-%{name} -f %{_tmppath}/SITE_FILES
|
|
|
|
%defattr(-, root, root)
|
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
|
2015-01-28 13:40:06 +01:00
|
|
|
%attr(0755, root, root) %{_vbox_instdir}/VBoxPython2_7.so
|
2010-12-23 11:08:49 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root, root)
|
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/cbinding
|
|
|
|
%{_vbox_instdir}/sdk/bindings/xpcom/idl
|
|
|
|
%{_vbox_instdir}/sdk/bindings/xpcom/include
|
|
|
|
%{_vbox_instdir}/sdk/bindings/xpcom/samples
|
|
|
|
%{_vbox_instdir}/sdk/bindings/auth
|
|
|
|
|
2012-03-14 21:47:21 +01:00
|
|
|
%files websrv
|
|
|
|
%defattr(-,root, root)
|
2015-01-28 13:40:06 +01:00
|
|
|
%{_vbox_instdir}/vboxwebsrv
|
2012-03-14 21:47:21 +01:00
|
|
|
%{_vbox_instdir}/webtest
|
|
|
|
%{_sysconfdir}/init.d/vboxweb-service
|
|
|
|
%{_sbindir}/rcvboxweb-service
|
|
|
|
|
2014-01-13 04:23:05 +01:00
|
|
|
%files guest-desktop-icons
|
|
|
|
%defattr(-,root, root)
|
|
|
|
%dir %{_datadir}/pixmaps/virtalbox
|
|
|
|
%{_datadir}/pixmaps/virtalbox/*.png
|
|
|
|
|
2010-12-23 11:08:49 +01:00
|
|
|
%changelog
|