Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
vhba-kmp
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Changed
vhba-kmp.spec
@@ -1,7 +1,7 @@ # norootforbuild Summary: VHBA virtual host bus adapter module -Name: vhba-kmp +Name: vhba Version: 1.1.0 Release: 1 License: GPL @@ -24,19 +24,19 @@ VHBA kernel module, a virtual SCSI host bus adapter used by CDEmu daemon from userspace-cdemu suite. -#%package -n vhba-KMP -#Group: System/Kernel -#License: GPL v2 or later -#Summary: VHBA virtual host bus adapter module - -#%description -n vhba-KMP -#VHBA kernel module, a virtual SCSI host bus adapter used by CDEmu daemon from -#userspace-cdemu suite. +%package -n vhba-KMP +Group: System/Kernel +License: GPL v2 or later +Summary: VHBA virtual host bus adapter module + +%description -n vhba-KMP +VHBA kernel module, a virtual SCSI host bus adapter used by CDEmu daemon from +userspace-cdemu suite. %prep %setup -n vhba-module-%{version} %patch0 -%if 0%{?suse_version} >= 1100 +%if 0%{?suse_version} < 1100 %patch1 %endif @@ -54,10 +54,20 @@ for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD PWD=$PWD done +# Configuration for udev +%{__mkdir_p} %{buildroot}/etc/udev/rules.d +%{__cat} > %{buildroot}/etc/udev/rules.d/60-vhba.rules << 'EOF' +# Make vhba +KERNEL=="vhba_ctl", NAME="%k", MODE="0660", OWNER="root", GROUP="users" +EOF %clean rm -rf %{buildroot} +%files +%defattr(-,root,root,-) +/etc/udev/rules.d/60-vhba.rules + %changelog * Sat Jul 19 2008 Carsten Schoene <cs@linux-administrator.com> - initial package import