1 Summary: Kernel dropped packet monitor
2 Summary(pl.UTF-8): Monitor pakietów odrzuconych przez jądro
7 Group: Applications/System
8 Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2
9 # Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf
10 Patch0: np-Werror.patch
11 URL: https://fedorahosted.org/dropwatch
12 BuildRequires: binutils-devel
13 BuildRequires: libnl-devel >= 3.2
14 BuildRequires: linux-libc-headers
15 BuildRequires: pkgconfig
16 BuildRequires: readline-devel
17 BuildRequires: sed >= 4.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 dropwatch is an utility to interface to the kernel to monitor for
22 dropped network packets.
24 %description -l pl.UTF-8
25 dropwatch to narzędzie współpracujące z jądrem w celu monitorowania
26 odrzuconych pakietów sieciowych.
33 %{__sed} -i -e 's,gcc,$(CC),g' Makefile
34 %{__sed} -i -e '/^CFLAGS/ s/$/ $(EXTRA_CFLAGS)/' Makefile
35 %{__sed} -i -e '/^LDFLAGS/ s/$/ $(EXTRA_LDFLAGS)/' Makefile
40 EXTRA_CFLAGS="%{rpmcflags}" \
41 EXTRA_LDFLAGS="%{rpmldflags}"
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
46 install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir}
47 cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_bindir}/dropwatch
56 %{_mandir}/man1/dropwatch.1*