]>
Commit | Line | Data |
---|---|---|
a4964fd5 | 1 | Summary: Kernel dropped packet monitor |
cd02b9fb | 2 | Summary(pl.UTF-8): Monitor pakietów odrzuconych przez jądro |
a4964fd5 JK |
3 | Name: dropwatch |
4 | Version: 1.4 | |
a67b3ab7 | 5 | Release: 9 |
5258d031 ER |
6 | License: GPL v2+ |
7 | Group: Applications/System | |
a4964fd5 JK |
8 | Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2 |
9 | # Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf | |
e94c6c53 | 10 | Patch0: np-Werror.patch |
cd02b9fb | 11 | URL: https://fedorahosted.org/dropwatch |
a4964fd5 | 12 | BuildRequires: binutils-devel |
8e58d10b | 13 | BuildRequires: libnl-devel >= 3.2 |
a4964fd5 JK |
14 | BuildRequires: linux-libc-headers |
15 | BuildRequires: pkgconfig | |
16 | BuildRequires: readline-devel | |
5258d031 | 17 | BuildRequires: sed >= 4.0 |
a4964fd5 JK |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | dropwatch is an utility to interface to the kernel to monitor for | |
22 | dropped network packets. | |
23 | ||
cd02b9fb JB |
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. | |
27 | ||
a4964fd5 JK |
28 | %prep |
29 | %setup -q | |
e94c6c53 | 30 | %patch0 -p1 |
a4964fd5 | 31 | |
a4964fd5 | 32 | cd src |
5258d031 ER |
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 | |
36 | ||
37 | %build | |
38 | %{__make} -C src \ | |
e94c6c53 | 39 | CC="%{__cc}" \ |
5258d031 | 40 | EXTRA_CFLAGS="%{rpmcflags}" \ |
e94c6c53 | 41 | EXTRA_LDFLAGS="%{rpmldflags}" |
a4964fd5 JK |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
5258d031 ER |
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 | |
a4964fd5 JK |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc README | |
8e58d10b JB |
55 | %attr(755,root,root) %{_bindir}/dropwatch |
56 | %{_mandir}/man1/dropwatch.1* |