Changeset 80516 in vbox for trunk/src/VBox/Installer/linux
- Timestamp:
- Aug 30, 2019 4:14:40 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133018
- Location:
- trunk/src/VBox/Installer/linux/rpm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec
r76759 r80516 40 40 41 41 %MACROSPYTHON% 42 %if %{?__python3:1}%{!?__python3:0} 43 %define vbox_python %{__python3} 44 %else 45 %define vbox_python %{__python} 46 %endif 42 47 43 48 # our Qt5 libs are built on EL5 with ld 2.17 which does not provide --link-id= … … 46 51 # Remove source code from debuginfo package, needed for Fedora 27 and later 47 52 # as we build the binaries before creating the RPMs. 48 49 53 %if 0%{?fedora} >= 27 54 %undefine _debugsource_packages 55 %undefine _debuginfo_subpackages 56 %endif 57 %if 0%{?rhel} >= 8 50 58 %undefine _debugsource_packages 51 59 %undefine _debuginfo_subpackages … … 90 98 (export VBOX_INSTALL_PATH=/usr/lib/virtualbox && \ 91 99 cd ./sdk/installer && \ 92 %{ __python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT)100 %{vbox_python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT) 93 101 %endif 94 102 rm -rf sdk/installer -
trunk/src/VBox/Installer/linux/rpm/rules
r80509 r80516 164 164 VBOX_DO_STRIP= \ 165 165 $(if $(filter el5,$(rpmrel)),VBOX_BLD_PYTHON=$(strip \ 166 $(firstword $(wildcard /usr/local/bin/python2.7) \167 $(wildcard /usr/bin/python2.6) $(wildcard /usr/bin/python ))),) \166 $(firstword $(wildcard /usr/local/bin/python2.7) $(wildcard /usr/bin/python2.7) \ 167 $(wildcard /usr/bin/python2.6) $(wildcard /usr/bin/python2) $(wildcard /usr/bin/python))),) \ 168 168 $(doc_dir) \ 169 169 $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \ … … 222 222 -e 's|%SPEC%|$(rpmspec)|g' \ 223 223 -e 's|%PYTHON%|$(if $(filter el5,$(rpmrel)),,with_python)|g' \ 224 -e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros. python),%include /usr/lib/rpm/macros.python,)|g' \224 -e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros.d/macros.python3),,$(if $(wildcard /usr/lib/rpm/macros.python),%include /usr/lib/rpm/macros.python,))|g' \ 225 225 -e 's|%INSTMOD%|$(instmod)|g' \ 226 226 -e 's|%LIBASOUND%|$(if $(filter lib64,$(rpmlib)),libasound.so.2()(64bit),libasound.so.2)|g' \
Note:
See TracChangeset
for help on using the changeset viewer.