summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlisu2009-09-15 08:01:17 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit32239e80549efd7ac36fed54bf0aaa4fa3fb0df8 (patch)
treee05b5aa6d14b2c44fd10e3b2c6381a64ee331ebc
downloadlibpcapnav-32239e80549efd7ac36fed54bf0aaa4fa3fb0df8.zip
libpcapnav-32239e80549efd7ac36fed54bf0aaa4fa3fb0df8.tar.gz
- initial
Changed files: libpcapnav.spec -> 1.1
-rw-r--r--libpcapnav.spec101
1 files changed, 101 insertions, 0 deletions
diff --git a/libpcapnav.spec b/libpcapnav.spec
new file mode 100644
index 0000000..9cefada
--- /dev/null
+++ b/libpcapnav.spec
@@ -0,0 +1,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