File clpbar.spec of Package clpbar

#
# spec file for package clpbar
#

# norootforbuild

Name:           clpbar
Version:	1.11.1
Release:	5
License:	GPL v2 only
Summary:	A bar
Url:		http://clpbar.sourceforge.net/
Group:		System/Console
#Source:	http://sourceforge.net/projects/clpbar/files/clpbar/bar-1.11.1/bar_1.11.1.tar.gz
Source:		bar_%{version}.tar.gz
#Patch:
BuildRequires:	make gcc
BuildRequires:	autoconf automake libtool
#PreReq:
#Provides:
#BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildRoot:      /var/tmp/%{name}-%{version}

%description
Bar is a simple tool to copy a stream of data and print a display for the user on stderr showing (a) the amount of data passed, (b) the throughput of the data transfer, and (c) the transfer time, or, if the total size of the data stream is known, the estimated time remaining, what percentage of the data transfer has been completed, and a progress bar.

Bar was originally written for the purpose of estimating the amount of time needed to transfer large amounts (many, many gigabytes) of data across a network. (Usually in an SSH/tar pipe.) 

# only enable if the flag is disabled in OpenSuseBuildService project settings
# if both are set to off, it's off
# if both are on, build will fail
#%debug_package

%prep
#%setup -n "bar_%{version}"
%setup -n "bar-%{version}"

%build
%configure
#make %{?_smp_mflags}
make

%install
#make install DESTDIR="%{buildroot}"
%make_install

#%clean
#%{?buildroot:%__rm -rf "%{buildroot}"}
#
#%post
#
#%postun

%files
%defattr(-,root,root)
#/usr/bin/bar
%{_bindir}/bar
#%{_mandir}/man1/bar.1%{ext_man}
#%config /etc/foo
#%config(noreplace) /etc/foo

# auszeichnen als Dokumentation, aber voller Pfad bleibt erhalten
%doc %{_mandir}/man1/bar.1*

# diese Dateien nach /usr/share/doc/packages/%{name}
#%doc ChangeLog README COPYING

# Alternative in OpenSuseBuildService
# leere changelog section und clpbar.changes file
# editieren mit
# osc vc

%changelog