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