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