]> git.pld-linux.org Git - packages/dropwatch.git/blame - dropwatch.spec
- release 15 (by relup.sh)
[packages/dropwatch.git] / dropwatch.spec
CommitLineData
a4964fd5 1Summary: Kernel dropped packet monitor
cd02b9fb 2Summary(pl.UTF-8): Monitor pakietów odrzuconych przez jądro
a4964fd5
JK
3Name: dropwatch
4Version: 1.4
984dfbc6 5Release: 15
5258d031
ER
6License: GPL v2+
7Group: Applications/System
a4964fd5
JK
8Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2
9# Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf
e94c6c53 10Patch0: np-Werror.patch
775b3fbe
JB
11# dead
12#URL: https://fedorahosted.org/dropwatch
13# is it "main" fork?
14URL: https://github.com/garekkream/dropwatch
a4964fd5 15BuildRequires: binutils-devel
8e58d10b 16BuildRequires: libnl-devel >= 3.2
a4964fd5
JK
17BuildRequires: linux-libc-headers
18BuildRequires: pkgconfig
19BuildRequires: readline-devel
5258d031 20BuildRequires: sed >= 4.0
a4964fd5
JK
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24dropwatch is an utility to interface to the kernel to monitor for
25dropped network packets.
26
cd02b9fb
JB
27%description -l pl.UTF-8
28dropwatch to narzędzie współpracujące z jądrem w celu monitorowania
29odrzuconych pakietów sieciowych.
30
a4964fd5
JK
31%prep
32%setup -q
e94c6c53 33%patch0 -p1
a4964fd5 34
a4964fd5 35cd src
5258d031
ER
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 \
e94c6c53 42 CC="%{__cc}" \
5258d031 43 EXTRA_CFLAGS="%{rpmcflags}" \
e94c6c53 44 EXTRA_LDFLAGS="%{rpmldflags}"
a4964fd5
JK
45
46%install
47rm -rf $RPM_BUILD_ROOT
5258d031
ER
48install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
49install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir}
50cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
a4964fd5
JK
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc README
8e58d10b
JB
58%attr(755,root,root) %{_bindir}/dropwatch
59%{_mandir}/man1/dropwatch.1*
This page took 0.137932 seconds and 4 git commands to generate.