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
|
# This spec file creates two relocatable RPMS:
# - one for library usage only
# - a devel version, including header files and documentation.
#
%define prefix /usr
%define version 0.8
Summary: A libpcap trace file navigation library
Name: libpcapnav
Version: %{version}
Release: 1
License: BSD
Group: Development/Libraries
URL: http://netdude.sf.net
# Using FTP to get around SourceForge's habit of adding something after .tar.gz
Source: ftp://ftp.sf.net/pub/sourceforge/netdude/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Packager: Christian Kreibich <christian@whoop.org>
Requires: libpcap
Prefix: %{prefix}
%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.
%package devel
Summary: Development and documentation files for libpcapnav.
Group: Development/Libraries
Requires: libpcapnav
%description devel
Static libraries, header files and documentation
for libpcapnav
%prep
%setup -q
# Needed for snapshot releases.
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix
else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
fi
%build
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%{prefix}/lib/lib*.so.*
%files devel
%defattr(-,root,root,-)
%doc %{prefix}/share/gtk-doc/html/pcapnav
%{prefix}/lib/lib*a
%{prefix}/include/pcapnav.h
%{prefix}/bin/pcapnav-config
%changelog
* Sat Apr 10 2004 Christian Kreibich <christian@whoop.org>
- Updated to 0.5
* Tue Dec 9 2003 Christian Kreibich <christian@whoop.org>
- Added spec file to tree.
|