1 |
%define debug_package %{nil} |
2 |
Summary: General purpose buffer program |
3 |
Name: buffer |
4 |
Version: 1.19 |
5 |
Release: %mkrel 13 |
6 |
License: GPL |
7 |
Group: Archiving/Backup |
8 |
Source: %name-%version.tar.bz2 |
9 |
Patch0: buffer_1.19-7.patch.bz2 |
10 |
|
11 |
%description |
12 |
This is a program designed to speed up writing tapes on remote tape |
13 |
drives. After startup it splits itself into two processes. The first |
14 |
process reads (and reblocks) from stdin into a shared memory buffer. |
15 |
The second writes from the shared memory buffer to stdout. Doing it this way |
16 |
means that the writing side effectly sits in a tight write loop and |
17 |
doesn't have to wait for input. Similarly for the input side. It is |
18 |
this waiting that slows down other reblocking processes, like dd. |
19 |
|
20 |
%prep |
21 |
rm -rf $RPM_BUILD_ROOT |
22 |
|
23 |
%setup |
24 |
|
25 |
%patch0 -p1 |
26 |
|
27 |
%build |
28 |
make CFLAGS="$RPM_OPT_FLAGS -Wall -s" |
29 |
|
30 |
%install |
31 |
install -m 755 -D buffer $RPM_BUILD_ROOT%{_bindir}/buffer |
32 |
install -m 644 -D buffer.man $RPM_BUILD_ROOT%{_mandir}/man1/buffer.1 |
33 |
|
34 |
%files |
35 |
%doc COPYING README |
36 |
%{_bindir}/buffer |
37 |
%{_mandir}/man1/buffer.1* |