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