]> git.pld-linux.org Git - packages/lin_tape.git/blobdiff - lin_tape.spec
- fix building with kernel 4.13
[packages/lin_tape.git] / lin_tape.spec
index 7d33effb1b646ca4e09b0aaa53be0a5fdb068fd2..a11b6ab92e81b0aa1d29e2a453170927371e6f8b 100644 (file)
@@ -9,15 +9,20 @@
 %define                pname   lin_tape
 Summary:       IBM Tape SCSI Device Driver for Linux
 Name:          %{pname}%{_alt_kernel}
-Version:       2.9.1
+Version:       3.0.20
 Release:       %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
 License:       GPL v2/LGPL
 Group:         Base/Kernel
 Source0:       %{pname}-%{version}.tgz
-# Source0-md5: 305d2922f942a73f0f0b30fa49b92dd5
+# Source0-md5: e9780677ade7969498032f10611a3bb6
+Source1:       %{pname}.fixlist
 Patch0:                use-module-dir.patch
-Patch1:                linux-3.10.patch
-Patch2:                insecure-perms.patch
+Patch1:                clean-ifdefs.patch
+Patch2:                linux-4.9.patch
+Patch3:                linux-4.10.patch
+Patch4:                linux-4.11.patch
+Patch5:                linux-4.12.patch
+Patch6:                linux-4.13.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
@@ -51,7 +56,7 @@ compatible platforms.\
 \
 %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}
 
@@ -64,27 +69,16 @@ compatible platforms.\
 
 %prep
 %setup -q -n %{pname}-%{version}
+%undos Makefile
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%ifarch %ix86 ia64
-proc="Intel"
-%endif
-%ifarch %x8664
-proc="AMD"
-%endif
-%ifarch ppc ppc64 powerpc powerpc64
-proc="pSeries"
-%endif
-%ifarch s390 s390x
-proc="zSeries"
-%endif
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -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}
This page took 0.39837 seconds and 4 git commands to generate.