]> git.pld-linux.org Git - packages/libpcap.git/blob - libpcap.spec
- release 2.
[packages/libpcap.git] / libpcap.spec
1 Summary:        Libpcap provides promiscuous mode access to network interfaces
2 Summary(pl):    Libpcap pozwala na bezpo¶redni dostêp do interfejsów sieciowych
3 Name:           libpcap
4 Version:        0.4
5 Release:        2
6 Group:          Applications/Networking
7 Group(pl):      Aplikacje/Sieciowe
8 Copyright:      GPL
9 Serial:         1
10 Source:         ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.Z
11 Patch0:         ftp://ftp.inr.ac.ru/ip-routing/lbl-tools/libpcap-0.4-ss990417.dif.gz
12 Patch1:         libpcap-Makefile.patch
13 BuildRoot:      /tmp/%{name}-%{version}-root
14
15 %description
16 Libpcap is a system-independent interface for user-level packet capture.
17 Libpcap provides a portable framework for low-level network monitoring.
18 Applications include network statistics collection, security monitoring,
19 network debugging, etc. Libpcap has system-independent API that is used
20 by several applications, including tcpdump and arpwatch.
21  
22 %prep
23 %setup  -q
24 %patch0 -p1
25 %patch1 -p1
26
27 %build
28 LDFLAGS="-s"; export LDFLAGS
29 %configure
30 make
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_includedir}/net \
35         $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3}
36
37 make install install-man install-incl \
38         DESTDIR=$RPM_BUILD_ROOT \
39         INCLDEST=%{_includedir} \
40
41 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
42         README CHANGES 
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc {README,CHANGES}.gz
50
51 %{_includedir}
52 %{_libdir}/libpcap.a
53 %{_mandir}/man*/*
54
55 %changelog
This page took 0.054956 seconds and 4 git commands to generate.