]> git.pld-linux.org Git - packages/dropwatch.git/blame_incremental - dropwatch.spec
- drop Werror
[packages/dropwatch.git] / dropwatch.spec
... / ...
CommitLineData
1Summary: Kernel dropped packet monitor
2Name: dropwatch
3Version: 1.4
4Release: 7
5License: GPL v2+
6Group: Applications/System
7Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2
8# Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf
9Patch0: np-Werror.patch
10URL: http://fedorahosted.org/dropwatch
11BuildRequires: binutils-devel
12BuildRequires: libnl-devel
13BuildRequires: linux-libc-headers
14BuildRequires: pkgconfig
15BuildRequires: readline-devel
16BuildRequires: sed >= 4.0
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
25%patch0 -p1
26
27cd src
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 \
34 CC="%{__cc}" \
35 EXTRA_CFLAGS="%{rpmcflags}" \
36 EXTRA_LDFLAGS="%{rpmldflags}"
37
38%install
39rm -rf $RPM_BUILD_ROOT
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
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.022361 seconds and 4 git commands to generate.