SPECS: VirtualBox.spec - separate package for udev rules, fixed br...

hawk hawk at pld-linux.org
Sun Feb 3 15:30:49 CET 2008


Author: hawk                         Date: Sun Feb  3 14:30:49 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separate package for udev rules, fixed broken directory deps on systems
  with static dev

---- Files affected:
SPECS:
   VirtualBox.spec (1.53 -> 1.54) 

---- Diffs:

================================================================
Index: SPECS/VirtualBox.spec
diff -u SPECS/VirtualBox.spec:1.53 SPECS/VirtualBox.spec:1.54
--- SPECS/VirtualBox.spec:1.53	Sat Feb  2 20:23:39 2008
+++ SPECS/VirtualBox.spec	Sun Feb  3 15:30:44 2008
@@ -1,11 +1,9 @@
 # $Revision$, $Date$
 #
 # TODO:
-# - separate udev stuff from kernel package
 # - Find how to compile with PLD CFLAGS/CXXFLAGS/LDFLAGS.
 # - Package SDK.
 # - Package utils (and write initscripts ?) for Guest OS.
-# - Add udev rule.
 # - Check License of VBoxGuestAdditions_*.iso, it's propably not GPL v2.
 #   If so check if it is distributable.
 #
@@ -14,7 +12,7 @@
 %bcond_without	kernel		# don't build kernel module
 %bcond_without	userspace	# don't build userspace package
 
-%define		rel		5
+%define		rel		6
 
 %if %{without kernel}
 %undefine	with_dist_kernel
@@ -124,6 +122,19 @@
 lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść
 konfigurację maszyny wirtualnej na inny komputer.
 
+%package udev
+Summary:	udev rules for VirtualBox kernel modules
+Summary(pl.UTF-8):	Reguły udev dla modułw jądra Linuksa dla VirtualBoksa
+Release:	%{rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires:	udev
+
+%description udev
+udev rules for VirtualBox kernel modules
+
+%description udev -l pl.UTF-8
+Reguły udev dla modułw jądra Linuksa dla VirtualBoksa
+
 %package -n kernel%{_alt_kernel}-misc-vboxadd
 Summary:	Linux kernel module for VirtualBox
 Summary(pl.UTF-8):	Moduł jądra Linuksa dla VirtualBoksa
@@ -133,7 +144,7 @@
 Requires:	dev >= 2.9.0-7
 %if %{with dist_kernel}
 %requires_releq_kernel
-Requires(postun):	%releq_kernel
+#Requires(postun):	%%releq_kernel
 %endif
 Provides:	kernel(vboxadd) = %{version}-%{rel}
 
@@ -421,6 +432,10 @@
 %{_pixmapsdir}/VBox.png
 %{_desktopdir}/%{name}.desktop
 
+%files udev
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules
+
 # Drivers are for Guest OS, which is 32-bit.
 %ifnarch %{x8664}
 %files -n xorg-driver-input-vboxmouse
@@ -440,7 +455,6 @@
 
 %files -n kernel%{_alt_kernel}-misc-vboxdrv
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules
 /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko*
 
 %files -n kernel%{_alt_kernel}-misc-vboxvfs
@@ -454,6 +468,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.54  2008-02-03 14:30:44  hawk
+- separate package for udev rules, fixed broken directory deps on systems
+  with static dev
+
 Revision 1.53  2008-02-02 19:23:39  arekm
 - rel 5; rel files only on x86_64
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/VirtualBox.spec?r1=1.53&r2=1.54&f=u



More information about the pld-cvs-commit mailing list