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