# $Id: buffer.spec,v 1.3 2016/02/07 19:29:59 vip-ire Exp $ Summary: general purpose buffer programm Name: buffer Version: 1.19 Release: 9%{?dist} License: GPL Group: Applications/System Source: http://sunsite.org.uk/public/public/packages/buffer/buffer-1.19.shar Patch0: buffer-1.19.patch Patch1: buffer-largefile.patch Patch2: no_shmat.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This is a program designed to speed up writing tapes on remote tape drives. After startup it splits itself into two processes. The first process reads (and reblocks) from stdin into a shared memory buffer. The second writes from the shared memory buffer to stdout. Doing it this way means that the writing side effectly sits in a tight write loop and doesn't have to wait for input. Similarly for the input side. It is this waiting that slows down other reblocking processes, like dd. %prep %setup -q -c %{name}-%{version} -T sh $RPM_SOURCE_DIR/%{name}-%{version}.shar %patch0 -p1 %patch1 -p1 %patch2 -p1 %build make CFLAGS="$RPM_OPT_FLAGS -Wall -s" %install install -m 755 -D buffer $RPM_BUILD_ROOT%{_bindir}/buffer install -m 644 -D buffer.man $RPM_BUILD_ROOT%{_mandir}/man1/buffer.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING README %{_bindir}/buffer %{_mandir}/man1/buffer.1* %changelog * Sun Feb 7 2016 Daniel Berteaud 1.19-9.sme - Rebase patches so it builds on el7 [SME: 9233] * Sun Feb 7 2016 stephane de Labrusse 1.19-7.sme - Build for sme10 * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Mon Mar 13 2006 Shad L. Lords 1.19-6sme - Remove shmat definition so x86_64 builds correctly * Thu Jun 19 2003 Charlie Brady 1.19-5es - Rebuild in-house to ensure library version compatibility. * Sun Jan 5 2003 Edwin Huffstutler - added O_LARGEFILE * Mon Jul 24 2000 Prospector - rebuilt * Tue Jul 11 2000 Than Ngo - rebuilt * Wed Jun 07 2000 Than Ngo - use rpm macros * Mon Jun 05 2000 Michael Stefaniuc - rewrote the spec file - rewrote and extended the buffer patch