]>
Commit | Line | Data |
---|---|---|
ba74914a | 1 | %define _test test2 |
b552bc62 | 2 | Summary: Bytes counter |
eb2ed2be | 3 | Summary(pl.UTF-8): Licznik bajtów |
b552bc62 | 4 | Name: bcount |
531b4d4f | 5 | Version: 1.0 |
531b4d4f | 6 | Release: 0.%{_test}.2 |
b552bc62 | 7 | License: GPL |
ba74914a | 8 | Group: Networking/Utilities |
531b4d4f | 9 | Source0: http://www.deth.org.pl/~alex/bcount/%{name}-%{version}%{_test}.tar.gz |
b552bc62 | 10 | # Source0-md5: af92076cb4dbb870b991b677d0ad3bc2 |
11 | Patch0: %{name}-ncurses.patch | |
12 | URL: http://www.deth.org.pl/~alex/bcount/ | |
13 | BuildRequires: ncurses-devel | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Bytes Counter displays detailed information about the number of bytes | |
18 | and packets that have been transferred over a network interface. | |
19 | ||
693d8bd3 JR |
20 | %description -l pl.UTF-8 |
21 | Bcount jest licznikiem pokazującym informację o bajtach i pakietach | |
22 | przechodzących przez interfejs sieciowy. | |
b552bc62 | 23 | |
24 | %prep | |
531b4d4f | 25 | %setup -q -n %{name}-%{version}%{_test} |
b552bc62 | 26 | %patch0 -p1 |
27 | ||
28 | %build | |
ba74914a ER |
29 | %configure \ |
30 | \ | |
31 | ||
b552bc62 | 32 | %{__make} |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
531b4d4f | 37 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_var}/log} |
b552bc62 | 38 | install bcount $RPM_BUILD_ROOT%{_sbindir} |
39 | ||
531b4d4f | 40 | :> $RPM_BUILD_ROOT%{_var}/log/bcount.log |
b552bc62 | 41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc AUTHORS ChangeLog README TODO README.protocol | |
48 | %doc README.log README.ethx README.fuckyou | |
49 | %attr(755,root,root) %{_sbindir}/* | |
531b4d4f | 50 | %attr(640,root,root) %ghost %{_var}/log/bcount.log |