]> git.pld-linux.org Git - packages/lin_tape.git/blame - lin_tape.spec
- up to 2.1.0
[packages/lin_tape.git] / lin_tape.spec
CommitLineData
b5818c49
JR
1#
2# Conditional build:
3%bcond_without dist_kernel # allow non-distribution kernel
4%bcond_with verbose # verbose build (V=1)
5#
dbbe8553 6%define rel 1
b5818c49
JR
7%define pname lin_tape
8Summary: IBM Tape SCSI Device Driver for Linux
9Name: %{pname}%{_alt_kernel}
dbbe8553 10Version: 2.1.0
b5818c49
JR
11Release: %{rel}
12License: GPL v2/LGPL
13Group: Base/Kernel
14Source0: %{pname}-%{version}.tgz
dbbe8553 15# Source0-md5: a46993ee41fb438ae3b35249fe2c376f
b5818c49 16Patch0: use-module-dir.patch
dbbe8553 17Patch1: linux-3.10.patch
b5818c49
JR
18# System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
19URL: http://www.ibm.com/support/fixcentral/
20%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
21BuildRequires: rpmbuild(macros) >= 1.379
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The IBM Tape Device Driver, lin_tape, product is a device driver that
26provides attachment for the IBM TotalStorage and System Storage tape
27devices to Linux compatible platforms.
28
29%package -n kernel%{_alt_kernel}-scsi-lin_tape
30Summary: IBM Tape SCSI Device Driver for Linux
31Release: %{rel}@%{_kernel_ver_str}
32Group: Base/Kernel
33Requires(post,postun): /sbin/depmod
34%if %{with dist_kernel}
35%requires_releq_kernel
36Requires(postun): %releq_kernel
37%endif
38
39%description -n kernel%{_alt_kernel}-scsi-lin_tape
954255bc
MM
40The IBM Tape Device Driver is a device driver that provides attachment
41for the IBM TotalStorage and System Storage tape devices to Linux
42compatible platforms.
b5818c49
JR
43
44%prep
45%setup -q -n %{pname}-%{version}
46%patch0 -p1
dbbe8553
JR
47%if "%{_alt_kernel}" == "%{nil}"
48%patch1 -p1
49%endif
b5818c49
JR
50%ifarch %ix86 ia64
51proc="Intel"
52%endif
53%ifarch %x8664
54proc="AMD"
55%endif
56%ifarch ppc ppc64 powerpc powerpc64
57proc="pSeries"
58%endif
59%ifarch s390 s390x
60proc="zSeries"
61%endif
62
63%{__cp} -af lin_tape_359X_${proc}.ReadMe lin_tape_359X.ReadMe
64%{__cp} -af lin_tape_Ultrium_${proc}.ReadMe lin_tape_Ultrium.ReadMe
65
66%{__mv} Makefile Makefile.IBM
67%{__cp} -af Makefile.GPL Makefile
68
69%build
70%build_kernel_modules -m lin_tape
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
75%install_kernel_modules -m lin_tape -d kernel/drivers/scsi
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%post -n kernel%{_alt_kernel}-scsi-lin_tape
81%depmod %{_kernel_ver}
82
83%postun -n kernel%{_alt_kernel}-scsi-lin_tape
84%depmod %{_kernel_ver}
85
86%files -n kernel%{_alt_kernel}-scsi-lin_tape
87%defattr(644,root,root,755)
88%doc lin_tape.fixlist lin_tape_Ultrium.ReadMe lin_tape_359X.ReadMe
89/lib/modules/%{_kernel_ver}/kernel/drivers/scsi/lin_tape.ko*
This page took 0.270816 seconds and 4 git commands to generate.