]>
Commit | Line | Data |
---|---|---|
3eaa205f | 1 | # TODO |
3db19835 ER |
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 | |
06ce418f | 4 | # |
681bd53b | 5 | # Conditional build: |
d2bee84f JB |
6 | %bcond_without kerberos5 # Kerberos V support |
7 | %bcond_without snmp # SNMP support | |
8 | %bcond_without gui # any GUI | |
9 | %bcond_without gtk # GTK+ (2 or 3) GUI | |
10 | %bcond_with gtk2 # GTK+ GUI based on GTK+ 2 instead of GTK+ 3 | |
11 | %bcond_without qt # Qt GUI | |
0846fcb3 | 12 | |
f362b44f | 13 | %if %{without gui} |
d2bee84f | 14 | %undefine with_gtk |
f362b44f JK |
15 | %undefine with_qt |
16 | %endif | |
17 | ||
c06ca841 | 18 | Summary: Network traffic and protocol analyzer |
301eb42a ER |
19 | Summary(es.UTF-8): Analizador de tráfico de red |
20 | Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych | |
21 | Summary(pt_BR.UTF-8): Analisador de tráfego de rede | |
22 | Summary(ru.UTF-8): Анализатор сетевого траффика | |
23 | Summary(uk.UTF-8): Аналізатор мережевого трафіку | |
3564cfa5 | 24 | Name: wireshark |
2b45c3c4 | 25 | Version: 2.6.4 |
3ab5984d | 26 | Release: 1 |
9c2845b9 | 27 | License: GPL v2+ |
6d55af47 | 28 | Group: Networking/Utilities |
6101a021 | 29 | Source0: https://www.wireshark.org/download/src/%{name}-%{version}.tar.xz |
2b45c3c4 | 30 | # Source0-md5: 8aa7b8c8ce0b6ce4256a081493819d6f |
c54254da | 31 | Patch0: %{name}-Werror.patch |
4bd1bf6e AO |
32 | Patch1: %{name}-ac.patch |
33 | Patch2: %{name}-desktop.patch | |
3ab5984d | 34 | Patch3: dftest.patch |
6101a021 | 35 | URL: https://www.wireshark.org/ |
eb0e86a1 JB |
36 | BuildRequires: GeoIP-devel |
37 | BuildRequires: asciidoc | |
6101a021 JB |
38 | BuildRequires: autoconf >= 2.64 |
39 | BuildRequires: automake >= 1:1.11 | |
00a07a36 | 40 | BuildRequires: bison |
eb0e86a1 JB |
41 | BuildRequires: c-ares-devel |
42 | BuildRequires: doxygen | |
ad2318ff | 43 | BuildRequires: flex |
6101a021 JB |
44 | BuildRequires: gcc >= 5:3.2 |
45 | %{?with_gtk:BuildRequires: gdk-pixbuf2-devel >= 2.26} | |
46 | BuildRequires: glib2-devel >= 1:2.32 | |
d2bee84f | 47 | BuildRequires: gnutls-devel >= 3.1.10 |
f362b44f | 48 | %if %{with gui} |
d2bee84f JB |
49 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0} |
50 | %{!?with_gtk2:BuildRequires: gtk+3-devel >= 3.0.0} | |
f362b44f | 51 | %endif |
c1939565 | 52 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
558b2cad | 53 | BuildRequires: libcap-devel |
d2bee84f | 54 | BuildRequires: libgcrypt-devel >= 1.4.2 |
eb0e86a1 | 55 | BuildRequires: libnl-devel >= 3.2 |
2dee0cf7 | 56 | BuildRequires: libpcap-devel >= 2:1.0.0-4 |
6101a021 | 57 | BuildRequires: libssh-devel >= 0.6.0 |
38791bb5 | 58 | BuildRequires: libsmi-devel |
6101a021 JB |
59 | BuildRequires: libstdc++-devel |
60 | BuildRequires: libtool >= 2:2.2.2 | |
61 | BuildRequires: libxml2-devel >= 2.0 | |
9f20d4ae | 62 | BuildRequires: libxslt-progs |
5bc49780 | 63 | BuildRequires: lua52-devel |
6101a021 | 64 | BuildRequires: lz4-devel |
49540dfb | 65 | %{?with_snmp:BuildRequires: net-snmp-devel} |
6101a021 | 66 | BuildRequires: nghttp2-devel |
00a07a36 | 67 | BuildRequires: perl-tools-pod |
d2bee84f | 68 | BuildRequires: pkgconfig >= 1:0.7 |
f362b44f | 69 | %{?with_gui:BuildRequires: portaudio-devel} |
d2bee84f | 70 | BuildRequires: python >= 1:2.5 |
f362b44f | 71 | BuildRequires: rpmbuild(macros) >= 1.527 |
d2bee84f | 72 | %{?with_gui:BuildRequires: sbc-devel >= 1.0} |
6101a021 | 73 | %{?with_qt:BuildRequires: speexdsp-devel} |
d2bee84f | 74 | BuildRequires: sed >= 4.0 |
6101a021 JB |
75 | BuildRequires: snappy-devel |
76 | BuildRequires: spandsp-devel | |
77 | BuildRequires: tar >= 1:1.22 | |
78 | BuildRequires: w3m | |
79 | BuildRequires: xz | |
d2bee84f | 80 | BuildRequires: zlib-devel |
4d6dc41b | 81 | %if %{with qt} |
6101a021 JB |
82 | BuildRequires: Qt5Core-devel >= 5 |
83 | BuildRequires: Qt5Multimedia-devel >= 5 | |
84 | BuildRequires: Qt5PrintSupport-devel >= 5 | |
85 | BuildRequires: Qt5Widgets-devel >= 5 | |
86 | BuildRequires: libstdc++-devel >= 5 | |
87 | BuildRequires: qt5-build >= 5 | |
88 | BuildRequires: qt5-linguist >= 5 | |
4d6dc41b | 89 | %endif |
d2bee84f | 90 | Requires: %{name}-gui-common = %{version}-%{release} |
6101a021 | 91 | Requires: gdk-pixbuf2 >= 2.26 |
d2bee84f | 92 | %if %{with gtk2} |
eb0e86a1 | 93 | Requires: gtk+2 >= 2:2.12.0 |
d2bee84f JB |
94 | %else |
95 | Requires: gtk+3 >= 3.0.0 | |
f362b44f | 96 | %endif |
d2bee84f | 97 | Suggests: xdg-utils |
2fc873c0 | 98 | Provides: ethereal |
3585cc66 | 99 | Provides: ethereal-gnome |
2fc873c0 | 100 | Obsoletes: ethereal |
3585cc66 | 101 | Obsoletes: ethereal-gnome |
d1cb25db | 102 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c06ca841 | 103 | |
c06ca841 | 104 | %description |
3564cfa5 | 105 | Wireshark is the name for powerful graphical network sniffer, traffic |
3993f161 | 106 | and protocol analyzer based on GTK+ and libpcap libraries. It lets you |
107 | capture and interactively browse the contents of network frames with | |
3564cfa5 | 108 | vast knowledge of more than 100 network protocols. Wireshark has |
3993f161 | 109 | severeal useful features, including a rich display filter language, |
110 | the ability to view the ASCII contents of a TCP connection and plug-in | |
111 | capabilities. | |
c06ca841 | 112 | |
bd5a719c JR |
113 | %description -l es.UTF-8 |
114 | Analizador de tráfico de red. | |
bd307bb2 | 115 | |
bd5a719c JR |
116 | %description -l pl.UTF-8 |
117 | Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz | |
118 | protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap. | |
119 | Umożliwia on przechwytywanie oraz interaktywną analizę zawartości | |
120 | ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele | |
121 | użytecznych cech, takich jak rozbudowany język filtrów wyświetlania, | |
122 | możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania | |
3993f161 | 123 | wtyczek (plug-ins). |
c06ca841 | 124 | |
bd5a719c JR |
125 | %description -l pt_BR.UTF-8 |
126 | O Wireshark é um analisador de protocolo de rede baseado no GTK+. | |
bd307bb2 | 127 | |
bd5a719c JR |
128 | %description -l ru.UTF-8 |
129 | Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он | |
130 | базируется на GTK+ и libpcap. | |
8cadd9c5 | 131 | |
bd5a719c JR |
132 | %description -l uk.UTF-8 |
133 | Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він | |
134 | базується на GTK+ та libpcap. | |
8cadd9c5 | 135 | |
d2bee84f JB |
136 | %package gui-common |
137 | Summary: Network traffic and protocol analyzer - GUI common files | |
138 | Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki interfejsów graficznych | |
139 | Group: Networking/Utilities | |
140 | Requires: %{name}-common = %{version}-%{release} | |
141 | ||
142 | %description gui-common | |
143 | Network traffic and protocol analyzer - files common for all Wireshark | |
144 | GUIs (GTK+, Qt). | |
145 | ||
146 | %description gui-common -l pl.UTF-8 | |
147 | Analizator ruchu i protokołów sieciowych - pliki wspólne dla | |
148 | wszystkich interfejsów graficznych Wiresharka (GTK+, Qt). | |
149 | ||
6101a021 JB |
150 | %package qt |
151 | Summary: Qt-based network traffic and protocol analyzer | |
152 | Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych oparty na Qt | |
153 | Group: Networking | |
154 | Requires: %{name}-gui-common = %{version}-%{release} | |
155 | Requires: Qt5Gui-platform-xcb | |
156 | ||
157 | %description qt | |
158 | An initial port to Qt (aka QtShark). | |
159 | ||
160 | %description qt -l pl.UTF-8 | |
161 | Wstępna wersja analizatora wireshark oparta na Qt (znana też pod nazwą | |
162 | QtShark). | |
163 | ||
8556fd8d | 164 | %package common |
165 | Summary: Network traffic and protocol analyzer - common files | |
301eb42a | 166 | Summary(pl.UTF-8): Analizator ruchu i protokołów sieciowych - wspólne pliki |
8556fd8d | 167 | Group: Networking |
6101a021 | 168 | Requires: %{name}-libs = %{version}-%{release} |
d2bee84f JB |
169 | Requires: gnutls >= 3.1.10 |
170 | Requires: libpcap >= 0.4 | |
6101a021 | 171 | Requires: libssh >= 0.6.0 |
2fc873c0 | 172 | Provides: ethereal-common |
3db19835 | 173 | Provides: group(wireshark) |
d2bee84f | 174 | Provides: wireshark-tools |
9cdb13ff | 175 | Obsoletes: ethereal-common |
f32e8035 | 176 | Obsoletes: wireshark-tools |
3db19835 | 177 | Requires(post,postun): /sbin/setcap |
8556fd8d | 178 | |
179 | %description common | |
3564cfa5 | 180 | Wireshark is the name for powerful graphical network sniffer, traffic |
8556fd8d | 181 | and protocol analyzer based on GTK+ and libpcap libraries. It lets you |
182 | capture and interactively browse the contents of network frames with | |
3564cfa5 | 183 | vast knowledge of more than 100 network protocols. Wireshark has |
8556fd8d | 184 | severeal useful features, including a rich display filter language, |
185 | the ability to view the ASCII contents of a TCP connection and plug-in | |
186 | capabilities. | |
187 | ||
d2bee84f JB |
188 | This package provides the shared library, plugins, data and a set of |
189 | tools for manipulating capture files. It contains: | |
4d6dc41b AO |
190 | - capinfos - prints informatio about binary capture files, |
191 | - captype - prints the file types of capture files, | |
9b0cad4e | 192 | - dftest - shows display filter byte-code, |
ad479611 | 193 | - dumpcap - dumps network traffic to a file, |
9b0cad4e | 194 | - editcap - edit and/or translate the format of capture files, |
9b0cad4e | 195 | - mergecap - merges two capture files into one, |
ad479611 AG |
196 | - randpkt - generates libpcap trace file full of random packets, |
197 | - rawshark - dumps and analyzes raw libpcap data, | |
9b0cad4e AG |
198 | - text2cap - generate a capture file from an ASCII hexdump of packets. |
199 | ||
bd5a719c JR |
200 | %description common -l es.UTF-8 |
201 | Analizador de tráfico de red. | |
8556fd8d | 202 | |
bd5a719c JR |
203 | %description common -l pl.UTF-8 |
204 | Wireshark jest potężnym, graficznym snifferem, analizatorem ruchu oraz | |
205 | protokołów sieciowych opartym na bibliotekach GTK+ oraz libpcap. | |
206 | Umożliwia on przechwytywanie oraz interaktywną analizę zawartości | |
207 | ramek oraz ponad stu protokołów sieciowych. Wireshark posiada wiele | |
208 | użytecznych cech, takich jak rozbudowany język filtrów wyświetlania, | |
209 | możliwość oglądania przebiegu sesji TCP oraz możliwość dołączania | |
8556fd8d | 210 | wtyczek (plug-ins). |
211 | ||
d2bee84f JB |
212 | Ten pakiet ten zawiera bibliotekę współdzieloną, wtyczki, dane oraz |
213 | zestaw narzędzi do obróbki plików z przechwyconymi pakietami, | |
214 | obejmujący: | |
4d6dc41b AO |
215 | - capinfos - do wyświetlania informacji o binarnych plikach zrzutu, |
216 | - captype - do wyświetlania rodzaju plików zrzutu, | |
a8a05b82 | 217 | - dftest - do pokazywania bajtkodu filtrów wyświetlania, |
ad479611 | 218 | - dumpcap - do zrzucania ruchu sieciowego do pliku, |
9b0cad4e | 219 | - editcap - do edycji plików i tłumaczenia ich na inne formaty, |
9b0cad4e | 220 | - mergecap - do łączenia dwóch plików w jeden, |
ad479611 AG |
221 | - randpkt - do generowania plikow cap z losowymi danymi, |
222 | - rawshark - do obróbki plików cap, | |
9b0cad4e AG |
223 | - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII |
224 | pakietów. | |
225 | ||
bd5a719c JR |
226 | %description common -l pt_BR.UTF-8 |
227 | O Wireshark é um analisador de protocolo de rede baseado no GTK+. | |
8556fd8d | 228 | |
bd5a719c JR |
229 | %description common -l ru.UTF-8 |
230 | Wireshark - это анализатор сетевого траффика для Unix-подобных ОС. Он | |
231 | базируется на GTK+ и libpcap. | |
9a51ce65 | 232 | |
bd5a719c JR |
233 | %description common -l uk.UTF-8 |
234 | Wireshark - це аналізатор мережевого трафіку для Unix-подібних ОС. Він | |
235 | базується на GTK+ та libpcap. | |
13dcc98b | 236 | |
3564cfa5 | 237 | %package -n twireshark |
87fe533f | 238 | Summary: Text-mode network traffic and protocol analyzer |
301eb42a ER |
239 | Summary(pl.UTF-8): Tekstowy analizator ruchu i protokołów sieciowych |
240 | Summary(pt_BR.UTF-8): Analisador modo texto de tráfego de rede (sniffer) | |
9a51ce65 | 241 | Group: Networking |
d1cb25db | 242 | Requires: %{name}-common = %{version}-%{release} |
9a51ce65 | 243 | Requires: libpcap >= 0.4 |
2fc873c0 | 244 | Provides: tethereal |
9cdb13ff | 245 | Obsoletes: tethereal |
9a51ce65 | 246 | |
3564cfa5 AM |
247 | %description -n twireshark |
248 | Twireshark is a network protocol analyzer. It lets you capture packet | |
9a51ce65 | 249 | data from a live network, or read packets from a previously saved |
250 | capture file, either printing a decoded form of those packets to the | |
3564cfa5 | 251 | standard output or writing the packets to a file. Twireshark's native |
9a51ce65 | 252 | capture file format is libpcap format, which is also the format used |
253 | by tcpdump and various other tools. | |
254 | ||
bd5a719c JR |
255 | %description -n twireshark -l pl.UTF-8 |
256 | Twireshark jest analizatorem protokołów sieciowych. Pozwala na | |
257 | przechwytywanie pakietów z sieci lub wczytywanie danych z pliku. | |
258 | Zdekodowany wynik (a twireshark zna ponad 100 rozmaitych protokołów | |
259 | sieciowych!) jest wyświetlony na ekranie. Natywnym formatem plików | |
260 | tetherala jest format libpcap, tak więc jest on kompatybilny z | |
261 | tcpdumpem i innymi podobnymi narzędziami. | |
9a51ce65 | 262 | |
bd5a719c JR |
263 | %description -n twireshark -l pt_BR.UTF-8 |
264 | Esta é uma versão para modo texto do analisador de tráfego de rede | |
3564cfa5 | 265 | Wireshark. |
9a51ce65 | 266 | |
6101a021 JB |
267 | %package libs |
268 | Summary: Wireshark packet capture and dissection libraries | |
269 | Summary(pl.UTF-8): Biblioteki Wiresharka do przechwytywania i sekcji pakietów | |
3d4f4fbf | 270 | Group: Libraries |
6101a021 | 271 | Requires: glib2 >= 1:2.32 |
d2bee84f | 272 | Requires: libgcrypt >= 1.4.2 |
9c2845b9 | 273 | Requires: libnl >= 3.2 |
6101a021 | 274 | Obsoletes: libwiretap < 2.4.0 |
3d4f4fbf | 275 | |
6101a021 JB |
276 | %description libs |
277 | Wireshark packet capture and dissection libraries. | |
3d4f4fbf | 278 | |
6101a021 JB |
279 | %description libs -l pl.UTF-8 |
280 | Biblioteki Wiresharka do przechwytywania i sekcji pakietów. | |
3d4f4fbf | 281 | |
6101a021 JB |
282 | %package devel |
283 | Summary: Header files for Wireshark libraries | |
284 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wiresharka | |
2bb0e3ef | 285 | Group: Development/Libraries |
6101a021 JB |
286 | Requires: %{name}-libs = %{version}-%{release} |
287 | Requires: glib2-devel >= 1:2.32 | |
d2bee84f | 288 | Requires: libgcrypt-devel >= 1.4.2 |
eb0e86a1 | 289 | Requires: libnl-devel >= 3.2 |
6101a021 | 290 | Obsoletes: libwiretap-devel < 2.4.0 |
2bb0e3ef | 291 | |
6101a021 JB |
292 | %description devel |
293 | Header files for Wireshark libraries. | |
2bb0e3ef | 294 | |
6101a021 JB |
295 | %description devel -l pl.UTF-8 |
296 | Pliki nagłówkowe bibliotek Wiresharka. | |
2bb0e3ef | 297 | |
c06ca841 | 298 | %prep |
3db19835 | 299 | %setup -q |
63effabc | 300 | %patch0 -p1 |
69922c19 | 301 | %patch1 -p1 |
5fe62224 | 302 | %patch2 -p1 |
3ab5984d | 303 | %patch3 -p1 |
d88a1752 | 304 | find -name Makefile.am | xargs sed -i -e 's/-Werror//g' |
6682782e | 305 | |
c06ca841 | 306 | %build |
bd307bb2 | 307 | %{__libtoolize} |
82ef181d | 308 | %{__aclocal} -I aclocal-fallback |
bd307bb2 | 309 | %{__autoconf} |
310 | %{__automake} | |
abb043a4 | 311 | %if %{with qt} |
cf725e93 JR |
312 | MOC=moc-qt5 \ |
313 | UIC=uic-qt5 \ | |
abb043a4 | 314 | %endif |
6101a021 | 315 | CPPFLAGS="%{rpmcppflags} $(pkg-config --cflags liblz4)" |
cf725e93 | 316 | %configure \ |
d2bee84f | 317 | HTML_VIEWER=/usr/bin/xdg-open \ |
7d460fd4 | 318 | --enable-dftest \ |
b316fa1c | 319 | --enable-packet-editor \ |
eb0e86a1 | 320 | --enable-randpkt \ |
6101a021 JB |
321 | --enable-tfshark \ |
322 | %{__enable_disable gui wireshark} \ | |
eb0e86a1 JB |
323 | --disable-silent-rules \ |
324 | --disable-usr-local \ | |
d2bee84f | 325 | %if %{with gtk} |
6101a021 | 326 | %{?with_gtk2:--with-gtk=2}%{!?with_gtk2:--with-gtk=3} \ |
f362b44f | 327 | %endif |
e705ff13 | 328 | %if %{with kerberos5} |
61c15373 | 329 | --with-krb5 \ |
61c15373 | 330 | %endif |
6101a021 JB |
331 | --with-lua \ |
332 | %{__with_without qt} \ | |
4d6dc41b | 333 | %{!?with_snmp:--without-net-snmp --without-ucdsnmp} |
6682782e | 334 | |
47b29440 | 335 | %{__make} |
c06ca841 | 336 | |
337 | %install | |
338 | rm -rf $RPM_BUILD_ROOT | |
6101a021 | 339 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wireshark} |
c06ca841 | 340 | |
c335c139 PG |
341 | %{__make} install \ |
342 | DESTDIR=$RPM_BUILD_ROOT | |
c06ca841 | 343 | |
3ab5984d | 344 | cp -p image/wsicon48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
d2bee84f JB |
345 | |
346 | %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/wireshark*.desktop | |
347 | %{?with_gtk:cp -p wireshark-gtk.desktop $RPM_BUILD_ROOT%{_desktopdir}/wireshark.desktop} | |
348 | %{?with_qt:cp -p wireshark.desktop $RPM_BUILD_ROOT%{_desktopdir}/wireshark-qt.desktop} | |
c06ca841 | 349 | |
6101a021 JB |
350 | # headers (from Fedora, inspired by debian/wireshark-dev.header-files) |
351 | install -d $RPM_BUILD_ROOT%{_includedir}/wireshark/{epan/{crypt,ftypes,dfilter,dissectors,wmem},wiretap,wsutil} | |
3ab5984d | 352 | install config.h $RPM_BUILD_ROOT%{_includedir}/wireshark |
6101a021 JB |
353 | install cfile.h file.h $RPM_BUILD_ROOT%{_includedir}/wireshark |
354 | install ws_diag_control.h $RPM_BUILD_ROOT%{_includedir}/wireshark | |
355 | install ws_symbol_export.h $RPM_BUILD_ROOT%{_includedir}/wireshark | |
356 | install epan/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/epan | |
357 | install epan/crypt/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/crypt | |
358 | install epan/ftypes/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/ftypes | |
359 | install epan/dfilter/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/dfilter | |
360 | install epan/dissectors/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/dissectors | |
361 | install epan/wmem/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/epan/wmem | |
362 | install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/wiretap | |
363 | install wsutil/*.h $RPM_BUILD_ROOT%{_includedir}/wireshark/wsutil | |
2bb0e3ef | 364 | |
a53f49c9 | 365 | # plugins *.la are useless - *.so are loaded through gmodule |
3ab5984d | 366 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*/*/*.la |
a53f49c9 | 367 | |
d2bee84f JB |
368 | %{?with_qt:%{__mv} $RPM_BUILD_ROOT%{_bindir}/wireshark{,-qt}} |
369 | %{?with_gtk:%{__mv} $RPM_BUILD_ROOT%{_bindir}/wireshark{-gtk,}} | |
4bd1bf6e | 370 | |
c06ca841 | 371 | %clean |
372 | rm -rf $RPM_BUILD_ROOT | |
373 | ||
d2bee84f JB |
374 | %pre gui-common |
375 | %update_mime_database | |
376 | ||
377 | %postun gui-common | |
378 | %update_mime_database | |
379 | ||
eb0e86a1 | 380 | %pre common |
3db19835 ER |
381 | %groupadd -P %{name}-common -g 104 wireshark |
382 | ||
383 | %post common | |
3db19835 ER |
384 | /sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' %{_bindir}/dumpcap |
385 | exit 0 | |
386 | ||
387 | %postun common | |
3db19835 ER |
388 | if [ "$1" = "0" ]; then |
389 | %groupremove wireshark | |
390 | fi | |
3d4f4fbf | 391 | |
6101a021 JB |
392 | %post libs -p /sbin/ldconfig |
393 | %postun libs -p /sbin/ldconfig | |
3d4f4fbf | 394 | |
d2bee84f | 395 | %if %{with gtk} |
681bd53b JB |
396 | %files |
397 | %defattr(644,root,root,755) | |
3564cfa5 | 398 | %attr(755,root,root) %{_bindir}/wireshark |
d2bee84f JB |
399 | %{_desktopdir}/wireshark.desktop |
400 | %endif | |
401 | ||
402 | %if %{with gui} | |
403 | %files gui-common | |
404 | %defattr(644,root,root,755) | |
681bd53b | 405 | %{_datadir}/%{name} |
d2bee84f JB |
406 | %{_datadir}/appdata/wireshark.appdata.xml |
407 | %{_datadir}/mime/packages/wireshark.xml | |
eb0e86a1 | 408 | %{_pixmapsdir}/%{name}.png |
4bd1bf6e AO |
409 | %{_iconsdir}/hicolor/16x16/apps/%{name}.png |
410 | %{_iconsdir}/hicolor/16x16/mimetypes/application-%{name}-doc.png | |
411 | %{_iconsdir}/hicolor/24x24/apps/%{name}.png | |
412 | %{_iconsdir}/hicolor/24x24/mimetypes/application-%{name}-doc.png | |
413 | %{_iconsdir}/hicolor/32x32/apps/%{name}.png | |
414 | %{_iconsdir}/hicolor/32x32/mimetypes/application-%{name}-doc.png | |
415 | %{_iconsdir}/hicolor/48x48/apps/%{name}.png | |
416 | %{_iconsdir}/hicolor/48x48/mimetypes/application-%{name}-doc.png | |
417 | %{_iconsdir}/hicolor/64x64/apps/%{name}.png | |
418 | %{_iconsdir}/hicolor/64x64/mimetypes/application-%{name}-doc.png | |
419 | %{_iconsdir}/hicolor/128x128/apps/%{name}.png | |
420 | %{_iconsdir}/hicolor/128x128/mimetypes/application-%{name}-doc.png | |
421 | %{_iconsdir}/hicolor/256x256/apps/%{name}.png | |
422 | %{_iconsdir}/hicolor/256x256/mimetypes/application-%{name}-doc.png | |
423 | %{_iconsdir}/hicolor/scalable/apps/%{name}.svg | |
3564cfa5 | 424 | %{_mandir}/man1/wireshark.1* |
f362b44f | 425 | %endif |
681bd53b | 426 | |
6101a021 JB |
427 | %if %{with qt} |
428 | %files qt | |
429 | %defattr(644,root,root,755) | |
430 | %attr(755,root,root) %{_bindir}/wireshark-qt | |
431 | %{_desktopdir}/wireshark-qt.desktop | |
432 | %endif | |
433 | ||
8556fd8d | 434 | %files common |
69177e7d | 435 | %defattr(644,root,root,755) |
3ab5984d | 436 | %doc AUTHORS* ChangeLog NEWS README.md README.linux doc/README.* |
f362b44f | 437 | %dir %{_libdir}/%{name} |
5ab012f2 | 438 | %dir %{_libdir}/%{name}/extcap |
f362b44f | 439 | %dir %{_libdir}/%{name}/plugins |
3ab5984d JR |
440 | %dir %{_libdir}/%{name}/plugins/2.6 |
441 | %dir %{_libdir}/%{name}/plugins/2.6/codecs | |
442 | %dir %{_libdir}/%{name}/plugins/2.6/epan | |
443 | %dir %{_libdir}/%{name}/plugins/2.6/wiretap | |
6101a021 | 444 | %attr(755,root,root) %{_libdir}/%{name}/extcap/ciscodump |
5ab012f2 AO |
445 | %attr(755,root,root) %{_libdir}/%{name}/extcap/androiddump |
446 | %attr(755,root,root) %{_libdir}/%{name}/extcap/randpktdump | |
6101a021 JB |
447 | %attr(755,root,root) %{_libdir}/%{name}/extcap/sshdump |
448 | %attr(755,root,root) %{_libdir}/%{name}/extcap/udpdump | |
3ab5984d JR |
449 | %attr(755,root,root) %{_libdir}/%{name}/plugins/2.6/codecs/*.so |
450 | %attr(755,root,root) %{_libdir}/%{name}/plugins/2.6/epan/*.so | |
451 | %attr(755,root,root) %{_libdir}/%{name}/plugins/2.6/wiretap/*.so | |
61c15373 | 452 | %attr(755,root,root) %{_bindir}/capinfos |
4d6dc41b | 453 | %attr(755,root,root) %{_bindir}/captype |
7d460fd4 | 454 | %attr(755,root,root) %{_bindir}/dftest |
3db19835 | 455 | %attr(750,root,wireshark) %{_bindir}/dumpcap |
9a51ce65 | 456 | %attr(755,root,root) %{_bindir}/editcap |
4bd1bf6e | 457 | %attr(755,root,root) %{_bindir}/idl2wrs |
7d460fd4 | 458 | %attr(755,root,root) %{_bindir}/mergecap |
2b45c3c4 | 459 | %attr(755,root,root) %{_bindir}/mmdbresolve |
7d460fd4 | 460 | %attr(755,root,root) %{_bindir}/randpkt |
38791bb5 | 461 | %attr(755,root,root) %{_bindir}/rawshark |
5bc49780 | 462 | %attr(755,root,root) %{_bindir}/reordercap |
6101a021 | 463 | %attr(755,root,root) %{_bindir}/sharkd |
38791bb5 | 464 | %attr(755,root,root) %{_bindir}/text2pcap |
6101a021 | 465 | %attr(755,root,root) %{_bindir}/tfshark |
3d79ff95 | 466 | %{_mandir}/man1/androiddump.1* |
38791bb5 | 467 | %{_mandir}/man1/capinfos.1* |
3ab5984d | 468 | %{_mandir}/man1/captype.1* |
2b45c3c4 | 469 | %{_mandir}/man1/ciscodump.1* |
b314d27d | 470 | %{_mandir}/man1/dftest.1* |
38791bb5 JB |
471 | %{_mandir}/man1/dumpcap.1* |
472 | %{_mandir}/man1/editcap.1* | |
38791bb5 | 473 | %{_mandir}/man1/mergecap.1* |
2b45c3c4 | 474 | %{_mandir}/man1/mmdbresolve.1* |
38791bb5 | 475 | %{_mandir}/man1/rawshark.1* |
b314d27d | 476 | %{_mandir}/man1/randpkt.1* |
5ab012f2 | 477 | %{_mandir}/man1/randpktdump.1* |
5bc49780 | 478 | %{_mandir}/man1/reordercap.1* |
6101a021 | 479 | %{_mandir}/man1/sshdump.1* |
38791bb5 | 480 | %{_mandir}/man1/text2pcap.1* |
e8c5abe8 | 481 | %{_mandir}/man1/udpdump.1* |
5ab012f2 | 482 | %{_mandir}/man4/extcap.4* |
9b0cad4e | 483 | %{_mandir}/man4/wireshark-filter.4* |
9a51ce65 | 484 | |
3564cfa5 | 485 | %files -n twireshark |
5077cd31 | 486 | %defattr(644,root,root,755) |
3564cfa5 | 487 | %attr(755,root,root) %{_bindir}/tshark |
b314d27d | 488 | %{_mandir}/man1/tshark*.1* |
2bb0e3ef | 489 | |
6101a021 | 490 | %files libs |
2bb0e3ef | 491 | %defattr(644,root,root,755) |
4bd1bf6e | 492 | %doc wiretap/README* |
6101a021 | 493 | %attr(755,root,root) %{_libdir}/libwireshark.so.*.*.* |
3ab5984d | 494 | %attr(755,root,root) %ghost %{_libdir}/libwireshark.so.10 |
3d4f4fbf | 495 | %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.* |
3ab5984d | 496 | %attr(755,root,root) %ghost %{_libdir}/libwiretap.so.8 |
5ab012f2 | 497 | %attr(755,root,root) %{_libdir}/libwscodecs.so.*.*.* |
3ab5984d | 498 | %attr(755,root,root) %ghost %{_libdir}/libwscodecs.so.2 |
eb0e86a1 | 499 | %attr(755,root,root) %{_libdir}/libwsutil.so.*.*.* |
3ab5984d | 500 | %attr(755,root,root) %ghost %{_libdir}/libwsutil.so.9 |
3d4f4fbf | 501 | |
6101a021 | 502 | %files devel |
3d4f4fbf | 503 | %defattr(644,root,root,755) |
6101a021 | 504 | %attr(755,root,root) %{_libdir}/libwireshark.so |
3d4f4fbf | 505 | %attr(755,root,root) %{_libdir}/libwiretap.so |
5ab012f2 | 506 | %attr(755,root,root) %{_libdir}/libwscodecs.so |
d88a1752 | 507 | %attr(755,root,root) %{_libdir}/libwsutil.so |
6101a021 | 508 | %{_libdir}/libwireshark.la |
3d4f4fbf | 509 | %{_libdir}/libwiretap.la |
5ab012f2 | 510 | %{_libdir}/libwscodecs.la |
5a2627c1 | 511 | %{_libdir}/libwsutil.la |
6101a021 JB |
512 | %{_includedir}/wireshark |
513 | %{_pkgconfigdir}/wireshark.pc |