2012-05-21 19:30:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package vhba-kmp
|
|
|
|
#
|
2021-04-20 15:46:40 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2019-05-28 16:43:33 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-05-21 19:30:59 +02:00
|
|
|
#
|
2012-11-15 01:07:48 +01:00
|
|
|
|
|
|
|
|
2012-05-21 19:30:59 +02:00
|
|
|
Name: vhba-kmp
|
2021-04-20 15:46:40 +02:00
|
|
|
Version: 20210418
|
2012-11-15 01:07:48 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Virtual SCSI Host Bus Adapter
|
2019-05-28 16:43:33 +02:00
|
|
|
License: GPL-2.0-or-later
|
2019-10-24 12:55:10 +02:00
|
|
|
Group: System/Kernel
|
2021-04-20 15:46:40 +02:00
|
|
|
URL: https://cdemu.sourceforge.io/about/vhba/
|
2012-05-21 19:30:59 +02:00
|
|
|
|
2021-04-20 15:46:40 +02:00
|
|
|
#Git-Clone: https://github.com/cdemu/cdemu
|
|
|
|
Source: https://downloads.sf.net/cdemu/vhba-module-%version.tar.xz
|
2014-07-14 13:37:18 +02:00
|
|
|
Source2: %name-preamble
|
2014-07-14 13:33:34 +02:00
|
|
|
Patch1: vhba-no-werror.diff
|
2015-11-23 23:36:51 +01:00
|
|
|
Patch2: vhba-devname.diff
|
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
|
|
|
|
2017-05-18 00:20:18 +02:00
|
|
|
%{?kernel_module_package:%kernel_module_package -n vhba -p %name-preamble}
|
2012-05-21 19:30:59 +02:00
|
|
|
|
|
|
|
%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
|
2014-07-14 13:37:18 +02:00
|
|
|
echo %flavors_to_build
|
2019-05-28 16:43:33 +02:00
|
|
|
%autosetup -n vhba-module-%version -p1
|
2012-05-21 19:30:59 +02:00
|
|
|
|
|
|
|
%build
|
2014-07-14 13:37:18 +02:00
|
|
|
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
|
2014-07-14 13:33:34 +02:00
|
|
|
done
|
2012-05-21 19:30:59 +02:00
|
|
|
|
|
|
|
%install
|
2014-07-14 13:37:18 +02:00
|
|
|
export INSTALL_MOD_PATH="%buildroot"
|
2012-05-21 19:30:59 +02:00
|
|
|
|
2014-07-14 13:37:18 +02:00
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
pushd "../obj-$flavor/"
|
|
|
|
make KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" \
|
|
|
|
modules_install
|
|
|
|
popd
|
2014-07-14 13:33:34 +02:00
|
|
|
done
|
2012-05-21 19:30:59 +02:00
|
|
|
|
|
|
|
%changelog
|