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