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