]> git.pld-linux.org Git - packages/lin_tape.git/blame_incremental - lin_tape.spec
- up to 3.0.66, builds up to kernel 5.15
[packages/lin_tape.git] / lin_tape.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_with verbose # verbose build (V=1)
4
5# nothing to be placed to debuginfo package
6%define _enable_debug_packages 0
7
8%define rel 1
9%define pname lin_tape
10Summary: IBM Tape SCSI Device Driver for Linux
11Name: %{pname}%{_alt_kernel}
12Version: 3.0.66
13Release: %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
14License: GPL v2/LGPL
15Group: Base/Kernel
16Source0: %{pname}-%{version}.tgz
17# Source0-md5: 736c967d1d2a62023809b54f2328a9cc
18Source1: %{pname}.fixlist
19Patch0: use-module-dir.patch
20Patch1: clean-ifdefs.patch
21# System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
22URL: http://www.ibm.com/support/fixcentral/
23BuildRequires: rpmbuild(macros) >= 1.701
24%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28The IBM Tape Device Driver, lin_tape, product is a device driver that
29provides attachment for the IBM TotalStorage and System Storage tape
30devices to Linux compatible platforms.
31
32%define kernel_pkg()\
33%package -n kernel%{_alt_kernel}-scsi-lin_tape\
34Summary: IBM Tape SCSI Device Driver for Linux\
35Release: %{rel}@%{_kernel_ver_str}\
36Group: Base/Kernel\
37Requires(post,postun): /sbin/depmod\
38%requires_releq_kernel\
39Requires(postun): %releq_kernel\
40\
41%description -n kernel%{_alt_kernel}-scsi-lin_tape\
42The IBM Tape Device Driver is a device driver that provides attachment\
43for the IBM TotalStorage and System Storage tape devices to Linux\
44compatible platforms.\
45\
46%post -n kernel%{_alt_kernel}-scsi-lin_tape\
47%depmod %{_kernel_ver}\
48\
49%postun -n kernel%{_alt_kernel}-scsi-lin_tape\
50%depmod %{_kernel_ver}\
51\
52%files -n kernel%{_alt_kernel}-scsi-lin_tape\
53%defattr(644,root,root,755)\
54%doc lin_tape.fixlist lin_tape.ReadMe\
55/lib/modules/%{_kernel_ver}/kernel/drivers/scsi/lin_tape.ko*\
56%{nil}
57
58%define build_kernel_pkg()\
59%build_kernel_modules -m lin_tape\
60%install_kernel_modules -D installed -m lin_tape -d kernel/drivers/scsi\
61%{nil}
62
63%{expand:%create_kernel_packages}
64
65%prep
66%setup -q -n %{pname}-%{version}
67%undos Makefile
68%patch0 -p1
69%patch1 -p1
70
71install -p %{SOURCE1} .
72
73%build
74%{expand:%build_kernel_packages}
75
76%install
77rm -rf $RPM_BUILD_ROOT
78install -d $RPM_BUILD_ROOT
79
80cp -a installed/* $RPM_BUILD_ROOT
81
82%clean
83rm -rf $RPM_BUILD_ROOT
This page took 0.125642 seconds and 5 git commands to generate.