]> git.pld-linux.org Git - packages/cpipe.git/blame - cpipe.spec
- updated to 3.0.2
[packages/cpipe.git] / cpipe.spec
CommitLineData
f96a0b6f 1Summary: Counting pipe
ea6dcf2f 2Summary(pl.UTF-8): Potok ze zliczaniem
26fbce0d 3Name: cpipe
724ed09c
AG
4Version: 3.0.2
5Release: 1
26fbce0d
SZ
6License: GPL
7Group: Applications/Archiving
edba68b2 8Source0: http://download.berlios.de/cpipe/%{name}-%{version}.tar.gz
724ed09c 9# Source0-md5: a34f2752628c45d52a99dc38b75d89cb
3787f14f 10Patch0: %{name}-make_fix.patch
45397fe8 11URL: http://developer.berlios.de/projects/cpipe/
26fbce0d
SZ
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15Did you ever want to know how fast your tar is or how much data it has
da4b2007 16transferred already. How about using socket or nc to copy files either
17with or without compression over a fast network connection, which one
18is faster?
26fbce0d 19
da4b2007 20If you want to know the answer, use cpipe as a totally unscientific
21approach to measure throughput. Cpipe copies its standard input to its
22standard output while measuring the time it takes to read an input
23buffer and write an output buffer. Statistics of average throughput
24and the total amount of bytes copied are printed to the standard error
25output.
26fbce0d 26
99d5b1b6
JR
27%description -l pl.UTF-8
28Czy kiedykolwiek zastanawiałeś się jak szybki jest Twój tar, lub ile
29danych już zapisał? A co myślisz o kopiowaniu plików przy użyciu
30socketa lub nc, z kompresją lub bez, po szybkiej sieci - jak będzie
da4b2007 31szybciej?
32
99d5b1b6
JR
33Jeśli chcesz znać odpowiedź, użyj cpipe jako całkowicie nienaukowego
34podejścia do pomiaru przepustowości. Cpipe kopiuje standardowe wejście
35na wyjście jednocześnie mierząc czas jaki zajmuje czytanie i
36zapisywanie danych. Statystyki średniej przepustowości i całkowitej
37ilości skopiowanych bajtów są wypisywane na standardowe wyjście
38błędów.
26fbce0d
SZ
39
40%prep
41%setup -q
3787f14f 42%patch0
26fbce0d
SZ
43
44%build
edba68b2 45# workaround not to use clig
26fbce0d 46touch cmdline.c cmdline.h cpipe.1
edba68b2
JB
47
48%{__make} \
49 CC="%{__cc}" \
50 CFLAGS="%{rpmcflags} -Wall"
26fbce0d
SZ
51
52%install
53rm -rf $RPM_BUILD_ROOT
26fbce0d 54install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_bindir}}
a6f2c5d7 55
26fbce0d
SZ
56install cpipe $RPM_BUILD_ROOT%{_bindir}
57install cpipe.1 $RPM_BUILD_ROOT%{_mandir}/man1
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
74056086 64%doc CHANGES
26fbce0d
SZ
65%attr(755,root,root) %{_bindir}/*
66%{_mandir}/man1/*
This page took 0.072257 seconds and 4 git commands to generate.