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