2007-01-04 16:25:26 +00:00
|
|
|
#
|
2011-05-16 07:39:41 +00:00
|
|
|
# spec file for package libpcap
|
2007-01-04 16:25:26 +00:00
|
|
|
#
|
2013-09-20 15:13:12 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-04 16:25:26 +00:00
|
|
|
#
|
2008-08-23 01:02:53 +00: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 16:25:26 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-01 16:07:49 +00:00
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
Name: libpcap
|
2013-12-16 16:55:33 +00:00
|
|
|
Version: 1.5.2
|
2012-01-03 14:53:29 +00:00
|
|
|
Release: 0
|
2007-01-04 16:25:26 +00:00
|
|
|
Summary: A Library for Network Sniffers
|
2012-01-03 14:53:29 +00:00
|
|
|
License: BSD-3-Clause
|
2011-05-19 14:13:34 +00:00
|
|
|
Group: System/Libraries
|
2012-01-03 14:53:29 +00:00
|
|
|
Url: http://www.tcpdump.org/
|
|
|
|
Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
|
2009-12-26 11:18:41 +00:00
|
|
|
Source2: baselibs.conf
|
2013-09-20 15:13:12 +00:00
|
|
|
Source3: http://www.tcpdump.org/tcpdump-workers.asc#/%{name}.keyring
|
|
|
|
Source4: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz.sig
|
2013-12-16 16:55:33 +00:00
|
|
|
Patch0: libpcap-1.5.2-filter-fix.patch
|
2012-06-16 08:08:35 +00:00
|
|
|
Patch1: libpcap-1.0.0-pcap-bpf.patch
|
|
|
|
Patch2: libpcap-1.0.0-ppp.patch
|
|
|
|
Patch3: libpcap-1.0.0-s390.patch
|
2012-08-27 19:38:03 +00:00
|
|
|
Patch4: libpcap-ocloexec.patch
|
|
|
|
BuildRequires: automake
|
2010-09-16 10:22:35 +00:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: bluez-devel
|
2013-12-16 16:55:33 +00:00
|
|
|
BuildRequires: dbus-1-devel
|
2010-09-16 10:22:35 +00:00
|
|
|
BuildRequires: flex
|
2012-08-27 19:38:03 +00:00
|
|
|
BuildRequires: libusb-devel
|
2013-12-16 16:55:33 +00:00
|
|
|
BuildRequires: pkg-config
|
2013-09-20 15:13:12 +00:00
|
|
|
%if %{?suse_version} >= 1210
|
|
|
|
BuildRequires: libnl3-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
BuildRequires: gpg-offline
|
|
|
|
%endif
|
2011-05-19 14:13:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-04 16:25:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libpcap is a library used by packet sniffer programs. It provides an
|
|
|
|
interface for them to capture and analyze packets from network devices.
|
|
|
|
This package is only needed if you plan to compile or write such a
|
|
|
|
program yourself.
|
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%package -n libpcap1
|
2007-07-26 23:18:19 +00:00
|
|
|
Summary: A Library for Network Sniffers
|
|
|
|
Group: System/Libraries
|
2009-01-14 16:55:48 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libpcap-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2009-05-28 00:14:43 +00:00
|
|
|
%if 0%{?suse_version} > 1100
|
2008-08-23 01:02:53 +00:00
|
|
|
Provides: libpcap = %{version}
|
|
|
|
Obsoletes: libpcap < %{version}
|
2009-05-28 00:14:43 +00:00
|
|
|
%endif
|
2008-08-23 01:02:53 +00:00
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%description -n libpcap1
|
2008-08-23 01:02:53 +00:00
|
|
|
libpcap is a library used by packet sniffer programs. It provides an
|
|
|
|
interface for them to capture and analyze packets from network devices.
|
|
|
|
This package is only needed if you plan to compile or write such a
|
|
|
|
program yourself.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A Library for Network Sniffers
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-09-20 15:13:12 +00:00
|
|
|
Requires: bluez-devel
|
2009-01-19 01:22:34 +00:00
|
|
|
Requires: libpcap1 = %{version}
|
2013-09-20 15:13:12 +00:00
|
|
|
Requires: libusb-devel
|
|
|
|
%if %{?suse_version} >= 1210
|
|
|
|
Requires: libnl3-devel
|
|
|
|
%endif
|
2007-07-26 23:18:19 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libpcap is a library used by packet sniffer programs. It provides an
|
|
|
|
interface for them to capture and analyze packets from network devices.
|
|
|
|
This package is only needed if you plan to compile or write such a
|
|
|
|
program yourself.
|
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
%prep
|
2013-09-20 15:13:12 +00:00
|
|
|
%{?gpg_verify: %gpg_verify %{S:4}}
|
2009-01-19 01:22:34 +00:00
|
|
|
%setup -q
|
2013-12-16 16:55:33 +00:00
|
|
|
%patch0 -p1
|
2007-01-04 16:25:26 +00:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-07-26 23:18:19 +00:00
|
|
|
%patch3
|
2013-09-20 15:13:12 +00:00
|
|
|
%patch4 -p1
|
2007-01-04 16:25:26 +00:00
|
|
|
%build
|
2010-01-29 14:58:04 +00:00
|
|
|
%ifarch %sparc
|
|
|
|
pic="PIC"
|
|
|
|
%else
|
|
|
|
pic="pic"
|
|
|
|
%endif
|
2012-08-27 19:38:03 +00:00
|
|
|
autoreconf -fiv
|
2011-05-19 14:13:34 +00:00
|
|
|
export CFLAGS="%{optflags} -f$pic" CXXFLAGS="%{optflags} -f$pic"
|
2007-07-13 16:19:09 +00:00
|
|
|
%configure \
|
2009-01-19 01:22:34 +00:00
|
|
|
--enable-ipv6
|
2010-01-29 14:58:04 +00:00
|
|
|
make %{?_smp_mflags} all shared
|
2007-01-04 16:25:26 +00:00
|
|
|
|
|
|
|
%install
|
2011-05-19 14:13:34 +00:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
make DESTDIR=%{buildroot} install install-shared
|
2007-01-04 16:25:26 +00:00
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%post -n libpcap1 -p /sbin/ldconfig
|
2007-07-13 16:19:09 +00:00
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%postun -n libpcap1 -p /sbin/ldconfig
|
2007-07-13 16:19:09 +00:00
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%files -n libpcap1
|
2007-01-04 16:25:26 +00:00
|
|
|
%defattr(-, root, root)
|
2009-01-19 01:22:34 +00:00
|
|
|
%doc CHANGES CREDITS LICENSE README README.linux TODO
|
2007-07-26 23:18:19 +00:00
|
|
|
%{_libdir}/*.so.*
|
2009-10-30 16:00:14 +00:00
|
|
|
%doc %{_mandir}/man7/*
|
2007-07-26 23:18:19 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2009-10-30 16:00:14 +00:00
|
|
|
%doc %{_mandir}/man[1-6]/*
|
2007-01-04 16:25:26 +00:00
|
|
|
%{_includedir}/*
|
2009-01-19 01:22:34 +00:00
|
|
|
%{_bindir}/pcap-config
|
2007-07-26 23:18:19 +00:00
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.*a
|
2007-01-04 16:25:26 +00:00
|
|
|
|
2007-03-29 10:04:33 +00:00
|
|
|
%changelog
|