]> git.pld-linux.org Git - packages/libpcapnav.git/blob - libpcapnav.spec
- proper desc in -static and -devel
[packages/libpcapnav.git] / libpcapnav.spec
1 Summary:        A libpcap wrapper library
2 Summary(pl.UTF-8):      Wrapper dla biblioteki libpcap
3 Name:           libpcapnav
4 Version:        0.8
5 Release:        1
6 License:        Distributable
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/netdude/libpcapnav/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  005a0a2d6f1164f1212a7c10ab950b36
10 URL:            http://netdude.sourceforge.net/
11 BuildRequires:  autoconf
12 BuildRequires:  automake
13 BuildRequires:  libpcap-devel
14 BuildRequires:  libtool
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 libpcapnav is a libpcap wrapper library that allows navigation to
19 arbitrary locations in a tcpdump trace file between reads. The API is
20 intentionally much like that of the pcap library. You can navigate in
21 trace files both in time and space. You can jump to a packet which is
22 at approximately 2/3 of the trace, or you can jump as closely as
23 possible to a packet with a given timestamp, and then read packets
24 from there. In addition, the API provides convenience functions for
25 manipulating timeval structures.
26
27 %description -l pl.UTF-8
28 libpcapnav to wrapper dla biblioteki libpcap, który umożliwia
29 nawigację do arbitralnych lokacji w pliku trace tcpdumpa pomiędzy
30 odczytami. API z założenia ma wyglądać jak API biblioteki libpcap.
31 Użytkownik może nawigować w plikach trace zarówno w czasie i
32 miejscu. Można przeskoczyć bezpośrednio do pakietu, który znajduje
33 się w przybliżeniu w 2/3 pliku trace lub też tak blisko, jak to
34 możliwe do pakietu określonego stemplem czasu i odczytać stamtąd
35 pakiety. Dodatkowo API umożliwia wygodne funkcje do manipulacji
36 strukturami timeval.
37
38 %package devel
39 Summary:        Header files for libpcapnav library
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libpcapnav
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description devel
45 Header files for libpcapnav library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki libpcapnav.
49
50 %package static
51 Summary:        Static libpcapnav library
52 Summary(pl.UTF-8):      Statyczna biblioteka libpcapnav
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static libpcapnav library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka libpcapnav.
61
62 %prep
63 %setup -q
64
65 %build
66 %{__libtoolize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__autoheader}
70 %{__automake}
71 %configure
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS ChangeLog COPYING README docs
89 %attr(755,root,root) %{_bindir}/pcapnav-config
90 %attr(755,root,root) %{_libdir}/libpcapnav.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libpcapnav.so.0
92
93 %files devel
94 %defattr(644,root,root,755)
95 %{_libdir}/libpcapnav.so
96 %{_libdir}/libpcapnav.la
97 %{_includedir}/pcapnav.h
98
99 %files static
100 %defattr(644,root,root,755)
101 %{_libdir}/libpcapnav.a
This page took 0.033224 seconds and 4 git commands to generate.