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 6
[-]
[+]
Changed
vhba-kmp.spec
@@ -1,56 +1,57 @@ -# norootforbuild - -Summary: VHBA virtual host bus adapter module -Name: vhba-kmp -Version: 1.1.0 -Release: 1 -License: GPL -Group: System/Kernel -URL: http://cdemu.sourceforge.net -Packager: Leonardo Chiquitto <lchiquitto@novell.com> +# norootforbuild + +Summary: VHBA virtual host bus adapter module +Name: vhba-kmp +Version: 1.1.0 +Release: 1 +License: GPL +Group: System/Kernel +URL: http://cdemu.sourceforge.net +Packager: Leonardo Chiquitto <lchiquitto@novell.com> Source: http://downloads.sourceforge.net/cdemu/vhba-module-%{version}.tar.bz2 -Source1: Kbuild -Source100: preamble -Patch0: vhba-2.6.25.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -ExclusiveArch: %ix86 x86_64 -BuildRequires: kernel-source kernel-syms module-init-tools - -%suse_kernel_module_package -n vhba -p %_sourcedir/preamble kdump um -%define kernel_version %(echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-source`|sed 's/_/-/g;') - -%description -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 -cp %{SOURCE1} vhba-module-%{version} - -%build -for flavor in %{flavors_to_build}; do - make -C /usr/src/linux-obj/%_target_cpu/$flavor all M=$PWD -done - -%install -export INSTALL_MOD_PATH=%{buildroot} -export INSTALL_MOD_DIR=updates -for flavor in %flavors_to_build; do - make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD -done +Source1: Kbuild +Source100: preamble +Patch0: vhba-2.6.25.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +ExclusiveArch: %ix86 x86_64 +BuildRequires: kernel-source kernel-syms module-init-tools + +%suse_kernel_module_package -n vhba -p %_sourcedir/preamble kdump um +%define kernel_version %(echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-source`|sed 's/_/-/g;') -%clean -rm -rf %{buildroot} +%description +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 +cp %{SOURCE1} vhba-module-%{version} + +%build +for flavor in %{flavors_to_build}; do + kat/kat /usr/src/linux-obj/%_target_cpu/$flavor kernel.api.h kat/have_scsi_macros.c kat/scatterlist_has_page.c + make -C /usr/src/linux-obj/%_target_cpu/$flavor all M=$PWD +done + +%install +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=updates +for flavor in %flavors_to_build; do + make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD +done + +%clean +rm -rf %{buildroot} %changelog * Sat Jul 19 2008 Carsten Schoene <cs@linux-administrator.com>