]> git.pld-linux.org Git - packages/dropwatch.git/blob - dropwatch.spec
- release 5 (by relup.sh)
[packages/dropwatch.git] / dropwatch.spec
1 Summary:        Kernel dropped packet monitor
2 Name:           dropwatch
3 Version:        1.4
4 Release:        5
5 License:        GPL v2+
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)
17
18 %description
19 dropwatch is an utility to interface to the kernel to monitor for
20 dropped network packets.
21
22 %prep
23 %setup -q
24
25 cd src
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
29
30 %build
31 %{__make} -C src \
32         CC="%{__cc}"
33         EXTRA_CFLAGS="%{rpmcflags}" \
34         EXTRA_LDFLAGS="%{rpmldflags}" \
35         %{nil}
36
37 %install
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
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc README
49 %attr(755,root,root) %{_bindir}/*
50 %{_mandir}/man1/*
This page took 0.06815 seconds and 3 git commands to generate.