]> git.pld-linux.org Git - packages/cpipe.git/blob - cpipe.spec
2251e38091009e5d7762b029cf23a70c819c235f
[packages/cpipe.git] / cpipe.spec
1 Summary:        counting pipe
2 Summary(pl):    potok ze zliczaniem
3 Name:           cpipe
4 Version:        2.0.0
5 Release:        1
6 License:        GPL
7 Group:          Applications/Archiving
8 Group(de):      Applikationen/Archivierung
9 Group(pl):      Aplikacje/Archiwizacja
10 Source0:        http://wsd.iitb.fhg.de/~kir/cpipehome/%{name}-%{version}.tar.gz
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
42 %build
43 touch cmdline.c cmdline.h cpipe.1
44 %{__make} CFLAGS="%{rpmcflags}"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_bindir}}
50 install cpipe $RPM_BUILD_ROOT%{_bindir}
51 install cpipe.1 $RPM_BUILD_ROOT%{_mandir}/man1
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_bindir}/*
59 %{_mandir}/man1/*
This page took 0.057268 seconds and 2 git commands to generate.