forked from jengelh/virtualbox
- Make necessary updates so that VirtualBox will build with Python 3.7 - boo#1113894
Change kernel module code to build against the API changes in kernel 4.20 - This change adds file "fixes_for_4.20". - Require(pre) virtualbox by the -qt package: otherewise it might happen that virtualbox-qt is installed before virtualbox, which then results in files being assigned to group 'root' instead of 'vboxusers', as the group is only created later. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=448
This commit is contained in:
committed by
Git OBS Bridge
parent
31274b539e
commit
2558a64093
@@ -240,7 +240,7 @@ GNU Public License (GPL).
|
||||
%package qt
|
||||
Summary: Qt GUI part for %{name}
|
||||
Group: System/Emulators/PC
|
||||
Requires: %{name} = %{version}
|
||||
Requires(pre): %{name} = %{version}
|
||||
Requires(pre): permissions
|
||||
Provides: %{name}-gui = %{version}
|
||||
#this is needed during update to trigger installing qt subpackage
|
||||
@@ -706,7 +706,7 @@ install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_
|
||||
echo "entering python-virtualbox install section"
|
||||
######################################################
|
||||
pushd out/linux.*/release/bin/sdk/installer
|
||||
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=%{_tmppath}/SITE_FILES
|
||||
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
|
||||
@@ -975,13 +975,37 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%dir /media
|
||||
%endif
|
||||
|
||||
%files -n python3-%{name} -f %{_tmppath}/SITE_FILES
|
||||
%defattr(-, root, root)
|
||||
%dir %{_vbox_instdir}/sdk
|
||||
%dir %{_vbox_instdir}/sdk/bindings
|
||||
%dir %{_vbox_instdir}/sdk/bindings/xpcom
|
||||
%{_vbox_instdir}/sdk/bindings/xpcom/python
|
||||
#
|
||||
# With Python 3.6 and earlier, vboxapisetup.py would save the names of the files
|
||||
# that it created to a temporary file and use that file to create a list. With
|
||||
# Python 3.7, this file is no longer created, thus the code is switched to handling
|
||||
# those directories and file manually. The python3_version_nodots macro is used to
|
||||
# detect the correct file names.
|
||||
#
|
||||
%if %python3_version_nodots > 36
|
||||
%attr(0755, root, root) %{_vbox_instdir}/VBoxPython3_7m.so
|
||||
%dir /usr/lib/python3.7/site-packages/vboxapi
|
||||
%dir /usr/lib/python3.7/site-packages/vboxapi/__pycache__
|
||||
%attr(0755, root, root) /usr/lib/python3.7/site-packages/vboxapi-1.0-py3.7.egg-info
|
||||
%attr(0755, root, root) /usr/lib/python3.7/site-packages/vboxapi/VirtualBox_constants.py
|
||||
%attr(0755, root, root) /usr/lib/python3.7/site-packages/vboxapi/__init__.py
|
||||
%attr(0755, root, root) /usr/lib/python3.7/site-packages/vboxapi/__pycache__/VirtualBox_constants.cpython-37.pyc
|
||||
%attr(0755, root, root) /usr/lib/python3.7/site-packages/vboxapi/__pycache__/__init__.cpython-37.pyc
|
||||
%else
|
||||
%dir /usr/lib/python3.6/site-packages/vboxapi
|
||||
%dir /usr/lib/python3.6/site-packages/vboxapi/__pycache__
|
||||
%attr(0755, root, root) %{_vbox_instdir}/VBoxPython3_6m.so
|
||||
%attr(0755, root, root) /usr/lib/python3.6/site-packages/vboxapi-1.0-py3.6.egg-info
|
||||
%attr(0755, root, root) /usr/lib/python3.6/site-packages/vboxapi/VirtualBox_constants.py
|
||||
%attr(0755, root, root) /usr/lib/python3.6/site-packages/vboxapi/__init__.py
|
||||
%attr(0755, root, root) /usr/lib/python3.6/site-packages/vboxapi/__pycache__/VirtualBox_constants.cpython-36.pyc
|
||||
%attr(0755, root, root) /usr/lib/python3.6/site-packages/vboxapi/__pycache__/__init__.cpython-36.pyc
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%defattr(-,root, root)
|
||||
|
Reference in New Issue
Block a user