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