3 %bcond_without dist_kernel # allow non-distribution kernel
4 %bcond_with verbose # verbose build (V=1)
8 Summary: IBM Tape SCSI Device Driver for Linux
9 Name: %{pname}%{_alt_kernel}
14 Source0: %{pname}-%{version}.tgz
15 # Source0-md5: 675822326c2b12390b5164a4e2b14aec
16 Patch0: use-module-dir.patch
17 # System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
18 URL: http://www.ibm.com/support/fixcentral/
19 %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
20 BuildRequires: rpmbuild(macros) >= 1.379
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The IBM Tape Device Driver, lin_tape, product is a device driver that
25 provides attachment for the IBM TotalStorage and System Storage tape
26 devices to Linux compatible platforms.
28 %package -n kernel%{_alt_kernel}-scsi-lin_tape
29 Summary: IBM Tape SCSI Device Driver for Linux
30 Release: %{rel}@%{_kernel_ver_str}
32 Requires(post,postun): /sbin/depmod
33 %if %{with dist_kernel}
34 %requires_releq_kernel
35 Requires(postun): %releq_kernel
38 %description -n kernel%{_alt_kernel}-scsi-lin_tape
39 The IBM Tape Device Driver, lin_tape, product is a device driver that
40 provides attachment for the IBM TotalStorage and System Storage tape
41 devices to Linux compatible platforms.
44 %setup -q -n %{pname}-%{version}
52 %ifarch ppc ppc64 powerpc powerpc64
59 %{__cp} -af lin_tape_359X_${proc}.ReadMe lin_tape_359X.ReadMe
60 %{__cp} -af lin_tape_Ultrium_${proc}.ReadMe lin_tape_Ultrium.ReadMe
62 %{__mv} Makefile Makefile.IBM
63 %{__cp} -af Makefile.GPL Makefile
66 %build_kernel_modules -m lin_tape
69 rm -rf $RPM_BUILD_ROOT
71 %install_kernel_modules -m lin_tape -d kernel/drivers/scsi
74 rm -rf $RPM_BUILD_ROOT
76 %post -n kernel%{_alt_kernel}-scsi-lin_tape
77 %depmod %{_kernel_ver}
79 %postun -n kernel%{_alt_kernel}-scsi-lin_tape
80 %depmod %{_kernel_ver}
82 %files -n kernel%{_alt_kernel}-scsi-lin_tape
83 %defattr(644,root,root,755)
84 %doc lin_tape.fixlist lin_tape_Ultrium.ReadMe lin_tape_359X.ReadMe
85 /lib/modules/%{_kernel_ver}/kernel/drivers/scsi/lin_tape.ko*