]> git.pld-linux.org Git - packages/wireshark.git/blob - wireshark.spec
5550c0823f089b2bdd653836ed77bcd21a02d80a
[packages/wireshark.git] / wireshark.spec
1 # TODO
2 # - use policykit to gain root
3 # - use %caps when rpm supports it: %attr(750,root,wireshark) %caps(cap_net_raw,cap_net_admin=eip) %{_sbindir}/dumpcap
4 # - unpackaged files (datadir ?):
5 # warning: Installed (but unpackaged) file(s) found:
6 #        /usr/lib64/wireshark/cmake/FindGLIB2.cmake
7 #        /usr/lib64/wireshark/cmake/FindWSWinLibs.cmake
8 #        /usr/lib64/wireshark/cmake/LocatePythonModule.cmake
9 #        /usr/lib64/wireshark/cmake/UseAsn2Wrs.cmake
10 #        /usr/lib64/wireshark/cmake/UseMakePluginReg.cmake
11 #        /usr/lib64/wireshark/cmake/WiresharkConfig.cmake
12 #        /usr/lib64/wireshark/cmake/WiresharkConfigVersion.cmake
13 #        /usr/lib64/wireshark/cmake/WiresharkTargets-pld.cmake
14 #        /usr/lib64/wireshark/cmake/WiresharkTargets.cmake
15 #        /usr/share/AUTHORS-SHORT
16 #        /usr/share/COPYING
17 #        /usr/share/androiddump.html
18 #        /usr/share/asn2deb.html
19 #       (...)
20 #
21 # Conditional build:
22 %bcond_without  kerberos5       # Kerberos V support
23 %bcond_without  snmp            # SNMP support
24 %bcond_without  gui             # without QT GUI
25
26 Summary:        Network traffic and protocol analyzer
27 Summary(es.UTF-8):      Analizador de tráfico de red
28 Summary(pl.UTF-8):      Analizator ruchu i protokołów sieciowych
29 Summary(pt_BR.UTF-8):   Analisador de tráfego de rede
30 Summary(ru.UTF-8):      Анализатор сетевого траффика
31 Summary(uk.UTF-8):      Аналізатор мережевого трафіку
32 Name:           wireshark
33 Version:        3.0.0
34 Release:        1
35 License:        GPL v2+
36 Group:          Networking/Utilities
37 Source0:        https://www.wireshark.org/download/src/%{name}-%{version}.tar.xz
38 # Source0-md5:  258d62ac7434d126dc497303c8f7961b
39 URL:            https://www.wireshark.org/
40 BuildRequires:  GeoIP-devel
41 BuildRequires:  asciidoc
42 BuildRequires:  bcg729-devel
43 BuildRequires:  bison
44 BuildRequires:  cmake
45 BuildRequires:  c-ares-devel >= 1.5.0
46 BuildRequires:  doxygen
47 BuildRequires:  flex
48 BuildRequires:  gcc >= 5:3.2
49 BuildRequires:  glib2-devel >= 1:2.32
50 BuildRequires:  gnutls-devel >= 3.2.0
51 %{?with_kerberos5:BuildRequires:        heimdal-devel}
52 BuildRequires:  libcap-devel
53 BuildRequires:  libgcrypt-devel >= 1.4.2
54 BuildRequires:  libmaxminddb-devel
55 BuildRequires:  libnl-devel >= 3.2
56 BuildRequires:  libpcap-devel >= 2:1.0.0-4
57 BuildRequires:  libssh-devel >= 0.6.0
58 BuildRequires:  libsmi-devel
59 BuildRequires:  libstdc++-devel
60 BuildRequires:  libtool >= 2:2.2.2
61 BuildRequires:  libxml2-devel >= 2.0
62 BuildRequires:  libxslt-progs
63 BuildRequires:  lua52-devel
64 BuildRequires:  lz4-devel
65 %{?with_snmp:BuildRequires:     net-snmp-devel}
66 BuildRequires:  nghttp2-devel
67 BuildRequires:  perl-tools-pod
68 BuildRequires:  pkgconfig >= 1:0.7
69 BuildRequires:  python3 >= 1:3.4
70 BuildRequires:  rpmbuild(macros) >= 1.527
71 %{?with_gui:BuildRequires:      sbc-devel >= 1.0}
72 %{?with_gui:BuildRequires:      speexdsp-devel}
73 BuildRequires:  sed >= 4.0
74 BuildRequires:  snappy-devel
75 BuildRequires:  spandsp-devel
76 BuildRequires:  tar >= 1:1.22
77 BuildRequires:  w3m
78 BuildRequires:  xz
79 BuildRequires:  zlib-devel
80 %if %{with gui}
81 BuildRequires:  Qt5Core-devel >= 5.2
82 BuildRequires:  Qt5Multimedia-devel >= 5.2
83 BuildRequires:  Qt5PrintSupport-devel >= 5.2
84 BuildRequires:  Qt5Widgets-devel >= 5.2
85 BuildRequires:  libstdc++-devel >= 5
86 BuildRequires:  qt5-build >= 5.2
87 BuildRequires:  qt5-linguist >= 5.2
88 %endif
89 Requires:       gdk-pixbuf2 >= 2.26
90 Suggests:       xdg-utils
91 Provides:       ethereal
92 Provides:       ethereal-gnome
93 Obsoletes:      ethereal
94 Obsoletes:      ethereal-gnome
95 Obsoletes:      wireshark-gui-common
96 Obsoletes:      wireshark-qt
97 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
98
99 %description
100 Wireshark is the name for powerful graphical network sniffer, traffic
101 and protocol analyzer based on QT 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 %description -l es.UTF-8
109 Analizador de tráfico de red.
110
111 %description -l pl.UTF-8
112 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
113 protokołów sieciowych opartym na bibliotekach QT oraz libpcap.
114 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
115 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
116 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
117 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
118 wtyczek (plug-ins).
119
120 %description -l pt_BR.UTF-8
121 O Wireshark é um analisador de protocolo de rede baseado no QT.
122
123 %description -l ru.UTF-8
124 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
125 базируется на QT и libpcap.
126
127 %description -l uk.UTF-8
128 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
129 базується на QT та libpcap.
130
131 %package common
132 Summary:        Network traffic and protocol analyzer - common files
133 Summary(pl.UTF-8):      Analizator ruchu i protokołów sieciowych - wspólne pliki
134 Group:          Networking
135 Requires:       %{name}-libs = %{version}-%{release}
136 Requires:       gnutls >= 3.1.10
137 Requires:       libpcap >= 0.4
138 Requires:       libssh >= 0.6.0
139 Provides:       ethereal-common
140 Provides:       group(wireshark)
141 Provides:       wireshark-tools
142 Obsoletes:      ethereal-common
143 Obsoletes:      wireshark-tools
144 Requires(post,postun):  /sbin/setcap
145
146 %description common
147 Wireshark is the name for powerful graphical network sniffer, traffic
148 and protocol analyzer based on QT and libpcap libraries. It lets you
149 capture and interactively browse the contents of network frames with
150 vast knowledge of more than 100 network protocols. Wireshark has
151 severeal useful features, including a rich display filter language,
152 the ability to view the ASCII contents of a TCP connection and plug-in
153 capabilities.
154
155 This package provides the shared library, plugins, data and a set of
156 tools for manipulating capture files. It contains:
157 - capinfos - prints informatio about binary capture files,
158 - captype - prints the file types of capture files,
159 - dftest - shows display filter byte-code,
160 - dumpcap - dumps network traffic to a file,
161 - editcap - edit and/or translate the format of capture files,
162 - mergecap - merges two capture files into one,
163 - randpkt - generates libpcap trace file full of random packets,
164 - rawshark - dumps and analyzes raw libpcap data,
165 - text2cap - generate a capture file from an ASCII hexdump of packets.
166
167 %description common -l es.UTF-8
168 Analizador de tráfico de red.
169
170 %description common -l pl.UTF-8
171 Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz
172 protokołów sieciowych opartym na bibliotekach QT oraz libpcap.
173 Umożliwia on przechwytywanie oraz interaktywną analizę zawartości
174 ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele
175 użytecznych cech, takich jak rozbudowany język filtrów wyświetlania,
176 możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania
177 wtyczek (plug-ins).
178
179 Ten pakiet ten zawiera bibliotekę współdzieloną, wtyczki, dane oraz
180 zestaw narzędzi do obróbki plików z przechwyconymi pakietami,
181 obejmujący:
182 - capinfos - do wyświetlania informacji o binarnych plikach zrzutu,
183 - captype - do wyświetlania rodzaju plików zrzutu,
184 - dftest - do pokazywania bajtkodu filtrów wyświetlania,
185 - dumpcap - do zrzucania ruchu sieciowego do pliku,
186 - editcap - do edycji plików i tłumaczenia ich na inne formaty,
187 - mergecap - do łączenia dwóch plików w jeden,
188 - randpkt - do generowania plikow cap z losowymi danymi,
189 - rawshark - do obróbki plików cap,
190 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
191   pakietów.
192
193 %description common -l pt_BR.UTF-8
194 O Wireshark é um analisador de protocolo de rede baseado no QT.
195
196 %description common -l ru.UTF-8
197 Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он
198 базируется на QT и libpcap.
199
200 %description common -l uk.UTF-8
201 Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він
202 базується на QT та libpcap.
203
204 %package -n twireshark
205 Summary:        Text-mode network traffic and protocol analyzer
206 Summary(pl.UTF-8):      Tekstowy analizator ruchu i protokołów sieciowych
207 Summary(pt_BR.UTF-8):   Analisador modo texto de tráfego de rede (sniffer)
208 Group:          Networking
209 Requires:       %{name}-common = %{version}-%{release}
210 Requires:       libpcap >= 0.4
211 Provides:       tethereal
212 Obsoletes:      tethereal
213
214 %description -n twireshark
215 Twireshark is a network protocol analyzer. It lets you capture packet
216 data from a live network, or read packets from a previously saved
217 capture file, either printing a decoded form of those packets to the
218 standard output or writing the packets to a file. Twireshark's native
219 capture file format is libpcap format, which is also the format used
220 by tcpdump and various other tools.
221
222 %description -n twireshark -l pl.UTF-8
223 Twireshark jest analizatorem protokołów sieciowych. Pozwala na
224 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
225 Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów
226 sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików
227 tetherala jest format libpcap, tak więc jest on kompatybilny z
228 tcpdumpem i innymi podobnymi narzędziami.
229
230 %description -n twireshark -l pt_BR.UTF-8
231 Esta é uma versão para modo texto do analisador de tráfego de rede
232 Wireshark.
233
234 %package libs
235 Summary:        Wireshark packet capture and dissection libraries
236 Summary(pl.UTF-8):      Biblioteki Wiresharka do przechwytywania i sekcji pakietów
237 Group:          Libraries
238 Requires:       glib2 >= 1:2.32
239 Requires:       libgcrypt >= 1.4.2
240 Requires:       libnl >= 3.2
241 Obsoletes:      libwiretap < 2.4.0
242
243 %description libs
244 Wireshark packet capture and dissection libraries.
245
246 %description libs -l pl.UTF-8
247 Biblioteki Wiresharka do przechwytywania i sekcji pakietów.
248
249 %package devel
250 Summary:        Header files for Wireshark libraries
251 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek Wiresharka
252 Group:          Development/Libraries
253 Requires:       %{name}-libs = %{version}-%{release}
254 Requires:       glib2-devel >= 1:2.32
255 Requires:       libgcrypt-devel >= 1.4.2
256 Requires:       libnl-devel >= 3.2
257 Obsoletes:      libwiretap-devel < 2.4.0
258
259 %description devel
260 Header files for Wireshark libraries.
261
262 %description devel -l pl.UTF-8
263 Pliki nagłówkowe bibliotek Wiresharka.
264
265 %prep
266 %setup -q
267
268 %build
269 %cmake -G "Unix Makefiles" \
270   -DDISABLE_WERROR=ON \
271   -DBUILD_wireshark=ON \
272   -DENABLE_QT5=ON \
273   -DENABLE_LUA=ON \
274   -DBUILD_mmdbresolve=ON \
275   -DBUILD_randpktdump=ON \
276   -DBUILD_androiddump=ON \
277   -DBUILD_tfshark=OFF \
278   -DBUILD_corbaidl2wrs=ON \
279   -DBUILD_dcerpcidl2wrs=ON \
280   -DBUILD_xxx2deb=ON \
281   -DENABLE_SMI=ON \
282   -DENABLE_PORTAUDIO=ON \
283   -DENABLE_PLUGINS=ON \
284   -DENABLE_NETLINK=ON
285
286 %{__make}
287
288 %install
289 rm -rf $RPM_BUILD_ROOT
290 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wireshark}
291
292 %{__make} install \
293         DESTDIR=$RPM_BUILD_ROOT
294
295 cp -p image/wsicon48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
296
297 %{?with_gui:cp -p wireshark.desktop $RPM_BUILD_ROOT%{_desktopdir}/wireshark.desktop}
298
299 # headers (from Fedora, inspired by debian/wireshark-dev.header-files)
300 install -d $RPM_BUILD_ROOT%{_includedir}/wireshark/{epan/{crypt,ftypes,dfilter,dissectors,wmem},wiretap,wsutil}
301 install config.h            $RPM_BUILD_ROOT%{_includedir}/wireshark
302 install cfile.h file.h      $RPM_BUILD_ROOT%{_includedir}/wireshark
303 install ws_diag_control.h   $RPM_BUILD_ROOT%{_includedir}/wireshark
304 install ws_symbol_export.h  $RPM_BUILD_ROOT%{_includedir}/wireshark
305 install epan/*.h            $RPM_BUILD_ROOT%{_includedir}/wireshark/epan
306 install epan/crypt/*.h      $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/crypt
307 install epan/ftypes/*.h     $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/ftypes
308 install epan/dfilter/*.h    $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/dfilter
309 install epan/dissectors/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/dissectors
310 install epan/wmem/*.h       $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/wmem
311 install wiretap/*.h         $RPM_BUILD_ROOT%{_includedir}/wireshark/wiretap
312 install wsutil/*.h          $RPM_BUILD_ROOT%{_includedir}/wireshark/wsutil
313
314 # plugins *.la are useless - *.so are loaded through gmodule
315 #%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*/*/*.la
316
317 %clean
318 rm -rf $RPM_BUILD_ROOT
319
320 %pre
321 %update_mime_database
322
323 %postun
324 %update_mime_database
325
326 %pre    common
327 %groupadd -P %{name}-common -g 104 wireshark
328
329 %post   common
330 /sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' %{_bindir}/dumpcap
331 exit 0
332
333 %postun common
334 if [ "$1" = "0" ]; then
335         %groupremove wireshark
336 fi
337
338 %post   libs -p /sbin/ldconfig
339 %postun libs -p /sbin/ldconfig
340
341 %if %{with gui}
342 %files
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_bindir}/wireshark
345 %{_desktopdir}/wireshark.desktop
346 #%{_datadir}/%{name}
347 %{_datadir}/appdata/wireshark.appdata.xml
348 %{_datadir}/mime/packages/wireshark.xml
349 %{_pixmapsdir}/%{name}.png
350 %{_iconsdir}/hicolor/16x16/apps/%{name}.png
351 %{_iconsdir}/hicolor/16x16/mimetypes/application-%{name}-doc.png
352 %{_iconsdir}/hicolor/24x24/apps/%{name}.png
353 %{_iconsdir}/hicolor/24x24/mimetypes/application-%{name}-doc.png
354 %{_iconsdir}/hicolor/32x32/apps/%{name}.png
355 %{_iconsdir}/hicolor/32x32/mimetypes/application-%{name}-doc.png
356 %{_iconsdir}/hicolor/48x48/apps/%{name}.png
357 %{_iconsdir}/hicolor/48x48/mimetypes/application-%{name}-doc.png
358 %{_iconsdir}/hicolor/64x64/apps/%{name}.png
359 %{_iconsdir}/hicolor/64x64/mimetypes/application-%{name}-doc.png
360 %{_iconsdir}/hicolor/128x128/apps/%{name}.png
361 %{_iconsdir}/hicolor/128x128/mimetypes/application-%{name}-doc.png
362 %{_iconsdir}/hicolor/256x256/apps/%{name}.png
363 %{_iconsdir}/hicolor/256x256/mimetypes/application-%{name}-doc.png
364 %{_iconsdir}/hicolor/scalable/apps/%{name}.svg
365 %{_mandir}/man1/wireshark.1*
366 %endif
367
368 %files common
369 %defattr(644,root,root,755)
370 %doc AUTHORS* ChangeLog NEWS README.md README.linux doc/README.*
371 %dir %{_libdir}/%{name}
372 %dir %{_libdir}/%{name}/extcap
373 %dir %{_libdir}/%{name}/plugins
374 %dir %{_libdir}/%{name}/plugins/3.0
375 %dir %{_libdir}/%{name}/plugins/3.0/codecs
376 %dir %{_libdir}/%{name}/plugins/3.0/epan
377 %dir %{_libdir}/%{name}/plugins/3.0/wiretap
378 %attr(755,root,root) %{_libdir}/%{name}/extcap/androiddump
379 %attr(755,root,root) %{_libdir}/%{name}/extcap/ciscodump
380 %attr(755,root,root) %{_libdir}/%{name}/extcap/dpauxmon
381 %attr(755,root,root) %{_libdir}/%{name}/extcap/randpktdump
382 %attr(755,root,root) %{_libdir}/%{name}/extcap/sshdump
383 %attr(755,root,root) %{_libdir}/%{name}/extcap/sdjournal
384 %attr(755,root,root) %{_libdir}/%{name}/extcap/udpdump
385 %attr(755,root,root) %{_libdir}/%{name}/plugins/3.0/codecs/*.so
386 %attr(755,root,root) %{_libdir}/%{name}/plugins/3.0/epan/*.so
387 %attr(755,root,root) %{_libdir}/%{name}/plugins/3.0/wiretap/*.so
388 %attr(755,root,root) %{_bindir}/capinfos
389 %attr(755,root,root) %{_bindir}/captype
390 #%attr(755,root,root) %{_bindir}/dftest
391 %attr(750,root,wireshark) %{_bindir}/dumpcap
392 %attr(755,root,root) %{_bindir}/editcap
393 %attr(755,root,root) %{_bindir}/idl2wrs
394 %attr(755,root,root) %{_bindir}/mergecap
395 %attr(755,root,root) %{_bindir}/mmdbresolve
396 %attr(755,root,root) %{_bindir}/randpkt
397 %attr(755,root,root) %{_bindir}/rawshark
398 %attr(755,root,root) %{_bindir}/reordercap
399 %attr(755,root,root) %{_bindir}/sharkd
400 %attr(755,root,root) %{_bindir}/text2pcap
401 #%attr(755,root,root) %{_bindir}/tfshark
402 %{_mandir}/man1/androiddump.1*
403 %{_mandir}/man1/capinfos.1*
404 %{_mandir}/man1/captype.1*
405 %{_mandir}/man1/ciscodump.1*
406 %{_mandir}/man1/dftest.1*
407 %{_mandir}/man1/dumpcap.1*
408 %{_mandir}/man1/editcap.1*
409 %{_mandir}/man1/mergecap.1*
410 %{_mandir}/man1/mmdbresolve.1*
411 %{_mandir}/man1/rawshark.1*
412 %{_mandir}/man1/randpkt.1*
413 %{_mandir}/man1/randpktdump.1*
414 %{_mandir}/man1/reordercap.1*
415 %{_mandir}/man1/sshdump.1*
416 %{_mandir}/man1/text2pcap.1*
417 %{_mandir}/man1/udpdump.1*
418 %{_mandir}/man4/extcap.4*
419 %{_mandir}/man4/wireshark-filter.4*
420
421 %files -n twireshark
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_bindir}/tshark
424 %{_mandir}/man1/tshark*.1*
425
426 %files libs
427 %defattr(644,root,root,755)
428 #%doc wiretap/README*
429 %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.*
430 %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.12
431 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
432 %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.9
433 %attr(755,root,root) %{_libdir}/libwscodecs.so.*.*.*
434 %attr(755,root,root) %ghost %{_libdir}/libwscodecs.so.2
435 %attr(755,root,root) %{_libdir}/libwsutil.so.*.*.*
436 %attr(755,root,root) %ghost %{_libdir}/libwsutil.so.10
437
438 %files devel
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_libdir}/libwireshark.so
441 %attr(755,root,root) %{_libdir}/libwiretap.so
442 %attr(755,root,root) %{_libdir}/libwscodecs.so
443 %attr(755,root,root) %{_libdir}/libwsutil.so
444 #%{_libdir}/libwireshark.la
445 #%{_libdir}/libwiretap.la
446 #%{_libdir}/libwscodecs.la
447 #%{_libdir}/libwsutil.la
448 %{_includedir}/wireshark
449 %{_pkgconfigdir}/wireshark.pc
This page took 0.114582 seconds and 2 git commands to generate.