-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpv.spec
56 lines (47 loc) · 1.66 KB
/
pv.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Conditional build:
%bcond_without tests # build without tests
Summary: Pipe Viewer - tool for monitoring the progress of data through a pipeline
Summary(pl.UTF-8): Pipe Viewer - monitorowanie przepływu danych przez potok
Name: pv
Version: 1.9.31
Release: 1
License: GPL v3+
Group: Applications
Source0: https://www.ivarch.com/programs/sources/%{name}-%{version}.tar.gz
# Source0-md5: 9ea909b3dade3f3fba407a03c01a9bcf
URL: http://www.ivarch.com/programs/pv.shtml
BuildRequires: gettext-tools >= 0.21
# the unit tests call usleep(1)
BuildRequires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Pipe Viewer is a terminal-based tool for monitoring the progress of
data through a pipeline. It can be inserted into any normal pipeline
between two processes to give a visual indication of how quickly data
is passing through, how long it has taken, how near to completion it
is, and an estimate of how long it will be until completion.
%description -l pl.UTF-8
Pipe Viewer jest tekstowym narzędziem do monitorowania przepływu
danych przez potok. Może być wstawiony w dowolny potok pomiędzy dwa
procesy w celu wizualizacji prędkości z jaką dane przepływają pomiędzy
nimi, ile czasu im to zajmuje, ile jeszcze zostało do ukończenia i ile
mniej więcej czasu to będzie trwało.
%prep
%setup -q
%build
%configure
%{__make}
%{?with_test:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README.md docs/{ACKNOWLEDGEMENTS,DEVELOPERS,NEWS}.md
%attr(755,root,root) %{_bindir}/pv
%{_mandir}/man1/pv.1*