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