VirtualBox

Changeset 80570 in vbox


Ignore:
Timestamp:
Sep 3, 2019 4:27:30 PM (5 years ago)
Author:
vboxsync
Message:

Installer/linux: more python3 fixing, now fully working (produced a sensible EL8 package)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r80568 r80570  
    2121%define VBOXDOCDIR %{_defaultdocdir}/%NAME%
    2222%global __requires_exclude_from ^/usr/lib/virtualbox/VBoxPython.*$
    23 %{!?python_sitelib: %define python_sitelib %(%{vbox_python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
     23%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
    2424
    2525Summary:   Oracle VM VirtualBox
     
    4242%if %{?__python3:1}%{!?__python3:0}
    4343%define vbox_python %{__python3}
     44%define vbox_python_sitelib %{python3_sitelib}
    4445%else
    4546%define vbox_python %{__python}
     47%{?rpm_suse: %define vbox_python_sitelib %{py_sitedir}}
     48%{!?rpm_suse: %define vbox_python_sitelib %{python_sitelib}}
    4649%endif
    4750
     
    332335%doc %{VBOXDOCDIR}/*
    333336%if %{?with_python:1}%{!?with_python:0}
    334 %{?rpm_suse: %{py_sitedir}/*}
    335 %{!?rpm_suse: %{python_sitelib}/*}
     337%{vbox_python_sitelib}/*
    336338%endif
    337339/etc/vbox
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette