- Timestamp:
- Mar 19, 2012 8:29:51 PM (13 years ago)
- 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 16 16 17 17 %define %SPEC% 1 18 %define %OSE% 1 18 19 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 19 20 … … 110 111 rmdir icons 111 112 mv virtualbox.xml $RPM_BUILD_ROOT/usr/share/mime/packages 112 for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless VBoxExtPackHelperApp VBoxBalloonCtrl vboxwebsrv webtest; do113 for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless VBoxExtPackHelperApp VBoxBalloonCtrl; do 113 114 mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done 115 if %WEBSVC%; then 116 for i in vboxwebsrv webtest; do 117 mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done 118 fi 114 119 for i in VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetAdpCtl; do 115 120 chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done … … 143 148 fi 144 149 done 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 156 for i in additions/VBoxGuestAdditions.iso; do 147 157 mv $i $RPM_BUILD_ROOT/usr/share/virtualbox; done 148 158 if [ -d accessible ]; then 149 159 mv accessible $RPM_BUILD_ROOT/usr/lib/virtualbox 150 160 fi 151 mv rdesktop-vrdp $RPM_BUILD_ROOT/usr/bin152 161 install -D -m 755 vboxdrv.init $RPM_BUILD_ROOT%{_initrddir}/vboxdrv 153 162 %if %{?rpm_suse:1}%{!?rpm_suse:0} … … 406 415 %files 407 416 %defattr(-,root,root) 408 % doc LICENSE409 % doc UserManual*.pdf410 % doc VirtualBox*.chm417 %{!?is_ose: LICENSE} 418 %{!?is_ose: UserManual*.pdf} 419 %{!?is_ose: VirtualBox*.chm} 411 420 %{_initrddir}/vboxdrv 412 421 %{_initrddir}/vboxballoonctrl-service -
trunk/src/VBox/Installer/linux/rpm/rules
r40428 r40545 206 206 -e 's|%BUILDROOT%|$(current)/rpm/buildroot|g' \ 207 207 -e 's|%LIB%|$(rpmlib)|g' \ 208 -e 's|%OSE%|$(if $(ose),is_ose,not_ose)|g' \ 208 209 -e 's|%SPEC%|$(rpmspec)|g' \ 209 210 -e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros.python),%include /usr/lib/rpm/macros.python,)|g' \ … … 211 212 -e 's|%LIBASOUND%|$(if $(filter lib64,$(rpmlib)),libasound.so.2()(64bit),libasound.so.2)|g' \ 212 213 -e 's|%INITSCRIPTS%|$(if $(filter fedora,$(rpmspec)),initscripts,)|g' \ 214 -e "s|%WEBSVC%|$(if $(NOWEBSVC),false,true)|g" \ 213 215 -e '/#include installer-common.sh/ {' \ 214 216 -e "r $(vboxroot)/src/VBox/Installer/linux/installer-common.sh" \
Note:
See TracChangeset
for help on using the changeset viewer.