VirtualBox

Changeset 40545 in vbox for trunk


Ignore:
Timestamp:
Mar 19, 2012 8:29:51 PM (13 years ago)
Author:
vboxsync
Message:

rpm: more OSE fixes

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

Legend:

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

    r40395 r40545  
    1616
    1717%define %SPEC% 1
     18%define %OSE% 1
    1819%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
    1920
     
    110111rmdir icons
    111112mv virtualbox.xml $RPM_BUILD_ROOT/usr/share/mime/packages
    112 for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless VBoxExtPackHelperApp VBoxBalloonCtrl vboxwebsrv webtest; do
     113for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless VBoxExtPackHelperApp VBoxBalloonCtrl; do
    113114  mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done
     115if %WEBSVC%; then
     116  for i in vboxwebsrv webtest; do
     117    mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done
     118fi
    114119for i in VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetAdpCtl; do
    115120  chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done
     
    143148  fi
    144149done
    145 mv kchmviewer $RPM_BUILD_ROOT/usr/lib/virtualbox
    146 for i in rdesktop-vrdp.tar.gz rdesktop-vrdp-keymaps additions/VBoxGuestAdditions.iso; do
     150%if %{?is_ose:0}%{!?is_ose:1}
     151  mv kchmviewer $RPM_BUILD_ROOT/usr/lib/virtualbox
     152  for i in rdesktop-vrdp.tar.gz rdesktop-vrdp-keymaps; do
     153    mv $i $RPM_BUILD_ROOT/usr/share/virtualbox; done
     154  mv rdesktop-vrdp $RPM_BUILD_ROOT/usr/bin
     155%endif
     156for i in additions/VBoxGuestAdditions.iso; do
    147157  mv $i $RPM_BUILD_ROOT/usr/share/virtualbox; done
    148158if [ -d accessible ]; then
    149159  mv accessible $RPM_BUILD_ROOT/usr/lib/virtualbox
    150160fi
    151 mv rdesktop-vrdp $RPM_BUILD_ROOT/usr/bin
    152161install -D -m 755 vboxdrv.init $RPM_BUILD_ROOT%{_initrddir}/vboxdrv
    153162%if %{?rpm_suse:1}%{!?rpm_suse:0}
     
    406415%files
    407416%defattr(-,root,root)
    408 %doc LICENSE
    409 %doc UserManual*.pdf
    410 %doc VirtualBox*.chm
     417%{!?is_ose: LICENSE}
     418%{!?is_ose: UserManual*.pdf}
     419%{!?is_ose: VirtualBox*.chm}
    411420%{_initrddir}/vboxdrv
    412421%{_initrddir}/vboxballoonctrl-service
  • trunk/src/VBox/Installer/linux/rpm/rules

    r40428 r40545  
    206206          -e 's|%BUILDROOT%|$(current)/rpm/buildroot|g' \
    207207          -e 's|%LIB%|$(rpmlib)|g' \
     208          -e 's|%OSE%|$(if $(ose),is_ose,not_ose)|g' \
    208209          -e 's|%SPEC%|$(rpmspec)|g' \
    209210          -e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros.python),%include /usr/lib/rpm/macros.python,)|g' \
     
    211212          -e 's|%LIBASOUND%|$(if $(filter lib64,$(rpmlib)),libasound.so.2()(64bit),libasound.so.2)|g' \
    212213          -e 's|%INITSCRIPTS%|$(if $(filter fedora,$(rpmspec)),initscripts,)|g' \
     214          -e "s|%WEBSVC%|$(if $(NOWEBSVC),false,true)|g" \
    213215          -e '/#include installer-common.sh/ {' \
    214216          -e "r $(vboxroot)/src/VBox/Installer/linux/installer-common.sh" \
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