Blob Blame History Raw
Name:		mbuffer
Summary:	Measuring Buffer is an enhanced version of buffer
Version:	20060728
Release:	3%{?dist}
License:	GPL
Group:		Applications/File
URL:		http://www.maier-komor.de/mbuffer.html
Source0:	http://www.maier-komor.de/software/mbuffer/mbuffer-%{version}.tgz
BuildRequires:	mt-st
%{?_with_md5hash:BuildRequires: mhash-devel}
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
Measuring Buffer is an enhanced version of buffer. It features display of
throughput, memory-mapped file I/O for huge buffers, and multithreading.

Available rpmbuild rebuild option : --with md5hash (requires mhash-devel)

%prep
%setup -q
sed -i -e 's|/usr/local||' mbuffer.1.in

%build
# suppress detection of MD5_Init functions if openssl-devel
# is available on build system, let only mhash_init be
# detected if the md5 hash feature is enabled
export ac_cv_search_MD5_Init=no
%configure \
	%{!?_with_md5hash:--disable-md5} \
	--enable-networking
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
install -d %{buildroot}/bin
install -d %{buildroot}%{_mandir}/man1
install -m 755 mbuffer %{buildroot}/bin/mbuffer
install -m 644 mbuffer.1 %{buildroot}%{_mandir}/man1/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README ChangeLog
/bin/mbuffer
%{_mandir}/man1/mbuffer.1*

%changelog
* Tue Aug 29 2006 Alexander Dalloz <alex {%} dalloz {*} de> - 20060728-3
- Rebuild for FC6.

* Thu Aug 10 2006 Alexander Dalloz <alex {%} dalloz {*} de> - 20060728-2
- Removed NEWS from %%doc because free of information.

* Wed Aug 09 2006 Alexander Dalloz <alex {%} dalloz {*} de> - 20060728-1
- Updated to latest version
- Adjusted project URL and Source0.

* Thu Aug 04 2005 Alexander Dalloz <alex {%} dalloz {*} de> - 20050730-3
- Switched over to mhash for md5hash option instead of
  openssl use (thanks Paul Howarth)
- md5hash disabled by default to not link against library in
  /usr/lib, mbuffer usable without /usr mounted.

* Wed Aug 03 2005 Alexander Dalloz <alex {%} dalloz {*} de> - 20050730-2
- Corrected Source0 URL
- Adjusted binary location in man page
- Added BR mt-st and conditional openssl-devel.

* Tue Aug 02 2005 Alexander Dalloz <alex {%} dalloz {*} de> - 20050730-1
- Initial build.