]> git.pld-linux.org Git - packages/wireshark.git/blob - wireshark.spec
- CVE reference
[packages/wireshark.git] / wireshark.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk1            # build gtk+1 (not gtk+2) based wireshark binary
4 %bcond_without  kerberos5       # build without Kerberos V support
5 %bcond_without  snmp            # build without snmp support
6 #
7 Summary:        Network traffic and protocol analyzer
8 Summary(es.UTF-8):      Analizador de tráfico de red
9 Summary(pl.UTF-8):      Analizator ruchu i protokołów sieciowych
10 Summary(pt_BR.UTF-8):   Analisador de tráfego de rede
11 Summary(ru.UTF-8):      Анализатор сетевого траффика
12 Summary(uk.UTF-8):      Аналізатор мережевого трафіку
13 Name:           wireshark
14 Version:        1.0.5
15 Release:        1
16 License:        GPL
17 Group:          Networking
18 Source0:        http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2
19 # Source0-md5:  4c6a93e00123d8bb7af48a009519aca4
20 Source1:        %{name}.desktop
21 Source2:        %{name}.su-start-script
22 Patch0:         %{name}-0.99.5-hip-base05.patch
23 Patch1:         %{name}-as_needed.patch
24 Patch2:         %{name}-Werror.patch
25 URL:            http://www.wireshark.org/
26 BuildRequires:  adns-devel
27 BuildRequires:  autoconf >= 2.52
28 BuildRequires:  automake
29 BuildRequires:  elfutils-devel
30 BuildRequires:  flex
31 BuildRequires:  gnutls-devel >= 1.0.0
32 %if %{with gtk1}
33 BuildRequires:  gtk+-devel >= 1.2
34 %else
35 BuildRequires:  gtk+2-devel >= 1:2.0.0
36 %endif
37 %{?with_kerberos5:BuildRequires:        krb5-devel}
38 BuildRequires:  libcap-devel
39 BuildRequires:  libgcrypt-devel >= 1.1.42
40 BuildRequires:  libpcap-devel >= 0.4
41 BuildRequires:  libsmi-devel
42 BuildRequires:  libtool
43 BuildRequires:  libxslt-progs
44 BuildRequires:  lua51-devel
45 %{?with_snmp:BuildRequires:     net-snmp-devel}
46 BuildRequires:  pcre-devel
47 BuildRequires:  perl-devel
48 BuildRequires:  pkgconfig
49 BuildRequires:  portaudio-devel
50 BuildRequires:  zlib-devel
51 Requires:       %{name}-common = %{version}-%{release}
52 Requires:       libpcap >= 0.4
53 Suggests:       xterm
54 Provides:       ethereal
55 Provides:       ethereal-gnome
56 Obsoletes:      ethereal
57 Obsoletes:      ethereal-gnome
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60 %description
61 Wireshark is the name for powerful graphical network sniffer, traffic
62 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
63 capture and interactively browse the contents of network frames with
64 vast knowledge of more than 100 network protocols. Wireshark has
65 severeal useful features, including a rich display filter language,
66 the ability to view the ASCII contents of a TCP connection and plug-in
67 capabilities.
68
69 %description -l es.UTF-8
70 Analizador de tráfico de red.
71
72 %description -l pl.UTF-8
73 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
74 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
75 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
76 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
77 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
78 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
79 wtyczek (plug-ins).
80
81 %description -l pt_BR.UTF-8
82 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
83
84 %description -l ru.UTF-8
85 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
86 базируется на GTK+ и libpcap.
87
88 %description -l uk.UTF-8
89 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
90 базується на GTK+ та libpcap.
91
92 %package common
93 Summary:        Network traffic and protocol analyzer - common files
94 Summary(pl.UTF-8):      Analizator ruchu i protokołów sieciowych - wspólne pliki
95 Group:          Networking
96 Requires:       libwiretap = %{version}-%{release}
97 Provides:       ethereal-common
98 Obsoletes:      ethereal-common
99 Provides:       %{name}-tools
100 Obsoletes:      %{name}-tools
101
102 %description common
103 Wireshark is the name for powerful graphical network sniffer, traffic
104 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
105 capture and interactively browse the contents of network frames with
106 vast knowledge of more than 100 network protocols. Wireshark has
107 severeal useful features, including a rich display filter language,
108 the ability to view the ASCII contents of a TCP connection and plug-in
109 capabilities.
110
111 This package provides set of tools for manipulating capture files. It
112 contains:
113 - capinfo - prints informatio about binary capture files,
114 - dftest - shows display filter byte-code,
115 - editcap - edit and/or translate the format of capture files,
116 - idl2eth - corba IDL to Wireshark Plugin Generator,
117 - mergecap - merges two capture files into one,
118 - text2cap - generate a capture file from an ASCII hexdump of packets.
119
120 %description common -l es.UTF-8
121 Analizador de tráfico de red.
122
123 %description common -l pl.UTF-8
124 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
125 protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
126 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
127 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
128 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
129 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
130 wtyczek (plug-ins).
131
132 Pakiet ten dostarcza także zestaw narzędzi do obróbki plików z
133 przechwyconymi pakietami, obejmujący:
134 - capinfo - do wyświetlania informacji o binarnych plikach zrzutu,
135 - dftest - do pokazywania bajtkodu filtrów wyświetlania,
136 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
137 - idl2eth - do konwersji Corba IDL do wtyczek Wireshark,
138 - mergecap - do łączenia dwóch plików w jeden,
139 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
140   pakietów.
141
142 %description common -l pt_BR.UTF-8
143 O Wireshark é um analisador de protocolo de rede baseado no GTK+.
144
145 %description common -l ru.UTF-8
146 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
147 базируется на GTK+ и libpcap.
148
149 %description common -l uk.UTF-8
150 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
151 базується на GTK+ та libpcap.
152
153 %package -n twireshark
154 Summary:        Text-mode network traffic and protocol analyzer
155 Summary(pl.UTF-8):      Tekstowy analizator ruchu i protokołów sieciowych
156 Summary(pt_BR.UTF-8):   Analisador modo texto de tráfego de rede (sniffer)
157 Group:          Networking
158 Requires:       %{name}-common = %{version}-%{release}
159 Requires:       libpcap >= 0.4
160 Provides:       tethereal
161 Obsoletes:      tethereal
162
163 %description -n twireshark
164 Twireshark is a network protocol analyzer. It lets you capture packet
165 data from a live network, or read packets from a previously saved
166 capture file, either printing a decoded form of those packets to the
167 standard output or writing the packets to a file. Twireshark's native
168 capture file format is libpcap format, which is also the format used
169 by tcpdump and various other tools.
170
171 %description -n twireshark -l pl.UTF-8
172 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
173 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
174 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
175 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
176 tetherala jest format libpcap, tak więc jest on kompatybilny z
177 tcpdumpem i innymi podobnymi narzędziami.
178
179 %description -n twireshark -l pt_BR.UTF-8
180 Esta é uma versão para modo texto do analisador de tráfego de rede
181 Wireshark.
182
183 %package -n libwiretap
184 Summary:        Packet capture and analysis library
185 Summary(pl.UTF-8):      Biblioteka do przechwytywania i analizy pakietów
186 Group:          Libraries
187
188 %description -n libwiretap
189 Wiretap is a library that is being developed as a future replacement
190 for libpcap, the current standard Unix library for packet capturing.
191
192 %description -n libwiretap -l pl.UTF-8
193 Biblioteka Wiretap rozwijana jest jako przyszły następca biblioteki
194 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
195
196 %package -n libwiretap-devel
197 Summary:        Header files for libwiretap packet capture library
198 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libwiretap do przechwytywania pakietów
199 Group:          Development/Libraries
200 Requires:       libwiretap = %{version}-%{release}
201 %if %{with gtk1}
202 Requires:       gtk+-devel >= 1.2
203 %else
204 Requires:       gtk+2-devel >= 2.0.0
205 %endif
206
207 %description -n libwiretap-devel
208 Header files for libwiretap packet capture library.
209
210 %description -n libwiretap-devel -l pl.UTF-8
211 Pliki nagłówkowe biblioteki libwiretap służącej do przechwytywania
212 pakietów.
213
214 %prep
215 %setup -q
216 %patch0 -p1
217 %patch1 -p1
218 %patch2 -p1
219 perl -pi -e 's/lua5\.1/lua51/g' acinclude.m4
220 find -name Makefile.am | xargs perl -pi -e 's/-Werror//g'
221
222 %build
223 %{__libtoolize}
224 %{__aclocal} -I aclocal-fallback
225 %{__autoconf}
226 %{__automake}
227 %configure \
228         --enable-randpkt \
229         --enable-dftest \
230         --enable-threads \
231         %{!?with_gtk1:--enable-gtk2} \
232 %if %{with kerberos5}
233         --with-krb5 \
234         --with-ssl \
235 %endif
236         %{!?with_snmp:--without-net-snmp --without-ucdsnmp} \
237         --with-lua="/usr" \
238         --with-plugindir=%{_libdir}/%{name}
239
240 %{__make}
241
242 %install
243 rm -rf $RPM_BUILD_ROOT
244 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
245
246 %{__make} install \
247         DESTDIR=$RPM_BUILD_ROOT
248
249 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
250 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}_su
251 install image/hi48-app-wireshark.png \
252         $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
253
254 install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
255
256 # plugins *.la are useless - *.so are loaded through gmodule
257 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}*/*.la
258
259 # no headers installed for this library
260 rm -f $RPM_BUILD_ROOT%{_libdir}/libwireshark.{so,la}
261
262 %clean
263 rm -rf $RPM_BUILD_ROOT
264
265 %post   common -p /sbin/ldconfig
266 %postun common -p /sbin/ldconfig
267
268 %post   -n libwiretap -p /sbin/ldconfig
269 %postun -n libwiretap -p /sbin/ldconfig
270
271 %files
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/wireshark
274 %attr(755,root,root) %{_bindir}/%{name}_su
275 %dir %{_libdir}/%{name}
276 %dir %{_libdir}/%{name}/plugins
277 %dir %{_libdir}/%{name}/plugins/%{version}*
278 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}*/*.so
279 %{_datadir}/%{name}
280 %{_desktopdir}/*.desktop
281 %{_pixmapsdir}/*
282 %{_mandir}/man1/wireshark.1*
283
284 %files common
285 %defattr(644,root,root,755)
286 %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
287 %attr(755,root,root) %{_bindir}/capinfos
288 %attr(755,root,root) %{_bindir}/dftest
289 %attr(755,root,root) %{_bindir}/dumpcap
290 %attr(755,root,root) %{_bindir}/editcap
291 %attr(755,root,root) %{_bindir}/idl2wrs
292 %attr(755,root,root) %{_bindir}/mergecap
293 %attr(755,root,root) %{_bindir}/randpkt
294 %attr(755,root,root) %{_bindir}/rawshark
295 %attr(755,root,root) %{_bindir}/text2pcap
296 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
297 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.0
298 %{_mandir}/man1/capinfos.1*
299 %{_mandir}/man1/dumpcap.1*
300 %{_mandir}/man1/editcap.1*
301 %{_mandir}/man1/idl2wrs.1*
302 %{_mandir}/man1/mergecap.1*
303 %{_mandir}/man1/rawshark.1*
304 %{_mandir}/man1/text2pcap.1*
305 %{_mandir}/man4/wireshark-filter.4*
306
307 %files -n twireshark
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_bindir}/tshark
310 %{_mandir}/man1/tshark*
311
312 %files -n libwiretap
313 %defattr(644,root,root,755)
314 %doc wiretap/{README*,AUTHORS}
315 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
316 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.0
317
318 %files -n libwiretap-devel
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libwiretap.so
321 %{_libdir}/libwiretap.la
322 %{_includedir}/wiretap
This page took 0.050054 seconds and 3 git commands to generate.