Copy from home:jengelh:branches:Base:System/libpcap via accept of submit request 27182 revision 3. Request was accepted with message: ok OBS-URL: https://build.opensuse.org/request/show/27182 OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=6
174 lines
4.8 KiB
RPMSpec
174 lines
4.8 KiB
RPMSpec
#
|
|
# spec file for package libpcap (Version 1.0.0)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libpcap
|
|
Version: 1.0.0
|
|
Release: 6
|
|
Group: System/Libraries
|
|
License: BSD3c(or similar) ; BSD4c(or similar)
|
|
Url: http://www.tcpdump.org/
|
|
Summary: A Library for Network Sniffers
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source2: baselibs.conf
|
|
Patch0: %{name}-%{version}-filter-fix.patch
|
|
Patch1: %{name}-%{version}-fcode.patch
|
|
Patch2: %{name}-%{version}-pcap-bpf.patch
|
|
Patch3: %{name}-%{version}-ppp.patch
|
|
Patch4: %{name}-%{version}-s390.patch
|
|
Patch5: %{name}-%{version}-man.patch
|
|
Patch6: %{name}-%{version}-mac_syntax.patch
|
|
Patch7: fix-any-interface-handling.patch
|
|
#PATCH-FIX-UPSTREAM fix-usb-nic.patch bnc455774 petr.uzel@suse.cz
|
|
Patch8: fix-usb-nic.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: bison bluez-devel flex
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Bill Fenner <fenner@research.att.com>
|
|
Assar Westerlund <assar@sics.se>
|
|
Alexei <kuznet@ms2.inr.ac.ru>
|
|
Jun-ichiro itojun Hagino <itojun@iijlab.net>
|
|
Guy Harris <gharris@flashcom.net>
|
|
Torsten Landschoff <t.landschoff@gmx.net>
|
|
Michael Richardson <mcr@sandelman.ottawa.on.ca>
|
|
Steve McCanne
|
|
Craig Leres
|
|
Van Jacobson
|
|
|
|
%package -n libpcap1
|
|
License: BSD3c(or similar)
|
|
Summary: A Library for Network Sniffers
|
|
Group: System/Libraries
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libpcap-64bit
|
|
%endif
|
|
#
|
|
%if 0%{?suse_version} > 1100
|
|
Provides: libpcap = %{version}
|
|
Obsoletes: libpcap < %{version}
|
|
%endif
|
|
|
|
%description -n libpcap1
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Bill Fenner <fenner@research.att.com>
|
|
Assar Westerlund <assar@sics.se>
|
|
Alexei <kuznet@ms2.inr.ac.ru>
|
|
Jun-ichiro itojun Hagino <itojun@iijlab.net>
|
|
Guy Harris <gharris@flashcom.net>
|
|
Torsten Landschoff <t.landschoff@gmx.net>
|
|
Michael Richardson <mcr@sandelman.ottawa.on.ca>
|
|
Steve McCanne
|
|
Craig Leres
|
|
Van Jacobson
|
|
|
|
%package devel
|
|
License: BSD3c(or similar)
|
|
Summary: A Library for Network Sniffers
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libpcap1 = %{version}
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Bill Fenner <fenner@research.att.com>
|
|
Assar Westerlund <assar@sics.se>
|
|
Alexei <kuznet@ms2.inr.ac.ru>
|
|
Jun-ichiro itojun Hagino <itojun@iijlab.net>
|
|
Guy Harris <gharris@flashcom.net>
|
|
Torsten Landschoff <t.landschoff@gmx.net>
|
|
Michael Richardson <mcr@sandelman.ottawa.on.ca>
|
|
Steve McCanne
|
|
Craig Leres
|
|
Van Jacobson
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -fpic" CXXFLAGS="$RPM_OPT_FLAGS -fpic"
|
|
%configure \
|
|
--enable-ipv6
|
|
make %{?jobs:-j%jobs} all shared
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
make DESTDIR=$RPM_BUILD_ROOT install install-shared
|
|
# create symlinks
|
|
ln -s %{name}.so.%{version} $RPM_BUILD_ROOT%{_libdir}/%{name}.so.1.0
|
|
ln -s %{name}.so.%{version} $RPM_BUILD_ROOT%{_libdir}/%{name}.so.1
|
|
ln -s %{name}.so.%{version} $RPM_BUILD_ROOT%{_libdir}/%{name}.so
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -n libpcap1 -p /sbin/ldconfig
|
|
|
|
%postun -n libpcap1 -p /sbin/ldconfig
|
|
|
|
%files -n libpcap1
|
|
%defattr(-, root, root)
|
|
%doc CHANGES CREDITS LICENSE README README.linux TODO
|
|
%{_libdir}/*.so.*
|
|
%doc %{_mandir}/man7/*
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%doc %{_mandir}/man[1-6]/*
|
|
%{_includedir}/*
|
|
%{_bindir}/pcap-config
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.*a
|
|
|
|
%changelog
|