Accepting request 1085155 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1085155 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtualbox?expand=0&rev=256
This commit is contained in:
commit
ce6d41cbb5
26
python311.patch
Normal file
26
python311.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/configure b/configure
|
||||||
|
index 0872ec4c..037680e0 100755
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -2132,7 +2132,7 @@ extern "C" int main(void)
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
found=
|
||||||
|
- SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.8m python3.9 python3.9m python3.10 python3.10m"
|
||||||
|
+ SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.8m python3.9 python3.9m python3.10 python3.10m python3.11 python3.11m"
|
||||||
|
for p in $PYTHONDIR; do
|
||||||
|
for d in $SUPPYTHONLIBS; do
|
||||||
|
for b in lib/x86_64-linux-gnu lib/i386-linux-gnu lib64 lib/64 lib; do
|
||||||
|
diff --git a/src/VBox/Installer/linux/routines.sh b/src/VBox/Installer/linux/routines.sh
|
||||||
|
index 08e06358..44eba726 100644
|
||||||
|
--- a/src/VBox/Installer/linux/routines.sh
|
||||||
|
+++ b/src/VBox/Installer/linux/routines.sh
|
||||||
|
@@ -446,7 +446,7 @@ maybe_run_python_bindings_installer() {
|
||||||
|
# the VirtualBox API bindings. Needs to prevent double installs which waste
|
||||||
|
# quite a bit of time.
|
||||||
|
PYTHONS=""
|
||||||
|
- for p in python2.6 python2.7 python2 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 python3.10 python3 python; do
|
||||||
|
+ for p in python2.6 python2.7 python2 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 python3.10 python3.11 python3 python; do
|
||||||
|
if [ "`$p -c 'import sys
|
||||||
|
if sys.version_info >= (2, 6) and (sys.version_info < (3, 0) or sys.version_info >= (3, 3)):
|
||||||
|
print(\"test\")' 2> /dev/null`" != "test" ]; then
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 4 16:46:55 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add python311.patch to make it detect Python 3.11 as well
|
||||||
|
- spec file cleanups
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 4 15:24:39 UTC 2023 - Larry Rainey <llrainey15@gmail.com>
|
Thu May 4 15:24:39 UTC 2023 - Larry Rainey <llrainey15@gmail.com>
|
||||||
|
|
||||||
|
110
virtualbox.spec
110
virtualbox.spec
@ -23,7 +23,6 @@
|
|||||||
%define name_suffix kmp
|
%define name_suffix kmp
|
||||||
%define dash -
|
%define dash -
|
||||||
%define package_summary Kernel modules for VirtualBox
|
%define package_summary Kernel modules for VirtualBox
|
||||||
%define package_group System/Kernel
|
|
||||||
%if %{undefined kernel_module_directory}
|
%if %{undefined kernel_module_directory}
|
||||||
%define kernel_module_directory /lib/modules
|
%define kernel_module_directory /lib/modules
|
||||||
%endif
|
%endif
|
||||||
@ -32,7 +31,6 @@
|
|||||||
%define main_package 1
|
%define main_package 1
|
||||||
%define kmp_package 0
|
%define kmp_package 0
|
||||||
%define package_summary VirtualBox is an Emulator
|
%define package_summary VirtualBox is an Emulator
|
||||||
%define package_group System/Emulators/PC
|
|
||||||
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
|
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
|
||||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
@ -54,11 +52,12 @@ Name: virtualbox%{?dash}%{?name_suffix}
|
|||||||
Version: 7.0.8
|
Version: 7.0.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: %{package_summary}
|
Summary: %{package_summary}
|
||||||
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
|
||||||
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
%if %{kmp_package}
|
||||||
Group: %{package_group}
|
Group: System/Kernel
|
||||||
|
%else
|
||||||
|
Group: System/Emulators/PC
|
||||||
|
%endif
|
||||||
URL: https://www.virtualbox.org/
|
URL: https://www.virtualbox.org/
|
||||||
#
|
#
|
||||||
# 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
|
# 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
|
||||||
@ -161,6 +160,8 @@ Patch35: fixes_for_leap15.5.patch
|
|||||||
Patch36: fixes_for_gcc13.patch
|
Patch36: fixes_for_gcc13.patch
|
||||||
# Fix locking problem in 7.0.6
|
# Fix locking problem in 7.0.6
|
||||||
Patch37: fix_7.0.6_locking_problems.patch
|
Patch37: fix_7.0.6_locking_problems.patch
|
||||||
|
# Support python 3.11
|
||||||
|
Patch38: python311.patch
|
||||||
#
|
#
|
||||||
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
||||||
BuildRequires: %{kernel_module_package_buildreqs}
|
BuildRequires: %{kernel_module_package_buildreqs}
|
||||||
@ -293,18 +294,6 @@ and others, and limited virtualization of macOS guests on Apple
|
|||||||
hardware. VirtualBox is freely available as Open Source Software under
|
hardware. VirtualBox is freely available as Open Source Software under
|
||||||
the terms of the GNU Public License (GPL).
|
the terms of the GNU Public License (GPL).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-#########################################
|
|
||||||
%package qt
|
%package qt
|
||||||
Summary: Qt GUI part for %{name}
|
Summary: Qt GUI part for %{name}
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -321,18 +310,6 @@ Obsoletes: %{name}-ose-qt < %{version}
|
|||||||
%description qt
|
%description qt
|
||||||
This package contains the code for the GUI used to control VMs.
|
This package contains the code for the GUI used to control VMs.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-########################################
|
|
||||||
%package websrv
|
%package websrv
|
||||||
Summary: WebService GUI part for %{name}
|
Summary: WebService GUI part for %{name}
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -343,18 +320,6 @@ Obsoletes: %{name}-vboxwebsrv < %{version}
|
|||||||
%description websrv
|
%description websrv
|
||||||
The VirtualBox web server is used to control headless VMs using a browser.
|
The VirtualBox web server is used to control headless VMs using a browser.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-##########################################
|
|
||||||
|
|
||||||
%package guest-tools
|
%package guest-tools
|
||||||
Summary: VirtualBox guest tools
|
Summary: VirtualBox guest tools
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -375,18 +340,6 @@ Requires(pre): net-tools-deprecated
|
|||||||
%description guest-tools
|
%description guest-tools
|
||||||
VirtualBox guest addition tools.
|
VirtualBox guest addition tools.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-##########################################
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Python bindings for %{name}
|
Summary: Python bindings for %{name}
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -404,18 +357,6 @@ Obsoletes: python3-%{name}-ose < %{version}
|
|||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
|
Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-##########################################
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Devel files for %{name}
|
Summary: Devel files for %{name}
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
@ -428,18 +369,6 @@ Obsoletes: %{name}-ose-devel < %{version}
|
|||||||
%description devel
|
%description devel
|
||||||
Development file for %{name}
|
Development file for %{name}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-##########################################
|
|
||||||
%package host-source
|
%package host-source
|
||||||
Summary: Source files for %{name} host kernel modules
|
Summary: Source files for %{name} host kernel modules
|
||||||
Group: Development/Sources
|
Group: Development/Sources
|
||||||
@ -469,18 +398,6 @@ Source files for %{name} guest kernel modules
|
|||||||
These can be built for custom kernels using
|
These can be built for custom kernels using
|
||||||
sudo %{_sbindir}/vboxguestconfig
|
sudo %{_sbindir}/vboxguestconfig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-##########################################
|
|
||||||
%package guest-desktop-icons
|
%package guest-desktop-icons
|
||||||
Summary: Icons for guest desktop files
|
Summary: Icons for guest desktop files
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -491,18 +408,6 @@ BuildArch: noarch
|
|||||||
%description guest-desktop-icons
|
%description guest-desktop-icons
|
||||||
This package contains icons for guest desktop files that were created on the desktop.
|
This package contains icons for guest desktop files that were created on the desktop.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-##########################################
|
|
||||||
%package vnc
|
%package vnc
|
||||||
Summary: VNC desktop sharing
|
Summary: VNC desktop sharing
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -570,6 +475,7 @@ This package contains the kernel-modules that VirtualBox uses to create or run v
|
|||||||
%patch36 -p1
|
%patch36 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch37 -p1
|
%patch37 -p1
|
||||||
|
%patch38 -p1
|
||||||
|
|
||||||
### Documents for virtualbox main package ###
|
### Documents for virtualbox main package ###
|
||||||
%if %{main_package}
|
%if %{main_package}
|
||||||
|
Loading…
Reference in New Issue
Block a user