File mbuffer.spec of Package mbuffer
# vim: set ts=4 sw=4 et:
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: mbuffer
Version: 20121111
Release: 0
Summary: Replacement for "buffer" with many more Features
Source: http://www.maier-komor.de/software/mbuffer/mbuffer-%{version}.tgz
Patch1: mbuffer-fix_pointer_cast.patch
URL: http://www.maier-komor.de/software/mbuffer/
Group: Productivity/Text/Utilities
License: GPL-3.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: openssl-devel make gcc glibc-devel glibc-devel mhash-devel
BuildRequires: libtool
%description
mbuffer is a raplacement for buffer with additional functionality:
- display of I/O speed
- optional use of memory mapped I/O for huge buffers
- multithreaded instead of sharedmemory ipc
- multi volume support
- autoloader support
- networking support
- compatible command-line options
%prep
%setup -q
%patch1
%build
%configure \
--enable-md5 \
--disable-debug
%__make %{?_smp_flags} SHELL=/bin/sh
%install
%__install -D -m 0755 mbuffer "%{buildroot}%{_bindir}/mbuffer"
%__install -D -m 0644 mbuffer.1 "%{buildroot}%{_mandir}/man1/mbuffer.1"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog LICENSE NEWS README
%{_bindir}/mbuffer
%doc %{_mandir}/man1/mbuffer.1*
%changelog