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