[info=e2fe2bf734c63aa2e0f2945388394b6c1ff6b71655ebaf989c89a6d63364c7bc]
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=762
This commit is contained in:
parent
28627050ed
commit
1fa759675d
@ -1,4 +1,4 @@
|
||||
mtime: 1739883416
|
||||
commit: 1028bd49211f254a8619e0fc02d0508093c139dad19c1496c3110a3d02101c3d
|
||||
mtime: 1739960546
|
||||
commit: e2fe2bf734c63aa2e0f2945388394b6c1ff6b71655ebaf989c89a6d63364c7bc
|
||||
url: https://src.opensuse.org/jengelh/virtualbox
|
||||
revision: master
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:093ffbda6c5b8b717c848bcb565d208ceb4a9d2008de0fbc79c9bffc77034bb1
|
||||
oid sha256:4be640dbbf937ae5f23f91cd5ba406e422509faa19d52eae6727e2533ee7c915
|
||||
size 256
|
||||
|
26
newer-pythons.patch
Normal file
26
newer-pythons.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From: Jan Engelhardt <ej@inai.de>
|
||||
Date: 2025-02-19 11:09:20.509506861 +0100
|
||||
|
||||
Like most other software projects, use a ">="-style test for versions,
|
||||
as the chance for compatibility is high.
|
||||
|
||||
---
|
||||
configure | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: VirtualBox-7.1.4/configure
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.4.orig/configure
|
||||
+++ VirtualBox-7.1.4/configure
|
||||
@@ -2187,7 +2187,10 @@ 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.9 python3.10 python3.11 python3.12"
|
||||
+ SUPPYTHONLIBS=""
|
||||
+ for i in /usr/bin/python[23]*; do
|
||||
+ SUPPYTHONLIBS="$SUPPYTHONLIBS ${i##*/}"
|
||||
+ done
|
||||
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
|
@ -1,8 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 12 10:00:50 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
Wed Feb 19 10:11:07 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Build python bindings for python311, do not use python3 since
|
||||
virtualbox doesn't support python3.13 yet.
|
||||
- Add newer-pythons.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 21 11:17:17 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
@ -53,11 +53,6 @@
|
||||
%define _vbox_instdir %{_prefix}/lib/virtualbox
|
||||
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
|
||||
%endif
|
||||
|
||||
%global mypython python311
|
||||
%global __mypython %{expand:%%__%{mypython}}
|
||||
%global mypython_sitelib %{expand:%%%{mypython}_sitelib}
|
||||
|
||||
# ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!!
|
||||
Name: virtualbox%{?dash}%{?name_suffix}
|
||||
Version: 7.1.4
|
||||
@ -123,6 +118,7 @@ Patch10: fix_for_leap15.5.patch
|
||||
Patch11: cxx17.patch
|
||||
Patch12: host-source.patch
|
||||
Patch13: kernel-6-13.patch
|
||||
Patch14: newer-pythons.patch
|
||||
#
|
||||
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
||||
BuildRequires: %{kernel_module_package_buildreqs}
|
||||
@ -179,9 +175,7 @@ BuildRequires: lzfse
|
||||
BuildRequires: lzfse-devel
|
||||
BuildRequires: pulseaudio-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{mypython}-devel
|
||||
BuildRequires: %{mypython}-setuptools
|
||||
BuildRequires: %{mypython}-pip
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: qt6-tools-linguist
|
||||
BuildRequires: rpm
|
||||
BuildRequires: sed
|
||||
@ -334,28 +328,28 @@ Requires(pre): net-tools-deprecated
|
||||
%description guest-tools
|
||||
VirtualBox guest addition tools.
|
||||
|
||||
%package -n %{mypython}-%{name}
|
||||
%package -n python3-%{name}
|
||||
Summary: Python bindings for %{name}
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
#rename from "ose" version:
|
||||
Provides: %{mypython}-%{name} = %{version}-%{release}
|
||||
Provides: python3-%{name} = %{version}-%{release}
|
||||
Obsoletes: python-%{name} < %{version}-%{release}
|
||||
Obsoletes: python2-%{name} < %{version}-%{release}
|
||||
Obsoletes: python3-%{name} < %{version}-%{release}
|
||||
Provides: %{mypython}-%{name}-ose = %{version}
|
||||
Provides: python3-%{name}-ose = %{version}
|
||||
Obsoletes: python-%{name}-ose < %{version}
|
||||
Obsoletes: python2-%{name}-ose < %{version}
|
||||
Obsoletes: python3-%{name}-ose < %{version}
|
||||
|
||||
%description -n %{mypython}-%{name}
|
||||
%description -n python3-%{name}
|
||||
Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
|
||||
|
||||
%package devel
|
||||
Summary: Devel files for %{name}
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{mypython}-%{name} = %{version}
|
||||
Requires: python3-%{name} = %{version}
|
||||
#rename from "ose" version:
|
||||
Provides: %{name}-ose-devel = %{version}
|
||||
Obsoletes: %{name}-ose-devel < %{version}
|
||||
@ -654,7 +648,7 @@ EOF
|
||||
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_vbox_instdir}/VBoxCreateUSBNode.sh
|
||||
echo "entering python-virtualbox install section"
|
||||
pushd out/linux.*/release/bin/sdk/installer/python
|
||||
VBOX_INSTALL_PATH=%{_vbox_instdir} %{__mypython} vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
popd
|
||||
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
|
||||
@ -917,14 +911,14 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%dir /media
|
||||
%endif
|
||||
|
||||
%files -n %{mypython}-%{name}
|
||||
%files -n python3-%{name}
|
||||
%dir %{_vbox_instdir}/sdk
|
||||
%dir %{_vbox_instdir}/sdk/bindings
|
||||
%dir %{_vbox_instdir}/sdk/bindings/xpcom
|
||||
%{_vbox_instdir}/sdk/bindings/xpcom/python
|
||||
%{_vbox_instdir}/VBoxPython*.so
|
||||
%{mypython_sitelib}/vboxapi-*.egg-info
|
||||
%{mypython_sitelib}/vboxapi/
|
||||
%{python3_sitelib}/vboxapi-1.0-*.egg-info
|
||||
%{python3_sitelib}/vboxapi/
|
||||
|
||||
%files devel
|
||||
%dir %{_vbox_instdir}/sdk
|
||||
|
Loading…
x
Reference in New Issue
Block a user