VirtualBox

Changeset 63953 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Sep 22, 2016 2:44:31 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110839
Message:

rpm: python fix

Location:
trunk/src/VBox/Installer/linux/rpm
Files:
2 edited

Legend:

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

    r63631 r63953  
    1717%define %SPEC% 1
    1818%define %OSE% 1
     19%define %PYTHON 1
    1920%define VBOXDOCDIR %{_defaultdocdir}/%NAME%
    2021%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
     
    3637%endif
    3738
     39%if %{?with_python:1}%{!?with_python:0}
    3840%MACROSPYTHON%
     41%endif
    3942
    4043# our Qt5 libs are built on EL5 with ld 2.17 which does not provide --link-id=
     
    7780install -m 755 -d $RPM_BUILD_ROOT/usr/share/virtualbox
    7881install -m 755 -d $RPM_BUILD_ROOT/usr/share/mime/packages
     82%if %{?with_python:1}%{!?with_python:0}
    7983(export VBOX_INSTALL_PATH=/usr/lib/virtualbox && \
    8084  cd ./sdk/installer && \
    8185  %{__python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT)
     86%endif
    8287rm -rf sdk/installer
    8388mv nls $RPM_BUILD_ROOT/usr/share/virtualbox
     
    303308%defattr(-,root,root)
    304309%doc %{VBOXDOCDIR}/*
     310%if %{?with_python:1}%{!?with_python:0}
    305311%{?rpm_suse: %{py_sitedir}/*}
    306312%{!?rpm_suse: %{python_sitelib}/*}
     313%endif
    307314/etc/vbox
    308315/usr/bin/*
  • trunk/src/VBox/Installer/linux/rpm/rules

    r63946 r63953  
    223223            -e 's|%OSE%|$(if $(ose),is_ose,not_ose)|g' \
    224224            -e 's|%SPEC%|$(rpmspec)|g' \
     225            -e 's|%PYTHON|$(if $(filter el5,$(rpmrel)),,with_python)|g' \
    225226            -e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros.python),%include /usr/lib/rpm/macros.python,)|g' \
    226227            -e 's|%INSTMOD%|$(instmod)|g' \
Note: See TracChangeset for help on using the changeset viewer.

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