summaryrefslogtreecommitdiff
path: root/packaging/tcpdump.spec
blob: 8093dc6fe41ead101982f012f9f997f323665ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Name:           tcpdump
Version:        4.3.0
Release:        0
License:        BSD-3-Clause
Summary:        A Packet Sniffer
Url:            http://www.tcpdump.org/
Group:          Productivity/Networking/Diagnostic
Source:         http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
Source1001: 	tcpdump.manifest
BuildRequires:  libpcap-devel
#BuildRequires:  libsmi-devel
BuildRequires:  openssl-devel

%description
This program can "read" all or only certain packets going over the
ethernet. It can be used to debug specific network problems.

%prep
%setup -q
cp %{SOURCE1001} .

%build
export CFLAGS="%{optflags} -Wall -DGUESS_TSO -fstack-protector -fno-strict-aliasing"
%configure \
  --enable-ipv6
make

%install
%make_install

%files
%manifest %{name}.manifest
%defattr(-,root,root)
%doc LICENSE README *.awk
%doc %{_mandir}/man?/*
%{_sbindir}/*

%changelog