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 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 BuildRequires: sed >= 4.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 dropwatch is an utility to interface to the kernel to monitor for
20 dropped network packets.
26 %{__sed} -i -e 's,gcc,$(CC),g' Makefile
27 %{__sed} -i -e '/^CFLAGS/ s/$/ $(EXTRA_CFLAGS)/' Makefile
28 %{__sed} -i -e '/^LDFLAGS/ s/$/ $(EXTRA_LDFLAGS)/' Makefile
33 EXTRA_CFLAGS="%{rpmcflags}" \
34 EXTRA_LDFLAGS="%{rpmldflags}" \
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
40 install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir}
41 cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %attr(755,root,root) %{_bindir}/*