]>
Commit | Line | Data |
---|---|---|
1 | Summary: Kernel dropped packet monitor | |
2 | Name: dropwatch | |
3 | Version: 1.4 | |
4 | Release: 1 | |
5 | Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2 | |
6 | # Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf | |
7 | License: GPLv2+ | |
8 | Group: Applications/System | |
9 | URL: http://fedorahosted.org/dropwatch | |
10 | BuildRequires: binutils-devel | |
11 | BuildRequires: libnl-devel | |
12 | BuildRequires: linux-libc-headers | |
13 | BuildRequires: pkgconfig | |
14 | BuildRequires: readline-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | dropwatch is an utility to interface to the kernel to monitor for | |
19 | dropped network packets. | |
20 | ||
21 | %prep | |
22 | %setup -q | |
23 | ||
24 | %build | |
25 | cd src | |
26 | export CFLAGS=$RPM_OPT_FLAGS | |
27 | %{__make} | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | install -d $RPM_BUILD_ROOT%{_bindir} | |
32 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
33 | install src/dropwatch $RPM_BUILD_ROOT%{_bindir} | |
34 | install doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc README | |
42 | %attr(755,root,root) %{_bindir}/* | |
43 | %{_mandir}/man1/* |