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