2012-05-21 19:30:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package vhba-kmp
|
|
|
|
#
|
2013-03-30 03:58:19 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-05-21 19:30:59 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-11-15 01:07:48 +01:00
|
|
|
|
|
|
|
|
2012-05-21 19:30:59 +02:00
|
|
|
Name: vhba-kmp
|
2013-06-09 16:17:03 +02:00
|
|
|
Version: 20130607
|
2012-11-15 01:07:48 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Virtual SCSI Host Bus Adapter
|
|
|
|
License: GPL-2.0+
|
2012-05-21 19:30:59 +02:00
|
|
|
Group: System/Kernel
|
2012-11-15 01:07:48 +01:00
|
|
|
Url: http://cdemu.sf.net/
|
2012-05-21 19:30:59 +02:00
|
|
|
|
2012-11-15 01:07:48 +01:00
|
|
|
#Freecode-URL: https://freecode.com/projects/cdemu-for-linux
|
|
|
|
Source: http://downloads.sf.net/cdemu/vhba-module-%version.tar.bz2
|
|
|
|
Source2: %name-preamble
|
|
|
|
Patch3: vhba-no-werror.diff
|
|
|
|
BuildRequires: kernel-devel >= 2.6.20
|
2013-06-09 16:17:36 +02:00
|
|
|
BuildRequires: kernel-syms >= 2.6.20
|
2013-03-30 03:58:19 +01:00
|
|
|
BuildRequires: modutils
|
2012-05-21 19:30:59 +02:00
|
|
|
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
|
2013-06-09 16:19:50 +02:00
|
|
|
%patch -P 3 -p1
|
2012-05-21 19:30:59 +02:00
|
|
|
|
|
|
|
%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
|