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