]> git.pld-linux.org Git - packages/tcpdump.git/blobdiff - tcpdump.spec
- add pcap_debug.patch (fix for gcc-3.4.3)
[packages/tcpdump.git] / tcpdump.spec
index 54ed00b0bb1761cea4d4424e82a962d33c8aaabd..0a4d80218bca6b6c6296641cd4f6fe3c85787c0a 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without libsmi  # Build without SMI support
+#
 Summary:       dumps packets that are sent or received over a network interface
 Summary(de):   deponiert Pakete, die über eine Netzwerkschnittstelle gesandt oder empfangen werden
 Summary(es):   Enseña los paquetes que son enviados o recibidos a través de una interface de red
@@ -8,18 +12,22 @@ Summary(ru): 
 Summary(tr):   Bir að arabirimi üzerinden gelen ya da giden paketleri listeler
 Summary(uk):   ¶ÎÓÔÒÕÍÅÎÔ ÄÌÑ ÍÏΦÔÏÒÉÎÇÕ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ
 Name:          tcpdump
-Version:       3.7.2
-Release:       1
+Version:       3.8.3
+Release:       2
 Epoch:         1
 License:       BSD
 Group:         Applications/Networking
 Source0:       http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: 1e44b59abba39a48e3680bc2cffb8a6a
+# Source0-md5: 30645001f4b97019677cad88d3811904
+Patch0:                %{name}-pcap_debug.patch
 URL:           http://www.tcpdump.org/
-Patch0:                %{name}-ssl.patch
-BuildRequires: libpcap-devel >= 2:0.6.1
-%{!?_without_libsmi:BuildRequires:     libsmi-devel}
-BuildRequires: openssl-devel >= 0.9.7
+BuildRequires: automake
+BuildRequires: libpcap-devel >= 2:0.8.3
+%{?with_libsmi:BuildRequires:  libsmi-devel}
+BuildRequires: openssl-devel >= 0.9.7d
+# beware of tar 1.13.9[12] madness (tarball contains tcpdump-3.8.3/./* paths)
+BuildRequires: tar >= 1:1.13.93
+Requires:      libpcap >= 2:0.8.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -64,17 +72,17 @@ Tcpdump 
 ÂÅÚÐÅËÉ.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 %patch0 -p1
 
 %build
-%configure2_13 \
+cp -f /usr/share/automake/config.* .
+%configure \
        --enable-ipv6
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -84,5 +92,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc CHANGES CREDITS LICENSE README TODO
 %attr(755,root,root) %{_sbindir}/tcpdump
 %{_mandir}/man1/*
This page took 0.13122 seconds and 4 git commands to generate.