summaryrefslogtreecommitdiff
path: root/libpcapnav.spec
blob: 9cefadae97639626788664e799d3f322c9dcf22b (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
Summary:	A libpcap wrapper library
Summary(pl.UTF-8):	Wrapper dla biblioteki libpcap
Name:		libpcapnav
Version:	0.8
Release:	1
License:	Distributable
Group:		Libraries
Source0:	http://dl.sourceforge.net/netdude/libpcapnav/%{version}/%{name}-%{version}.tar.gz
# Source0-md5:	005a0a2d6f1164f1212a7c10ab950b36
URL:		http://netdude.sourceforge.net/
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libpcap-devel
BuildRequires:	libtool
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
libpcapnav is a libpcap wrapper library that allows navigation to
arbitrary locations in a tcpdump trace file between reads. The API is
intentionally much like that of the pcap library. You can navigate in
trace files both in time and space. You can jump to a packet which is
at approximately 2/3 of the trace, or you can jump as closely as
possible to a packet with a given timestamp, and then read packets
from there. In addition, the API provides convenience functions for
manipulating timeval structures.

%description -l pl.UTF-8
libpcapnav to wrapper dla biblioteki libpcap, który umożliwia
nawigację do arbitralnych lokacji w pliku trace tcpdumpa pomiędzy
odczytami. API z założenia ma wyglądać jak API biblioteki libpcap.
Użytkownik może nawigować w plikach trace zarówno w czasie i
miejscu. Można przeskoczyć bezpośrednio do pakietu, który znajduje
się w przybliżeniu w 2/3 pliku trace lub też tak blisko, jak to
możliwe do pakietu określonego stemplem czasu i odczytać stamtąd
pakiety. Dodatkowo API umożliwia wygodne funkcje do manipulacji
strukturami timeval.

%package devel
Summary:	Header files for pcapnav library
Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki pcapnav
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Header files for pcapnav library.

%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki pcapnav.

%package static
Summary:	Static pcapnav library
Summary(pl.UTF-8):	Statyczna biblioteka pcapnav
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static pcapnav library.

%description static -l pl.UTF-8
Statyczna biblioteka pcapnav.

%prep
%setup -q

%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog COPYING README docs
%attr(755,root,root) %{_bindir}/pcapnav-config
%attr(755,root,root) %{_libdir}/libpcapnav.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libpcapnav.so.0

%files devel
%defattr(644,root,root,755)
%{_libdir}/libpcapnav.so
%{_libdir}/libpcapnav.la
%{_includedir}/pcapnav.h

%files static
%defattr(644,root,root,755)
%{_libdir}/libpcapnav.a