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