]> git.pld-linux.org Git - packages/dropwatch.git/blame - dropwatch.spec
- release 3 (by relup.sh)
[packages/dropwatch.git] / dropwatch.spec
CommitLineData
a4964fd5
JK
1Summary: Kernel dropped packet monitor
2Name: dropwatch
3Version: 1.4
adc4e104 4Release: 3
5258d031
ER
5License: GPL v2+
6Group: Applications/System
a4964fd5
JK
7Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2
8# Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf
a4964fd5
JK
9URL: http://fedorahosted.org/dropwatch
10BuildRequires: binutils-devel
11BuildRequires: libnl-devel
12BuildRequires: linux-libc-headers
13BuildRequires: pkgconfig
14BuildRequires: readline-devel
5258d031 15BuildRequires: sed >= 4.0
a4964fd5
JK
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19dropwatch is an utility to interface to the kernel to monitor for
20dropped network packets.
21
22%prep
23%setup -q
24
a4964fd5 25cd src
5258d031
ER
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}
a4964fd5
JK
36
37%install
38rm -rf $RPM_BUILD_ROOT
5258d031
ER
39install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
40install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir}
41cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
a4964fd5
JK
42
43%clean
44rm -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.097016 seconds and 4 git commands to generate.