add packaging
[platform/upstream/tcpdump.git] / packaging / tcpdump.spec
1 Name:           tcpdump
2 Version:        4.3.0
3 Release:        0
4 License:        BSD-3-Clause
5 Summary:        A Packet Sniffer
6 Url:            http://www.tcpdump.org/
7 Group:          Productivity/Networking/Diagnostic
8 Source:         http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
9 Source1:        tcpdump-qeth
10 Patch0:         tcpdump-4.0.0-prototypes.patch
11 Patch2:         tcpdump-4.0.0-aliasing.patch
12 Patch3:         tcpdump-4.0.0-uninitialized.patch
13 BuildRequires:  libpcap-devel
14 BuildRequires:  libsmi-devel
15 BuildRequires:  openssl-devel
16
17 %description
18 This program can "read" all or only certain packets going over the
19 ethernet. It can be used to debug specific network problems.
20
21 %prep
22 %setup -q
23 %patch0
24 %patch2
25 %patch3
26
27 %build
28 export CFLAGS="%{optflags} -Wall -DGUESS_TSO -fstack-protector -fno-strict-aliasing"
29 %configure \
30   --enable-ipv6
31 make
32
33 %install
34 %make_install
35
36 %files
37 %defattr(-,root,root)
38 %doc LICENSE README *.awk
39 %doc %{_mandir}/man?/*
40 %{_sbindir}/*
41
42 %changelog