SHA256
1
0
forked from pool/vhba-kmp

- Add vhba-scsiapi.diff to fix the build with Linux 5.1

OBS-URL: https://build.opensuse.org/package/show/filesystems/vhba-kmp?expand=0&rev=29
This commit is contained in:
2019-05-28 14:43:33 +00:00
committed by Git OBS Bridge
parent 1a3dfd891f
commit e2e2ec5dfe
3 changed files with 89 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package vhba-kmp
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -20,15 +20,16 @@ Name: vhba-kmp
Version: 20170610
Release: 0
Summary: Virtual SCSI Host Bus Adapter
License: GPL-2.0+
License: GPL-2.0-or-later
Group: System/Kernel
Url: http://cdemu.sf.net/about/vhba/
URL: http://cdemu.sf.net/about/vhba/
#Git-Clone: git://git.code.sf.net/p/cdemu/code
Source: http://downloads.sf.net/cdemu/vhba-module-%version.tar.bz2
Source2: %name-preamble
Patch1: vhba-no-werror.diff
Patch2: vhba-devname.diff
Patch3: vhba-scsiapi.diff
BuildRequires: kernel-syms >= 2.6.20
BuildRequires: modutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -55,8 +56,7 @@ Linux.
%prep
echo %flavors_to_build
%setup -qn vhba-module-%version
%patch -P 1 -P 2 -p1
%autosetup -n vhba-module-%version -p1
%build
for flavor in %flavors_to_build; do