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