1 Summary: Kernel dropped packet monitor
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)
20 dropwatch is an utility to interface to the kernel to monitor for
21 dropped network packets.
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
35 EXTRA_CFLAGS="%{rpmcflags}" \
36 EXTRA_LDFLAGS="%{rpmldflags}"
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
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
50 %attr(755,root,root) %{_bindir}/*