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