]> git.pld-linux.org Git - packages/dropwatch.git/blame - dropwatch.spec
- drop Werror
[packages/dropwatch.git] / dropwatch.spec
CommitLineData
a4964fd5
JK
1Summary: Kernel dropped packet monitor
2Name: dropwatch
3Version: 1.4
e94c6c53 4Release: 7
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
e94c6c53 9Patch0: np-Werror.patch
a4964fd5
JK
10URL: http://fedorahosted.org/dropwatch
11BuildRequires: binutils-devel
12BuildRequires: libnl-devel
13BuildRequires: linux-libc-headers
14BuildRequires: pkgconfig
15BuildRequires: readline-devel
5258d031 16BuildRequires: sed >= 4.0
a4964fd5
JK
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20dropwatch is an utility to interface to the kernel to monitor for
21dropped network packets.
22
23%prep
24%setup -q
e94c6c53 25%patch0 -p1
a4964fd5 26
a4964fd5 27cd src
5258d031
ER
28%{__sed} -i -e 's,gcc,$(CC),g' Makefile
29%{__sed} -i -e '/^CFLAGS/ s/$/ $(EXTRA_CFLAGS)/' Makefile
30%{__sed} -i -e '/^LDFLAGS/ s/$/ $(EXTRA_LDFLAGS)/' Makefile
31
32%build
33%{__make} -C src \
e94c6c53 34 CC="%{__cc}" \
5258d031 35 EXTRA_CFLAGS="%{rpmcflags}" \
e94c6c53 36 EXTRA_LDFLAGS="%{rpmldflags}"
a4964fd5
JK
37
38%install
39rm -rf $RPM_BUILD_ROOT
5258d031
ER
40install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
41install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir}
42cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
a4964fd5
JK
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(644,root,root,755)
49%doc README
50%attr(755,root,root) %{_bindir}/*
51%{_mandir}/man1/*
This page took 0.076597 seconds and 4 git commands to generate.