]> git.pld-linux.org Git - packages/libpcap.git/blob - libpcap.spec
- make sanitized pcap-int.h available to other packages (e.g. kismet)
[packages/libpcap.git] / libpcap.spec
1 Summary:        Libpcap provides promiscuous mode access to network interfaces
2 Summary(es):    libpcap ofrece acceso a modo promiscuo en interfaces de red
3 Summary(pl):    Libpcap pozwala na bezpo¶redni dostêp do interfejsów sieciowych
4 Summary(pt_BR): A libpcap fornece acesso ao modo promíscuo em interfaces de rede
5 Summary(ru):    ðÒÅÄÏÓÔÁ×ÌÑÅÔ ÄÏÓÔÕРˠÓÅÔÅ×ÙÍ ÉÎÔÅÒÆÅÊÓÁÍ × promiscuous-ÒÅÖÉÍÅ
6 Summary(uk):    îÁÄÁ¤ ÄÏÓÔÕРÄÏ ÍÅÒÅÖÅ×ÉÈ ¦ÎÔÅÒÆÅÊӦננpromiscuous-ÒÅÖÉͦ
7 Name:           libpcap
8 Version:        0.8.1
9 Release:        2
10 Epoch:          2
11 License:        BSD
12 Group:          Libraries
13 Source0:        http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
14 # Source0-md5:  f03f588e1f0ba783004d76f60507cebd
15 Patch0:         %{name}-shared.patch
16 Patch1:         %{name}-ac25x.patch
17 BuildRequires:  autoconf >= 2.53
18 BuildRequires:  automake
19 BuildRequires:  bison
20 BuildRequires:  flex
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes:      libpcap0
23
24 %description
25 Libpcap is a system-independent interface for user-level packet
26 capture. Libpcap provides a portable framework for low-level network
27 monitoring. Applications include network statistics collection,
28 security monitoring, network debugging, etc. Libpcap has
29 system-independent API that is used by several applications, including
30 tcpdump and arpwatch.
31
32 %description -l es
33 libpcap es una interface independiente de sistema para captura de
34 paquetes en modo usuario. Ofrece un esquema portátil para el control
35 de la red en bajo nivel. Se utiliza para colecta de estadísticas de
36 red, Control de seguridad, depuración de la red, etc. Tiene una API
37 independiente de sistema que se usa por varias aplicaciones, entre
38 ellas tcpdump y arpwatch.
39
40 %description -l pl
41 libpcap to niezale¿ny od systemu interfejs do przechwytywania pakietów
42 z poziomu u¿ytkownika.
43
44 %description -l pt_BR
45 A libpcap é uma interface independente de sistema para captura de
46 pacotes em modo usuário. Fornece um esquema portátil para monitoração
47 da rede em baixo nível. É utilizada para coleta de estatísticas de
48 rede, monitoramento de segurança, depuração da rede, etc. Tem uma API
49 independente de sistema que é usada por várias aplicações, entre elas
50 tcpdump e arpwatch.
51
52 %description -l ru
53 Libpcap - ÜÔÏ ÓÉÓÔÅÍÎÏÎÅÚÁ×ÉÓÉÍÙÊ ÉÎÔÅÒÆÅÊÓ ÄÌÑ ÚÁÈ×ÁÔÁ ÐÁËÅÔÏ× Ó
54 ÐÏÌØÚÏ×ÁÔÅÌØÓËÏÇÏ ÕÒÏ×ÎÑ É ÎÉÚËÏÕÒÏ×ÎÅ×ÏÇÏ ÓÅÔÅ×ÏÇÏ ÍÏÎÉÔÏÒÉÎÇÁ.
55 ÷ÏÚÍÏÖÎÙÅ ÐÒÉÍÅÎÅÎÉÑ ×ËÌÀÞÁÀÔ ÓÂÏÒ ÓÅÔÅ×ÏÊ ÓÔÁÔÉÓÔÉËÉ, ÎÁÂÌÀÄÅÎÉÅ ÚÁ
56 ÂÅÚÏÐÁÓÎÏÓÔØÀ, ÏÔÌÁÄËÁ ÓÅÔÉ É Ô.Ä. Libpcap ÉÍÅÅÔ ÓÉÓÔÅÍÎÏÎÅÚÁ×ÉÓÉÍÙÊ
57 API, ÉÓÐÏÌØÚÕÅÍÙÊ ÍÎÏÇÉÍÉ ÐÒÉÌÏÖÅÎÉÑÍÉ, ×ËÌÀÞÁÑ tcpdump É arpwatch.
58
59 %description -l uk
60 Libpcap - ÃÅ ÓÉÓÔÅÍÎÏÎÅÚÁÌÅÖÎÉÊ ¦ÎÔÅÒÆÅÊÓ ÄÌÑ ÚÁÈ×ÁÔÕ ÐÁËÅԦנڠҦ×ÎÑ
61 ËÏÒÉÓÔÕ×ÁÞÁ ÔÁ Î¦ÚËÏÒ¦×ÎÅ×ÏÇÏ ÍÏΦÔÏÒÉÎÇÕ ÍÅÒÅÖ¦. íÏÖÌÉצ ×ÉËÏÒÉÓÔÁÎÎÑ
62 ×ËÌÀÞÁÀÔØ Ú¦ҠÓÔÁÔÉÓÔÉËÉ ÍÅÒÅÖ¦, ÓÐÏÓÔÅÒÅÖÅÎÎÑ ÚÁ ÂÅÚÐÅËÏÀ, ×¦ÄÌÁÄËÁ
63 ÍÅÒÅÖ¦ ¦ Ô.¦. Libpcap ÍÁ¤ ÓÉÓÔÅÍÎÏÎÅÚÁÌÅÖÎÉÊ API ÝÏ ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ
64 ÂÁÇÁÔØÍÁ ÐÒÏÇÒÁÍÁÍÉ, ÔÁËÉÍÉ ÑÌ tcpdump, arpwatch ÔÁ trafshow.
65
66 %package devel
67 Summary:        Header files and develpment documentation for libpcap
68 Summary(es):    Arquivos de cabeçalho e bibliotecas de desenvolvimento para libpcap
69 Summary(pl):    Pliki nag³ówkowe i dokumetacja do libpcap
70 Summary(pt_BR): Bibliotecas e arquivos de inclusão para a libpcap
71 Summary(ru):    èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÐÒÏÇÒÁÍÉÓÔÁ ÄÌÑ libpcap
72 Summary(uk):    èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ libpcap
73 Group:          Development/Libraries
74 Requires:       %{name} = %{epoch}:%{version}
75 Obsoletes:      libpcap0-devel
76
77 %description devel
78 Libpcap provides a portable framework for low-level network
79 monitoring. Libpcap can provide network statistics collection,
80 security monitoring and network debugging. Since almost every system
81 vendor provides a different interface for packet capture, the libpcap
82 authors created this system-independent API to ease in porting and to
83 alleviate the need for several system-dependent packet capture modules
84 in each application.
85
86 Install libpcap if you need to do low-level network traffic monitoring
87 on your network.
88
89 %description devel -l pl
90 Pliki nag³ówkowe i dokumetacja do libpcap.
91
92 %description devel -l pt_BR
93 Tcpdump imprime os cabeçalhos dos pacotes em uma interface de rede.
94 Ele é muito prático para resolver problemas na rede e para operações
95 de segurança.
96
97 %description devel -l ru
98 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÐÒÏÇÒÁÍÉÓÔÁ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó
99 libpcap.
100
101 %description devel -l uk
102 èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú
103 libpcap.
104
105 %package static
106 Summary:        Static libpcap library
107 Summary(es):    Biblioteca estática usada no desenvolvimento de aplicativos com libpcap
108 Summary(pl):    Biblioteka statyczna libpcap
109 Summary(pt_BR): Biblioteca estática de desenvolvimento
110 Summary(ru):    óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ libpcap
111 Summary(uk):    óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ libpcap
112 Group:          Development/Libraries
113 Requires:       %{name}-devel = %{epoch}:%{version}
114
115 %description static
116 Libpcap provides a portable framework for low-level network
117 monitoring. Libpcap can provide network statistics collection,
118 security monitoring and network debugging. Since almost every system
119 vendor provides a different interface for packet capture, the libpcap
120 authors created this system-independent API to ease in porting and to
121 alleviate the need for several system-dependent packet capture modules
122 in each application.
123
124 This package contains the static library used for development.
125
126 %description static -l pt_BR
127 Tcpdump imprime os cabeçalhos dos pacotes em uma interface de rede.
128 Ele é muito prático para resolver problemas na rede e para operações
129 de segurança.
130
131 %description static -l pl
132 Biblioteka statyczna libpcap.
133
134 %description static -l ru
135 óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ, ÎÅÏÂÈÏÄÉÍÁÑ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó libpcap.
136
137 %description static -l uk
138 óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ, ÎÅÏÂȦÄÎÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú libpcap.
139
140 %prep
141 # -c because of "tar: Removing leading `libpcap-0.8.1/./' from member names"
142 %setup -q -c
143 # tar < 1.13.9x compat
144 [ -f configure ] || cd %{name}-%{version}
145 %patch0 -p1
146 %patch1 -p1
147
148 %build
149 [ -f configure ] || cd %{name}-%{version}
150 cp -f /usr/share/automake/config.sub .
151 %{__autoconf}
152 %configure \
153         --with-pcap=linux \
154         --enable-ipv6
155 %{__make}
156
157 %install
158 rm -rf $RPM_BUILD_ROOT
159 if [ ! -f configure ]; then
160         mv -f %{name}-%{version}/{CHANGES,CREDITS,LICENSE,README} .
161         cd %{name}-%{version}
162 fi
163
164 %{__make} install \
165         DESTDIR=$RPM_BUILD_ROOT
166
167 # some packages want it... but sanitize somehow
168 # (don't depend on HAVE_{STRLCPY,SNPRINTF,VSNPRINTF} defines)
169 sed -e '233,239d;242,251d' pcap-int.h > $RPM_BUILD_ROOT%{_includedir}/pcap-int.h
170
171 %clean
172 rm -rf $RPM_BUILD_ROOT
173
174 %post   -p /sbin/ldconfig
175 %postun -p /sbin/ldconfig
176
177 %files
178 %defattr(644,root,root,755)
179 %doc CHANGES CREDITS LICENSE README
180 %attr(755,root,root) %{_libdir}/lib*.so.*.*
181
182 %files devel
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/lib*.so
185 %{_includedir}/*.h
186 %{_mandir}/man?/*
187
188 %files static
189 %defattr(644,root,root,755)
190 %{_libdir}/lib*.a
This page took 0.055049 seconds and 3 git commands to generate.