e1640f7
Name:          clpbar
e1640f7
Version:       1.10.9
e1640f7
Release:       3%{?dist}
e1640f7
Summary:       Show information about a data transfer
e1640f7
e1640f7
Group:         Applications/System
e1640f7
License:       LGPLv2+
e1640f7
URL:           http://clpbar.sourceforge.net/
e1640f7
Source0:       http://downloads.sourceforge.net/%{name}/bar_%{version}.tar.gz
e1640f7
Source1:       clpbar.1.in
e1640f7
Patch0:        bar-1.10.9-clpbar.patch
e1640f7
Patch1:        bar-1.10.9-Makefile.patch
e1640f7
e1640f7
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
e1640f7
e1640f7
BuildRequires: automake
e1640f7
BuildRequires: autoconf
e1640f7
e1640f7
%description
e1640f7
Bar is a simple tool to process a stream of data and print a display for the
e1640f7
user on stderr showing (a) the amount of data passed, (b) the throughput of the
e1640f7
data transfer, and, if the total size of the data stream is known, (c)
e1640f7
estimated time remaining, percent complete, and a progress bar.  Bar was
e1640f7
originally written for the purpose of estimating the amount of time needed to
e1640f7
transfer large amounts (many, many gigabytes) of data across a network.
e1640f7
(Usually in an SSH/tar pipe.)
e1640f7
e1640f7
%prep
e1640f7
%setup -q -n bar-%{version}
e1640f7
%patch0 -p1
e1640f7
%patch1 -p1
e1640f7
cp %{SOURCE1} .
e1640f7
./autogen
e1640f7
e1640f7
%build
e1640f7
%configure
e1640f7
make %{?_smp_mflags}
e1640f7
e1640f7
%check
e1640f7
make check
e1640f7
e1640f7
%install
e1640f7
rm -rf %{buildroot}
e1640f7
make install DESTDIR=%{buildroot}
e1640f7
e1640f7
%clean
e1640f7
rm -rf %{buildroot}
e1640f7
e1640f7
%files
e1640f7
%defattr(-,root,root,-)
e1640f7
%doc AUTHORS COPYING ChangeLog TODO TROUBLESHOOTING
e1640f7
%{_bindir}/clpbar
e1640f7
%{_mandir}/man1/clpbar.1.gz
e1640f7
e1640f7
%changelog
e1640f7
* Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 1.10.9-3
e1640f7
- Fix empty debuginfo package (#560176)
e1640f7
e1640f7
* Mon Feb 01 2010 David Cantrell <dcantrell@redhat.com> - 1.10.9-2
e1640f7
- Rename binary to 'clpbar' and man page to 'clpbar.1' (#560176)
e1640f7
e1640f7
* Fri Jan 29 2010 David Cantrell <dcantrell@redhat.com> - 1.10.9-1
e1640f7
- Initial package