- rebuild with binutils 2.29
[packages/dropwatch.git] / dropwatch.spec
1 Summary:        Kernel dropped packet monitor
2 Summary(pl.UTF-8):      Monitor pakietów odrzuconych przez jądro
3 Name:           dropwatch
4 Version:        1.4
5 Release:        12
6 License:        GPL v2+
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 # dead
12 #URL:           https://fedorahosted.org/dropwatch
13 # is it "main" fork?
14 URL:            https://github.com/garekkream/dropwatch
15 BuildRequires:  binutils-devel
16 BuildRequires:  libnl-devel >= 3.2
17 BuildRequires:  linux-libc-headers
18 BuildRequires:  pkgconfig
19 BuildRequires:  readline-devel
20 BuildRequires:  sed >= 4.0
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 dropwatch is an utility to interface to the kernel to monitor for
25 dropped network packets.
26
27 %description -l pl.UTF-8
28 dropwatch to narzędzie współpracujące z jądrem w celu monitorowania
29 odrzuconych pakietów sieciowych.
30
31 %prep
32 %setup -q
33 %patch0 -p1
34
35 cd src
36 %{__sed} -i -e 's,gcc,$(CC),g' Makefile
37 %{__sed} -i -e '/^CFLAGS/ s/$/ $(EXTRA_CFLAGS)/' Makefile
38 %{__sed} -i -e '/^LDFLAGS/ s/$/ $(EXTRA_LDFLAGS)/' Makefile
39
40 %build
41 %{__make} -C src \
42         CC="%{__cc}" \
43         EXTRA_CFLAGS="%{rpmcflags}" \
44         EXTRA_LDFLAGS="%{rpmldflags}"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
49 install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir}
50 cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README
58 %attr(755,root,root) %{_bindir}/dropwatch
59 %{_mandir}/man1/dropwatch.1*
This page took 0.047637 seconds and 3 git commands to generate.