1 |
Summary: Tools for Iomega JAZ and ZIP drives |
2 |
Name: ziptool |
3 |
Version: 1.4.0 |
4 |
Release: %mkrel 7 |
5 |
License: GPL |
6 |
Group: Archiving/Backup |
7 |
Url: http://wolfpack.twu.net/utilities.html#ziptool |
8 |
Source0: ftp://wolfpack.twu.net/users/wolfpack/%{name}-%{version}.tar.bz2 |
9 |
Patch0: ziptool-1.4.0-build-fix-private-scsi-define.patch |
10 |
Patch1: ziptool-1.4.0-format-security.patch |
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
12 |
BuildRequires: kernel-source-latest |
13 |
|
14 |
%description |
15 |
Medium protection is done by software for Iomega's JAZ and ZIP drives. |
16 |
jaztool and ziptool make this features available for Linux. |
17 |
|
18 |
%prep |
19 |
%setup -q |
20 |
%patch0 -p1 -b .build-fix-private-scsi-define |
21 |
%patch1 -p1 -b .format-security |
22 |
%{__gzip} -d %{name}.1.gz |
23 |
|
24 |
%build |
25 |
%make CFLAGS="$RPM_OPT_FLAGS -s" |
26 |
|
27 |
%install |
28 |
%{__rm} -rf $RPM_BUILD_ROOT |
29 |
%{__install} -m755 %{name} -D $RPM_BUILD_ROOT%{_bindir}/%{name} |
30 |
%{__install} -m644 %{name}.1 -D $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 |
31 |
|
32 |
%clean |
33 |
%{__rm} -rf $RPM_BUILD_ROOT |
34 |
|
35 |
%files |
36 |
%defattr(644,root,root,755) |
37 |
%doc README |
38 |
%{_mandir}/man1/%{name}.1* |
39 |
%defattr(755,root,root,755) |
40 |
%{_bindir}/%{name} |
41 |
|
42 |
|