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