]> git.pld-linux.org Git - packages/lin_tape.git/blame - lin_tape.spec
- started update to 3.0.8
[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
cb517b28 8%define rel 0.1
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
bc5f1107 20Patch1: linux-3.19.patch
f2747b63 21Patch2: insecure-perms.patch
b5818c49
JR
22# System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
23URL: http://www.ibm.com/support/fixcentral/
616d29c6
JR
24BuildRequires: rpmbuild(macros) >= 1.701
25%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
b5818c49
JR
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29The IBM Tape Device Driver, lin_tape, product is a device driver that
30provides attachment for the IBM TotalStorage and System Storage tape
31devices to Linux compatible platforms.
32
d7fb0fa1
JR
33%define kernel_pkg()\
34%package -n kernel%{_alt_kernel}-scsi-lin_tape\
35Summary: IBM Tape SCSI Device Driver for Linux\
36Release: %{rel}@%{_kernel_ver_str}\
37Group: Base/Kernel\
38Requires(post,postun): /sbin/depmod\
d7fb0fa1
JR
39%requires_releq_kernel\
40Requires(postun): %releq_kernel\
d7fb0fa1
JR
41\
42%description -n kernel%{_alt_kernel}-scsi-lin_tape\
43The IBM Tape Device Driver is a device driver that provides attachment\
44for the IBM TotalStorage and System Storage tape devices to Linux\
45compatible platforms.\
46\
47%post -n kernel%{_alt_kernel}-scsi-lin_tape\
48%depmod %{_kernel_ver}\
49\
50%postun -n kernel%{_alt_kernel}-scsi-lin_tape\
51%depmod %{_kernel_ver}\
52\
53%files -n kernel%{_alt_kernel}-scsi-lin_tape\
54%defattr(644,root,root,755)\
55%doc lin_tape.fixlist lin_tape_Ultrium.ReadMe lin_tape_359X.ReadMe\
56/lib/modules/%{_kernel_ver}/kernel/drivers/scsi/lin_tape.ko*\
57%{nil}
b5818c49 58
d7fb0fa1
JR
59%define build_kernel_pkg()\
60%build_kernel_modules -m lin_tape\
61%install_kernel_modules -D installed -m lin_tape -d kernel/drivers/scsi\
62%{nil}
63
616d29c6 64%{expand:%create_kernel_packages}
b5818c49
JR
65
66%prep
67%setup -q -n %{pname}-%{version}
68%patch0 -p1
dbbe8553 69%patch1 -p1
f2747b63 70%patch2 -p1
dcba2e27 71%ifarch %{ix86} ia64
b5818c49
JR
72proc="Intel"
73%endif
dcba2e27 74%ifarch %{x8664} x32
b5818c49
JR
75proc="AMD"
76%endif
77%ifarch ppc ppc64 powerpc powerpc64
78proc="pSeries"
79%endif
80%ifarch s390 s390x
81proc="zSeries"
82%endif
83
84%{__cp} -af lin_tape_359X_${proc}.ReadMe lin_tape_359X.ReadMe
85%{__cp} -af lin_tape_Ultrium_${proc}.ReadMe lin_tape_Ultrium.ReadMe
86
87%{__mv} Makefile Makefile.IBM
88%{__cp} -af Makefile.GPL Makefile
89
90%build
616d29c6 91%{expand:%build_kernel_packages}
b5818c49
JR
92
93%install
94rm -rf $RPM_BUILD_ROOT
d7fb0fa1 95install -d $RPM_BUILD_ROOT
b5818c49 96
d7fb0fa1 97cp -a installed/* $RPM_BUILD_ROOT
b5818c49
JR
98
99%clean
100rm -rf $RPM_BUILD_ROOT
This page took 0.039763 seconds and 4 git commands to generate.