# nothing to be placed to debuginfo package
%define _enable_debug_packages 0
-%define rel 1
+%define rel 2
%define pname lin_tape
Summary: IBM Tape SCSI Device Driver for Linux
Name: %{pname}%{_alt_kernel}
-Version: 2.9.4
+Version: 3.0.52
Release: %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
License: GPL v2/LGPL
Group: Base/Kernel
Source0: %{pname}-%{version}.tgz
-# Source0-md5: 343e4fbc132880bdecb4f66f061112e9
+# Source0-md5: 75cba1cbb76359085dedb5366afa7683
+Source1: %{pname}.fixlist
Patch0: use-module-dir.patch
-Patch1: linux-3.19.patch
-Patch2: insecure-perms.patch
+Patch1: clean-ifdefs.patch
+Patch2: kernel-5.0.patch
+Patch3: kernel-5.6.patch
+Patch4: kernel-5.8.patch
# System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
URL: http://www.ibm.com/support/fixcentral/
BuildRequires: rpmbuild(macros) >= 1.701
\
%files -n kernel%{_alt_kernel}-scsi-lin_tape\
%defattr(644,root,root,755)\
-%doc lin_tape.fixlist lin_tape_Ultrium.ReadMe lin_tape_359X.ReadMe\
+%doc lin_tape.fixlist lin_tape.ReadMe\
/lib/modules/%{_kernel_ver}/kernel/drivers/scsi/lin_tape.ko*\
%{nil}
%prep
%setup -q -n %{pname}-%{version}
+%undos Makefile
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%ifarch %{ix86} ia64
-proc="Intel"
-%endif
-%ifarch %{x8664} x32
-proc="AMD"
-%endif
-%ifarch ppc ppc64 powerpc powerpc64
-proc="pSeries"
-%endif
-%ifarch s390 s390x
-proc="zSeries"
-%endif
+%patch3 -p1
+%patch4 -p1
-%{__cp} -af lin_tape_359X_${proc}.ReadMe lin_tape_359X.ReadMe
-%{__cp} -af lin_tape_Ultrium_${proc}.ReadMe lin_tape_Ultrium.ReadMe
-
-%{__mv} Makefile Makefile.IBM
-%{__cp} -af Makefile.GPL Makefile
+install -p %{SOURCE1} .
%build
%{expand:%build_kernel_packages}