]> git.pld-linux.org Git - packages/cpipe.git/blob - cpipe.spec
- added URL.
[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 URL:            http://wsd.iitb.fhg.de/~kir/cpipehome/
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
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.057919 seconds and 3 git commands to generate.