]>
Commit | Line | Data |
---|---|---|
b5818c49 JR |
1 | # |
2 | # Conditional build: | |
b5818c49 | 3 | %bcond_with verbose # verbose build (V=1) |
d7fb0fa1 | 4 | |
d7fb0fa1 JR |
5 | # nothing to be placed to debuginfo package |
6 | %define _enable_debug_packages 0 | |
7 | ||
20957765 | 8 | %define rel 2 |
b5818c49 JR |
9 | %define pname lin_tape |
10 | Summary: IBM Tape SCSI Device Driver for Linux | |
11 | Name: %{pname}%{_alt_kernel} | |
65107090 | 12 | Version: 3.0.33 |
d7fb0fa1 | 13 | Release: %{rel}%{?_pld_builder:@%{_kernel_ver_str}} |
b5818c49 JR |
14 | License: GPL v2/LGPL |
15 | Group: Base/Kernel | |
16 | Source0: %{pname}-%{version}.tgz | |
65107090 | 17 | # Source0-md5: c22358f485f12baa7254aa25abe20a43 |
cb517b28 | 18 | Source1: %{pname}.fixlist |
b5818c49 | 19 | Patch0: use-module-dir.patch |
6986ddb6 | 20 | Patch1: clean-ifdefs.patch |
300a759d | 21 | Patch2: linux-4.9.patch |
300a759d | 22 | Patch4: linux-4.11.patch |
9752ce8d | 23 | Patch5: linux-4.12.patch |
e63c79d8 | 24 | Patch6: linux-4.13.patch |
ba88ce5c | 25 | Patch7: kernel-4.14.patch |
fda6bd2d | 26 | Patch8: kernel-4.15.patch |
90256aab | 27 | Patch9: kernel-4.17.patch |
65107090 | 28 | Patch10: kernel-4.19.patch |
20957765 | 29 | Patch11: linux-4.4.169.patch |
b5818c49 JR |
30 | # System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux) |
31 | URL: http://www.ibm.com/support/fixcentral/ | |
616d29c6 JR |
32 | BuildRequires: rpmbuild(macros) >= 1.701 |
33 | %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2} | |
b5818c49 JR |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | The IBM Tape Device Driver, lin_tape, product is a device driver that | |
38 | provides attachment for the IBM TotalStorage and System Storage tape | |
39 | devices to Linux compatible platforms. | |
40 | ||
d7fb0fa1 JR |
41 | %define kernel_pkg()\ |
42 | %package -n kernel%{_alt_kernel}-scsi-lin_tape\ | |
43 | Summary: IBM Tape SCSI Device Driver for Linux\ | |
44 | Release: %{rel}@%{_kernel_ver_str}\ | |
45 | Group: Base/Kernel\ | |
46 | Requires(post,postun): /sbin/depmod\ | |
d7fb0fa1 JR |
47 | %requires_releq_kernel\ |
48 | Requires(postun): %releq_kernel\ | |
d7fb0fa1 JR |
49 | \ |
50 | %description -n kernel%{_alt_kernel}-scsi-lin_tape\ | |
51 | The IBM Tape Device Driver is a device driver that provides attachment\ | |
52 | for the IBM TotalStorage and System Storage tape devices to Linux\ | |
53 | compatible platforms.\ | |
54 | \ | |
55 | %post -n kernel%{_alt_kernel}-scsi-lin_tape\ | |
56 | %depmod %{_kernel_ver}\ | |
57 | \ | |
58 | %postun -n kernel%{_alt_kernel}-scsi-lin_tape\ | |
59 | %depmod %{_kernel_ver}\ | |
60 | \ | |
61 | %files -n kernel%{_alt_kernel}-scsi-lin_tape\ | |
62 | %defattr(644,root,root,755)\ | |
6986ddb6 | 63 | %doc lin_tape.fixlist lin_tape.ReadMe\ |
d7fb0fa1 JR |
64 | /lib/modules/%{_kernel_ver}/kernel/drivers/scsi/lin_tape.ko*\ |
65 | %{nil} | |
b5818c49 | 66 | |
d7fb0fa1 JR |
67 | %define build_kernel_pkg()\ |
68 | %build_kernel_modules -m lin_tape\ | |
69 | %install_kernel_modules -D installed -m lin_tape -d kernel/drivers/scsi\ | |
70 | %{nil} | |
71 | ||
616d29c6 | 72 | %{expand:%create_kernel_packages} |
b5818c49 JR |
73 | |
74 | %prep | |
75 | %setup -q -n %{pname}-%{version} | |
6986ddb6 | 76 | %undos Makefile |
b5818c49 | 77 | %patch0 -p1 |
dbbe8553 | 78 | %patch1 -p1 |
f2747b63 | 79 | %patch2 -p1 |
6986ddb6 | 80 | %patch4 -p1 |
9752ce8d | 81 | %patch5 -p1 |
e63c79d8 | 82 | %patch6 -p1 |
ba88ce5c | 83 | %patch7 -p1 |
fda6bd2d | 84 | %patch8 -p1 |
90256aab | 85 | %patch9 -p1 |
65107090 | 86 | %patch10 -p1 |
20957765 | 87 | %patch11 -p1 |
b5818c49 | 88 | |
6986ddb6 | 89 | install -p %{SOURCE1} . |
b5818c49 JR |
90 | |
91 | %build | |
616d29c6 | 92 | %{expand:%build_kernel_packages} |
b5818c49 JR |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
d7fb0fa1 | 96 | install -d $RPM_BUILD_ROOT |
b5818c49 | 97 | |
d7fb0fa1 | 98 | cp -a installed/* $RPM_BUILD_ROOT |
b5818c49 JR |
99 | |
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT |