]> git.pld-linux.org Git - packages/dropwatch.git/blame - dropwatch.spec
- rebuild with readline 7.0
[packages/dropwatch.git] / dropwatch.spec
CommitLineData
a4964fd5 1Summary: Kernel dropped packet monitor
cd02b9fb 2Summary(pl.UTF-8): Monitor pakietów odrzuconych przez jądro
a4964fd5
JK
3Name: dropwatch
4Version: 1.4
a67b3ab7 5Release: 9
5258d031
ER
6License: GPL v2+
7Group: Applications/System
a4964fd5
JK
8Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2
9# Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf
e94c6c53 10Patch0: np-Werror.patch
cd02b9fb 11URL: https://fedorahosted.org/dropwatch
a4964fd5 12BuildRequires: binutils-devel
8e58d10b 13BuildRequires: libnl-devel >= 3.2
a4964fd5
JK
14BuildRequires: linux-libc-headers
15BuildRequires: pkgconfig
16BuildRequires: readline-devel
5258d031 17BuildRequires: sed >= 4.0
a4964fd5
JK
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21dropwatch is an utility to interface to the kernel to monitor for
22dropped network packets.
23
cd02b9fb
JB
24%description -l pl.UTF-8
25dropwatch to narzędzie współpracujące z jądrem w celu monitorowania
26odrzuconych pakietów sieciowych.
27
a4964fd5
JK
28%prep
29%setup -q
e94c6c53 30%patch0 -p1
a4964fd5 31
a4964fd5 32cd 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
44rm -rf $RPM_BUILD_ROOT
5258d031
ER
45install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
46install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir}
47cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
a4964fd5
JK
48
49%clean
50rm -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*
This page took 0.123455 seconds and 4 git commands to generate.