blob: 6fc00230deed8eac10f494d4ead2b9ae1da4c5e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
%define keepstatic 1
Name: libpcap
Version: 1.3.0
Release: 0
License: BSD-3-Clause
Summary: A Library for Network Sniffers
Url: http://www.tcpdump.org/
Group: System/Libraries
Source: %{name}-%{version}.tar.gz
Source2: baselibs.conf
Source1001: libpcap.manifest
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: libusb-devel
%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.
%package devel
Summary: A Library for Network Sniffers
Group: Development/Libraries/C and C++
Requires: libpcap = %{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.
%prep
%setup -q
cp %{SOURCE1001} .
%build
pic="pic"
autoreconf -fiv
export CFLAGS="%{optflags} -f$pic" CXXFLAGS="%{optflags} -f$pic"
%configure \
--enable-ipv6
make %{?_smp_mflags} all shared
%install
%make_install
%docs_package
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-, root, root)
%doc LICENSE
%{_libdir}/*.so.*
%files devel
%manifest %{name}.manifest
%defattr(-, root, root)
%{_includedir}/*
%{_bindir}/pcap-config
%{_libdir}/*.so
%{_libdir}/*.*a
%changelog
|