Logoj0ke.net Open Build Service > Projects > multimedia > vhba-kmp > Changes
Sign Up | Log In

Changes of Revision 3

[-] Changed vhba-kmp.spec
x
 
1
@@ -1,77 +1,56 @@
2
-# norootforbuild
3
-%define        pname vhba-module
4
-Name:           vhba
5
-BuildRequires:  kernel-source kernel-syms module-init-tools
6
-Summary:        VHBA module provides Virtual (SCSI) Host Bus Adapter, which is the link between userspace daemon and linux kernel.
7
-Version:        1.1.0
8
-Release:        20
9
-Group:          Hardware/Other
10
-License:        GPL
11
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
12
-URL:            http://cdemu.sf.net/
13
-Source:         http://prdownloads.sourceforge.net/cdemu/%{pname}-%{version}.tar.bz2
14
-ExclusiveArch: %ix86 x86_64
15
-%suse_kernel_module_package -n %name kdump um
16
-
17
-%description
18
-VHBA module provides Virtual (SCSI) Host Bus Adapter, which is the link between userspace daemon and linux kernel.
19
-
20
-%package KMP
21
-Group:          System/Kernel
22
-License:        GPL
23
-Summary:        The Virtual (SCSI) Host Bus Adapter kernel module.
24
-
25
-%description KMP
26
-This package contains the cdemu kernel module.
27
-
28
-%prep
29
-%setup -q -n %{pname}-%{version}
30
-
31
-
32
-%build
33
-
34
-cd ..
35
-mkdir -p obj
36
-for flavor in %flavors_to_build; do
37
-  rm -rf obj/$flavor
38
-  cp -r  %{pname}-%{version} obj/$flavor
39
-# an ugly workaround because the makefiles tries to include other makefiles from its directory,
40
-# but during the build process it gets processed from somewhere else -- anyone knows a better way?
41
-  export MKINCLUDEDIR=$PWD/obj/$flavor
42
-  sed -i "s/PWD/MKINCLUDEDIR/g" $MKINCLUDEDIR/Makefile
43
-  make -C /usr/src/linux-obj/%{_target_cpu}/$flavor modules %{?jobs:-j%{jobs}} M=$PWD/obj/$flavor
44
-done
45
-
46
-
47
-%install
48
-export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
49
-export INSTALL_MOD_DIR=updates
50
-cd ../obj
51
-for flavor in %flavors_to_build; do
52
-   cd $flavor
53
-   make -C /usr/src/linux-obj/%{_target_cpu}/$flavor modules_install M=$PWD
54
-   cd ..
55
-done
56
-
57
-%clean
58
-rm -rf $RPM_BUILD_ROOT
59
-
60
-%post KMP
61
-# add an udev rule and run depmod -aq
62
-echo 'KERNEL="cdemu[0-9]*", NAME="cdemu/%n", MODE="0666"' >> /etc/udev/rules.d/55-cdrom.rules
63
-/sbin/depmod -aq
64
-
65
-%postun KMP
66
-# remove the udev rule
67
-# should we search only cdrom.rules or all udev rules?
68
-# this might NOT work! 
69
-sed -i "s/`grep cdemu /etc/udev/rules.d/55-cdrom.rules`//g" /etc/udev/rules.d/55-cdrom.rules
70
-#but perhaps this one instead? but what shall we do if the user changed the entry?
71
-#sed -i "s/'KERNEL="cdemu[0-9]*", NAME="cdemu/%n", MODE="0666"'//g" /etc/udev/rules.d/55-cdrom.rules
72
-
73
-%files
74
-%defattr(-,root,root)
75
-%doc AUTHORS ChangeLog COPYING README
76
+# norootforbuild  
77
+  
78
+Summary:    VHBA virtual host bus adapter module  
79
+Name:       vhba-kmp  
80
+Version:    1.1.0  
81
+Release:    1  
82
+License:    GPL  
83
+Group:      System/Kernel  
84
+URL:        http://cdemu.sourceforge.net  
85
+Packager:   Leonardo Chiquitto <lchiquitto@novell.com>  
86
+Source:     http://downloads.sourceforge.net/cdemu/vhba-module-%{version}.tar.gz  
87
+Source1:    Kbuild  
88
+Source100:  preamble    
89
+Patch0:     vhba-2.6.25.patch  
90
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build  
91
+ExclusiveArch:  %ix86 x86_64  
92
+BuildRequires:  kernel-source kernel-syms module-init-tools  
93
+  
94
+%suse_kernel_module_package -n vhba -p %_sourcedir/preamble kdump um  
95
+%define kernel_version  %(echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-source`|sed 's/_/-/g;')  
96
+  
97
+%description  
98
+VHBA kernel module, a virtual SCSI host bus adapter used by CDEmu daemon from  
99
+userspace-cdemu suite.  
100
+  
101
+#%package -n vhba-KMP  
102
+#Group: System/Kernel  
103
+#License: GPL v2 or later  
104
+#Summary: VHBA virtual host bus adapter module  
105
+  
106
+#%description -n vhba-KMP  
107
+#VHBA kernel module, a virtual SCSI host bus adapter used by CDEmu daemon from  
108
+#userspace-cdemu suite.  
109
+  
110
+%prep  
111
+%setup -n vhba-module-%{version}  
112
+#%patch0  
113
+cp %{SOURCE1} vhba-module-%{version}  
114
+  
115
+%build  
116
+for flavor in %{flavors_to_build}; do  
117
+    make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=$PWD  
118
+done  
119
+  
120
+%install  
121
+export INSTALL_MOD_PATH=%{buildroot}  
122
+export INSTALL_MOD_DIR=updates  
123
+for flavor in %flavors_to_build; do  
124
+     make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD  
125
+done  
126
+  
127
+%clean  
128
+rm -rf %{buildroot}  
129
 
130
 %changelog
131
 * Sat Jul 19 2008 Carsten Schoene <cs@linux-administrator.com>
132
[+] Added vhba-2.6.25.patch ^
[+] Added Kbuild ^
[+] Added preamble ^
[+] Added vhba-kmp.spec.old ^