]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
- Release 0.4, VBox.sh moved to Source4, use gxmessage when possible
authorpascalek <pascalek@pld-linux.org>
Sat, 22 Sep 2007 10:26:18 +0000 (10:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    VirtualBox.spec -> 1.26

VirtualBox.spec

index cd878a9fadf28a3e5b3fa8dfd5cdc14465bf486c..8f4cc53905c63de547628ea19a7f6934e0481708 100644 (file)
@@ -3,10 +3,8 @@
 # - finish kernel/userspace bconds (deps, limit build to only selected part)
 # - Home page says that some addons should be compiled, I don't see any except.
 #   vboxaddon kernel module and {vboxmouse,vboxvideo)_drv.so. Are they required?
-# - .desktop file
 # - it seems that VBoxSVC should not be started by init script but I'm still
 #   testing this
-# - /dev/vboxdrv should belong to vboxusers group and have rw rights to it
 # - Devel stuff is not packaged yet.
 # - Now its EA ix86 x8664, but looking into autogenerated env.sh suggests that
 #   code may be compiled exclusively for i686.
@@ -17,7 +15,7 @@
 %bcond_without kernel          # don't build kernel module
 %bcond_without userspace       # don't build userspace package
 
-%define                _rel            0.3
+%define                _rel            0.4
 
 Summary:       VirtualBox - x86 hardware virtualizer
 Summary(pl.UTF-8):     VirtualBox - wirtualizator sprzętu x86
@@ -32,6 +30,7 @@ Source1:      virtualbox.init
 Source2:       http://www.virtualbox.org/download/UserManual.pdf
 # Source2-md5: 2e5458bd5b4b9acd18cc86866e8a7284
 Source3:       %{name}.desktop
+Source4:       %{name}.sh
 Patch0:                %{name}-configure.patch
 Patch1:                %{name}-qt-paths.patch
 URL:           http://www.virtualbox.org/
@@ -57,6 +56,7 @@ BuildRequires:        zlib-devel >= 1.2.1
 Requires(postun):      /usr/sbin/groupdel
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
+Suggests:      gxmessage
 Provides:      group(vbox)
 ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -133,26 +133,6 @@ Moduł jądra Linuksa vboxdrv dla VirtualBoksa.
 %setup -q -n %{name}-%{version}_OSE
 %patch0 -p0
 %patch1 -p0
-
-cat > VBox.sh <<'EOF'
-#!/bin/sh
-
-if [ ! -c /dev/vboxdrv ]; then
-       echo "Special character device /dev/vboxdrv doesn't exists!"
-       echo "Check your installation and if vboxdrv kernel module is loaded."
-       exit 1
-fi
-
-if [ ! -w /dev/vboxdrv ]; then
-       echo "You don't have write access to /dev/vboxdrv!"
-       echo "Correct this situation or contact with your system administrator."
-       exit 1
-fi
-
-BINFILE=$(basename "$0")
-LD_LIBRARY_PATH=%{_libdir}/VirtualBox %{_libdir}/VirtualBox/$BINFILE ${1:+"$@"}
-EOF
-
 install %{SOURCE2} .
 
 %build
@@ -218,7 +198,7 @@ install -d \
 
 for f in {VBox{BFE,Manage,SDL,SVC,XPCOMIPCD},VirtualBox}; do
        install out/linux.%{_outdir}/release/bin/$f $RPM_BUILD_ROOT%{_libdir}/VirtualBox/$f
-       install VBox.sh $RPM_BUILD_ROOT%{_bindir}/$f
+       install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/$f
 done
 
 install out/linux.%{_outdir}/release/bin/VBox*.so \
This page took 0.035577 seconds and 4 git commands to generate.