Jan Engelhardt
b824dfcb33
cdemu suite OBS-URL: https://build.opensuse.org/request/show/116800 OBS-URL: https://build.opensuse.org/package/show/filesystems/vhba-kmp?expand=0&rev=1
76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package vhba-kmp
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
Name: vhba-kmp
|
|
Version: 20120422
|
|
Release: 1
|
|
Summary: Virtual SCSI Host Bus Adapter
|
|
License: GPL-2.0+
|
|
Group: System/Kernel
|
|
Url: http://cdemu.sf.net/
|
|
|
|
Source: http://downloads.sf.net/cdemu/vhba-module-%version.tar.bz2
|
|
Patch1: vhba-pwd.diff
|
|
Patch2: vhba-parallel-build.diff
|
|
Patch3: vhba-no-werror.diff
|
|
BuildRequires: kernel-devel >= 2.6.20, kernel-syms >= 2.6.0, module-init-tools
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%kernel_module_package -n vhba -p %name-preamble
|
|
|
|
%description
|
|
A Linux kernel module implementing a virtual SCSI Host Bus Adapter to
|
|
act as a low-level SCSI driver and which provides the SCSI layer with
|
|
a virtual SCSI adapter which can have multiple virtual devices. It is
|
|
part of the userspace cdemu suite, CD/DVD-ROM device emulator for
|
|
Linux.
|
|
|
|
%package KMP
|
|
Summary: Virtual SCSI Host Bus adapter
|
|
Group: System/Kernel
|
|
|
|
%description KMP
|
|
A Linux kernel module implementing a virtual SCSI Host Bus Adapter to
|
|
act as a low-level SCSI driver and which provides the SCSI layer with
|
|
a virtual SCSI adapter which can have multiple virtual devices. It is
|
|
part of the userspace cdemu suite, CD/DVD-ROM device emulator for
|
|
Linux.
|
|
|
|
%prep
|
|
%setup -qn vhba-module-%version
|
|
%patch -P 1 -P 2 -P 3 -p1
|
|
|
|
%build
|
|
for flavor in %flavors_to_build; do
|
|
cp -a . "../obj-$flavor";
|
|
pushd "../obj-$flavor/";
|
|
make KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" \
|
|
%{?_smp_mflags};
|
|
popd;
|
|
done;
|
|
|
|
%install
|
|
export INSTALL_MOD_PATH="%buildroot";
|
|
|
|
for flavor in %flavors_to_build; do
|
|
pushd "../obj-$flavor/";
|
|
make KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" \
|
|
modules_install;
|
|
popd;
|
|
done;
|
|
|
|
%changelog
|