]>
Commit | Line | Data |
---|---|---|
1 | Summary: Kernel dropped packet monitor | |
2 | Name: dropwatch | |
3 | Version: 1.4 | |
4 | Release: 7 | |
5 | License: GPL v2+ | |
6 | Group: Applications/System | |
7 | Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2 | |
8 | # Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf | |
9 | Patch0: np-Werror.patch | |
10 | URL: http://fedorahosted.org/dropwatch | |
11 | BuildRequires: binutils-devel | |
12 | BuildRequires: libnl-devel | |
13 | BuildRequires: linux-libc-headers | |
14 | BuildRequires: pkgconfig | |
15 | BuildRequires: readline-devel | |
16 | BuildRequires: sed >= 4.0 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | dropwatch is an utility to interface to the kernel to monitor for | |
21 | dropped network packets. | |
22 | ||
23 | %prep | |
24 | %setup -q | |
25 | %patch0 -p1 | |
26 | ||
27 | cd src | |
28 | %{__sed} -i -e 's,gcc,$(CC),g' Makefile | |
29 | %{__sed} -i -e '/^CFLAGS/ s/$/ $(EXTRA_CFLAGS)/' Makefile | |
30 | %{__sed} -i -e '/^LDFLAGS/ s/$/ $(EXTRA_LDFLAGS)/' Makefile | |
31 | ||
32 | %build | |
33 | %{__make} -C src \ | |
34 | CC="%{__cc}" \ | |
35 | EXTRA_CFLAGS="%{rpmcflags}" \ | |
36 | EXTRA_LDFLAGS="%{rpmldflags}" | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
41 | install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir} | |
42 | cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc README | |
50 | %attr(755,root,root) %{_bindir}/* | |
51 | %{_mandir}/man1/* |