2007-01-04 17:28:36 +01:00
|
|
|
#
|
2010-04-06 22:48:57 +02:00
|
|
|
# spec file for package tcpdump (Version 4.1.1)
|
2007-01-04 17:28:36 +01:00
|
|
|
#
|
2010-04-06 22:48:57 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-04 17:28:36 +01:00
|
|
|
#
|
2009-01-19 02:20:11 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-04 17:28:36 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-01-19 02:20:11 +01:00
|
|
|
|
2007-01-04 17:28:36 +01:00
|
|
|
Name: tcpdump
|
2010-04-06 22:48:57 +02:00
|
|
|
Version: 4.1.1
|
2007-07-14 17:31:42 +02:00
|
|
|
Release: 1
|
2008-01-10 03:17:46 +01:00
|
|
|
AutoReqProv: on
|
2010-04-06 22:48:57 +02:00
|
|
|
License: BSD3c
|
2007-01-04 17:28:36 +01:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2008-01-10 03:17:46 +01:00
|
|
|
Url: http://www.tcpdump.org/
|
2007-01-04 17:28:36 +01:00
|
|
|
Summary: A Packet Sniffer
|
2010-04-06 22:48:57 +02:00
|
|
|
Source: tcpdump-%{version}.tar.bz2
|
|
|
|
Source1: tcpdump-qeth
|
|
|
|
Patch0: tcpdump-4.0.0-prototypes.patch
|
|
|
|
Patch2: tcpdump-4.0.0-aliasing.patch
|
|
|
|
Patch3: tcpdump-4.0.0-uninitialized.patch
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libsmi-devel
|
|
|
|
BuildRequires: openssl-devel
|
2007-01-04 17:28:36 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
|
|
|
%patch0
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
|
|
|
|
%build
|
2010-04-06 22:48:57 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wall -DGUESS_TSO -fstack-protector -fno-strict-aliasing"
|
2007-03-03 14:37:07 +01:00
|
|
|
%configure \
|
2009-01-19 02:20:11 +01:00
|
|
|
--enable-ipv6
|
2007-01-04 17:28:36 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
%ifarch s390 s390x
|
2009-01-19 02:20:11 +01:00
|
|
|
install -D -m 755 $RPM_SOURCE_DIR/tcpdump-qeth $RPM_BUILD_ROOT%{_sbindir}
|
2007-01-04 17:28:36 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-01-19 02:20:11 +01:00
|
|
|
%doc CHANGES CREDITS LICENSE README *.awk
|
2007-01-04 17:28:36 +01:00
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
2007-03-03 14:37:07 +01:00
|
|
|
%changelog
|