3 %bcond_with verbose # verbose build (V=1)
5 # nothing to be placed to debuginfo package
6 %define _enable_debug_packages 0
10 Summary: IBM Tape SCSI Device Driver for Linux
11 Name: %{pname}%{_alt_kernel}
13 Release: %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
16 Source0: %{pname}-%{version}.tgz
17 # Source0-md5: 11a219f7b32496d9c334bbcd534da349
18 Source1: %{pname}.fixlist
19 Patch0: use-module-dir.patch
20 Patch1: clean-ifdefs.patch
21 Patch2: insecure-perms.patch
22 Patch3: linux-3.13.patch
23 Patch4: linux-3.19.patch
24 Patch5: linux-4.0.patch
25 Patch6: linux-4.6.patch
26 Patch7: no-uname.patch
27 Patch8: linux-4.9.patch
28 Patch9: linux-4.10.patch
29 # System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
30 URL: http://www.ibm.com/support/fixcentral/
31 BuildRequires: rpmbuild(macros) >= 1.701
32 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 The IBM Tape Device Driver, lin_tape, product is a device driver that
37 provides attachment for the IBM TotalStorage and System Storage tape
38 devices to Linux compatible platforms.
41 %package -n kernel%{_alt_kernel}-scsi-lin_tape\
42 Summary: IBM Tape SCSI Device Driver for Linux\
43 Release: %{rel}@%{_kernel_ver_str}\
45 Requires(post,postun): /sbin/depmod\
46 %requires_releq_kernel\
47 Requires(postun): %releq_kernel\
49 %description -n kernel%{_alt_kernel}-scsi-lin_tape\
50 The IBM Tape Device Driver is a device driver that provides attachment\
51 for the IBM TotalStorage and System Storage tape devices to Linux\
52 compatible platforms.\
54 %post -n kernel%{_alt_kernel}-scsi-lin_tape\
55 %depmod %{_kernel_ver}\
57 %postun -n kernel%{_alt_kernel}-scsi-lin_tape\
58 %depmod %{_kernel_ver}\
60 %files -n kernel%{_alt_kernel}-scsi-lin_tape\
61 %defattr(644,root,root,755)\
62 %doc lin_tape.fixlist lin_tape.ReadMe\
63 /lib/modules/%{_kernel_ver}/kernel/drivers/scsi/lin_tape.ko*\
66 %define build_kernel_pkg()\
67 %build_kernel_modules -m lin_tape\
68 %install_kernel_modules -D installed -m lin_tape -d kernel/drivers/scsi\
71 %{expand:%create_kernel_packages}
74 %setup -q -n %{pname}-%{version}
87 install -p %{SOURCE1} .
90 %{expand:%build_kernel_packages}
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT
96 cp -a installed/* $RPM_BUILD_ROOT
99 rm -rf $RPM_BUILD_ROOT