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