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