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