summaryrefslogtreecommitdiffstats
path: root/bwm-ng.spec
blob: 52951f8601ba309c51d7cc69c3dbdef578aa080d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
Name:           bwm-ng
Version:        0.6
Release:        13%{?dist}
Summary:        Bandwidth Monitor NG
License:        GPLv2+
URL:            http://www.volker-gropp.de/?id=projects&sub=bwm-ng
Source0:        http://www.volker-gropp.de/bwm-ng/%{name}-%{version}.tar.gz
Source1:        bwm-ng.conf
Requires:       hostname
Requires:       procps
BuildRequires:  libstatgrab-devel
BuildRequires:  ncurses-devel

%description
A small and simple console-based live network and disk io bandwidth monitor.

Features:
- Supports /proc/net/dev, netstat, getifaddr, sysctl, kstat, /proc/diskstats 
/proc/partitions, IOKit, devstat and libstatgrab
- Unlimited number of interfaces/devices supported
- Interfaces/devices are added or removed dynamically from list
- White-/blacklist of interfaces/devices
- Output of KB/s, Kb/s, packets, errors, average, max and total sum
- Output in curses, plain console, CSV or HTML
- Configfile

%prep
%setup -q

%build
%configure --enable-64bit \
	--enable-netstatbyte \
	--enable-netstatlink \
	--with-ncurses \
	--with-time \
	--with-getopt_long \
	--with-getifaddrs \
	--with-sysctl \
	--with-procnetdev \
	--with-libstatgrab \
	--with-netstatlinux \
	--without-strip
make %{?_smp_mflags}

%install
install -pDm755 src/bwm-ng %{buildroot}%{_bindir}/bwm-ng
install -pDm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/bwm-ng.conf
install -pDm644 bwm-ng.1 %{buildroot}%{_mandir}/man1/bwm-ng.1

%files
%doc AUTHORS README ChangeLog bwm-ng.conf-example bwm-ng.css
%config(noreplace) %{_sysconfdir}/bwm-ng.conf
%{_bindir}/bwm-ng
%{_mandir}/man1/bwm-ng.1*

%changelog
* Sun Oct 13 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.6-13
- Fix spec-file corruption caused by previous patch.

* Mon Sep 16 2013 Christopher Meng <rpm@cicku.me> - 0.6-12
- Rebuild for libstatgrab(BZ#1008278).

* Tue Aug 13 2013 Oliver Falk <oliver@linux-kernel.at> - 0.6-11.1
- Rebuild against new libstatgrab

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Tue Jan 24 2012 Oliver Falk <oliver@linux-kernel.at> - 0.6-8
- Require hostname instead of net-tools (BZ#784368)

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Wed Feb 13 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.6-3
- Bump-n-build for GCC 4.3

* Tue Aug 21 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.6-2
- Rebuild for BuildID
- License clarification 

* Fri Mar 16 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.6-1
- Update
- Filename change: changelog -> ChangeLog
- Removed tag at start of spec (since I don't use it)

* Thu Jan 25 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.5-9
- Added noreplace to config, as per rpmlint warning
- Removed a couple spaces which triggered spaces/tabs rpmlint warning
- Fixed project URL

* Wed Oct 04 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.5-8
- Bump-n-build

* Tue Sep 19 2006 Patrick "Jima" Laughton <jima@beer.tclug.org>	- 0.5-7
- Bump for FC6 rebuild

* Fri Aug 12 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-6
- Rebuild against libstatgrab 0.12

* Thu Jul 14 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-5
- Integrated Matthias changes, after his review

* Thu May 19 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-4.2
- Specfile cleanup

* Fri Mar 25 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-4.1
- Check with lint says: bwm-ng hardcoded-packager-tag Oliver: FIXED

* Wed Mar 16 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-4
- Fix, still build pre1 :-/

* Wed Mar 16 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-3
- Update to real 0.5, not only 0.5pre1

* Tue Feb 15 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-2
- Make use of libstatgrab, by using it in the default config

* Tue Feb 15 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.5-1
- Fix warnings spotted by rpmlint
- Update
- Update dependencies and add various configure switches, so this
  little thingy is no longer _little_ :-)

* Tue Oct 19 2004 Oliver Falk <oliver@linux-kernel.at>		- 0.4-pre1-1
- Initial package