File cv.spec of Package cv
#
# spec file for package cv
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: cv
Version: 0.7.1
Release: 0
Summary: Coreutils Viewer
License: GPL-3.0+
Group: System/cmd
Url: https://github.com/Xfennec/cv
Source0: http://github.com/Xfennec/cv/archive/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ncurses-devel
%description
This tool can be described as a Tiny Dirty Linux Only* C command that looks for coreutils basic
commands (cp, mv, dd, tar, gzip/gunzip, cat, ...) currently running on your system and displays
the percentage of copied data.
It can now also display an estimated throughput (using -w flag).
%prep
%setup -q -n %{name}-%{version}
%build
make %{?_smp_mflags} CFLAGS="-g -Wall -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS"
%install
make %{?_smp_mflags} PREFIX=%{buildroot}%{_prefix} install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/cv
%{_mandir}/man1/cv.*
%changelog