]> git.pld-linux.org Git - packages/libpcap.git/blob - libpcap.spec
updated to cvs version as official stable is broken
[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:        cvs20001101
5 Release:        1
6 Epoch:          1
7 License:        GPL
8 Group:          Libraries
9 Group(pl):      Biblioteki
10 Group(fr):      Librairies
11 Source0:        http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
12 Patch0:         %{name}-shared.patch
13 BuildRequires:  flex
14 BuildRequires:  bison
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Libpcap is a system-independent interface for user-level packet
19 capture. Libpcap provides a portable framework for low-level network
20 monitoring. Applications include network statistics collection,
21 security monitoring, network debugging, etc. Libpcap has
22 system-independent API that is used by several applications, including
23 tcpdump and arpwatch.
24
25 %package devel
26 Summary:        Header files and develpment documentation for libpcap
27 Summary(pl):    Pliki nag³ówkowe i dokumetacja do libpcap
28 Group:          Development/Libraries
29 Group(pl):      Programowanie/Biblioteki
30 Group(fr):      Development/Librairies
31 Requires:       %{name} = %{version}
32
33 %description devel
34 Header files and develpment documentation for libpcap.
35
36 %description -l pl devel
37 Pliki nag³ówkowe i dokumetacja do libpcap.
38
39 %package static
40 Summary:        Static libpcap library
41 Summary(pl):    Biblioteka statyczna libpcap
42 Group:          Development/Libraries
43 Group(pl):      Programowanie/Biblioteki
44 Group(fr):      Development/Librairies
45 Requires:       %{name}-devel = %{version}
46
47 %description static
48 Static libpcap library.
49
50 %description -l pl static
51 Biblioteka statyczna libpcap.
52
53 %prep
54 %setup  -q
55 %patch0 -p1
56
57 %build
58 %configure \
59         --with-pcap=linux \
60         --enable-ipv6
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_includedir}/net \
66         $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3}
67
68 %{__make} \
69         DESTDIR=$RPM_BUILD_ROOT \
70         install
71
72 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
73         README CHANGES CREDITS
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc {README,CHANGES,CREDITS}.gz
84 %attr(755,root,root) %{_libdir}/lib*.so.*.*
85
86 %files devel
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/lib*.so
89 %{_includedir}/*.h
90 %{_includedir}/net/*.h
91 %{_mandir}/man*/*
92
93 %files static
94 %defattr(644,root,root,755)
95 %{_libdir}/lib*.a
This page took 0.064111 seconds and 4 git commands to generate.