]> git.pld-linux.org Git - packages/wireshark.git/blob - wireshark.spec
- R: pango-modules is back for ra-updates-general
[packages/wireshark.git] / wireshark.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk1            # builds gtk+1 (not gtk+2) based ethereal binary
4 %bcond_without  snmp            # builds without snmp support
5 #
6 Summary:        Network traffic and protocol analyzer
7 Summary(es):    Analizador de tráfico de red
8 Summary(pl):    Analizator ruchu i protoko³ów sieciowych
9 Summary(pt_BR): Analisador de tráfego de rede
10 Summary(ru):    áÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ
11 Summary(uk):    áÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ
12 Name:           ethereal
13 Version:        0.10.3
14 Release:        6
15 License:        GPL
16 Group:          Networking
17 Source0:        http://www.ethereal.com/distribution/all-versions/%{name}-%{version}.tar.bz2
18 # Source0-md5:  6902272eb5304f57db76bf91abe453d1
19 Source1:        %{name}.desktop
20 Source2:        %{name}.su-start-script
21 URL:            http://www.ethereal.com/
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  libelf-devel
25 BuildRequires:  flex
26 %if %{with gtk1}
27 BuildRequires:  gtk+-devel >= 1.2
28 %else
29 BuildRequires:  gtk+2-devel
30 %endif
31 BuildRequires:  libpcap-devel >= 0.4
32 BuildRequires:  libtool
33 BuildRequires:  openssl-devel >= 0.9.6m
34 BuildRequires:  perl-devel
35 %{!?_without_snmp:BuildRequires:        ucd-snmp-devel}
36 BuildRequires:  zlib-devel
37 Requires:       %{name}-common = %{version}-%{release}
38 Requires:       libpcap >= 0.4
39 Requires:       pango-modules
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Obsoletes:      ethereal-gnome
42
43 %define         _prefix         /usr/X11R6
44 %define         _mandir         /usr/X11R6/man
45 %define         _desktopdir     %{_applnkdir}/Network/Misc
46
47 %description
48 Ethereal 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. Ethereal 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 Ethereal jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz
61 protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
62 Umo¿liwia on przechwytywanie oraz intereaktywn± analizê zawarto¶ci
63 ramek oraz ponad stu protoko³ów sieciowych. Ethereal 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 Ethereal é um analisador de protocolo de rede baseado no GTK+.
70
71 %description -l ru
72 Ethereal - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ
73 ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap.
74
75 %description -l uk
76 Ethereal - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ 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 Ethereal 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. Ethereal 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 Ethereal jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz
99 protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
100 Umo¿liwia on przechwytywanie oraz intereaktywn± analizê zawarto¶ci
101 ramek oraz ponad stu protoko³ów sieciowych. Ethereal 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 Ethereal é um analisador de protocolo de rede baseado no GTK+.
108
109 %description common -l ru
110 Ethereal - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ
111 ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap.
112
113 %description common -l uk
114 Ethereal - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ 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 - editcap - Edit and/or translate the format of capture files
126 - mergecap - Merges two capture files into one
127 - text2cap - Generate a capture file from an ASCII hexdump of packets
128
129 %description tools -l pl
130 Zestaw narzêdzi do obróbki plików z przechwyconymi pakietami. Zawiera:
131 - editcap - do edycji plików i t³umaczenia ich na inne formaty,
132 - mergecap - do ³±czenia dwóch plików w jeden,
133 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
134   pakietów.
135
136 %package -n tethereal
137 Summary:        Text-mode network traffic and protocol analyzer
138 Summary(pl):    Tekstowy analizator ruchu i protoko³ów sieciowych
139 Summary(pt_BR): Analisador modo texto de tráfego de rede (sniffer)
140 Group:          Networking
141 Requires:       %{name}-common = %{version}-%{release}
142 Requires:       libpcap >= 0.4
143
144 %description -n tethereal
145 Tethereal is a network protocol analyzer. It lets you capture packet
146 data from a live network, or read packets from a previously saved
147 capture file, either printing a decoded form of those packets to the
148 standard output or writing the packets to a file. Tethereal's native
149 capture file format is libpcap format, which is also the format used
150 by tcpdump and various other tools.
151
152 %description -n tethereal -l pl
153 Tethereal jest analizatorem protoko³ów sieciowych. Pozwala na
154 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
155 Zdekodowany wynik (a tethereal zna ponad 100 rozmaitych protoko³ów
156 sieciowych!) jest wy¶wietlony na ekranie. Natywnym formatem plików
157 tetherala jest format libpcap, tak wiêc jest on kompatybilny z
158 tcpdumpem i innymi podobnymi narzêdziami.
159
160 %description -n tethereal -l pt_BR
161 Esta é uma versão para modo texto do analisador de tráfego de rede
162 Ethereal.
163
164 %package -n libwiretap
165 Summary:        Packet capture and analysis library
166 Summary(pl):    Biblioteka do przechwytywania i analizy pakietów
167 Group:          Libraries
168
169 %description -n libwiretap
170 Wiretap is a library that is being developed as a future replacement
171 for libpcap, the current standard Unix library for packet capturing.
172
173 %description -n libwiretap -l pl
174 Biblioteka Wiretap rozwijana jest jako przysz³y nastepca biblioteki
175 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
176
177 %package -n libwiretap-devel
178 Summary:        Header files for libwiretap packet capture library
179 Summary(pl):    Pliki nag³ówkowe biblioteki libwiretap do przechwytywania pakietów
180 Group:          Development/Libraries
181 %if %{with gtk1}
182 Requires:       gtk+-devel >= 1.2
183 %else
184 Requires:       gtk+2-devel
185 %endif
186 Requires:       libwiretap = %{version}-%{release}
187
188 %description -n libwiretap-devel
189 Wiretap is a library that is being developed as a future replacement
190 for libpcap, the current standard Unix library for packet capturing.
191 Thos package contains files necessary for programming using Wiretap
192 library.
193
194 %description -n libwiretap-devel -l pl
195 Biblioteka Wiretap rozwijana jest jako przysz³y nastepca biblioteki
196 libpcap, obecnie standardu przechwytywania pakietów w systemach Unix.
197 Pakiet zawiera pliki dla programistów korzystaj±cych z tej biblioteki.
198
199 %prep
200 %setup -q
201
202 %build
203 rm -f missing
204 %{__libtoolize}
205 %{__aclocal} -I aclocal-fallback
206 %{__autoconf}
207 %{__automake}
208 cd epan
209 rm -f missing
210 %{__aclocal} -I ../aclocal-fallback
211 %{__autoconf}
212 # don't use --force here
213 automake -a -c --foreign
214 cd ../wiretap
215 %{__aclocal} -I ../aclocal-fallback
216 %{__autoconf}
217 # don't use --force here
218 automake -a -c --foreign
219 cd ..
220 %configure \
221         --enable-randpkt \
222         --enable-dftest \
223         %{!?with_gtk1:--enable-gtk2} \
224         --with-plugindir=%{_libdir}/%{name} \
225         %{!?with_snmp:--without-net-snmp --without-ucdsnmp}
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/ethereal48x48-trans.png \
239         $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
240
241 # plugins *.la are useless - *.so are loaded through gmodule
242 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}/*.la
243
244 install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
245
246 %clean
247 rm -rf $RPM_BUILD_ROOT
248
249 %post   common -p /sbin/ldconfig
250 %postun common -p /sbin/ldconfig
251
252 %post   -n libwiretap -p /sbin/ldconfig
253 %postun -n libwiretap -p /sbin/ldconfig
254
255 %files
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_bindir}/ethereal
258 %attr(755,root,root) %{_bindir}/%{name}_su
259 %dir %{_libdir}/%{name}
260 %dir %{_libdir}/%{name}/plugins
261 %dir %{_libdir}/%{name}/plugins/%{version}
262 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}/*.so
263 %{_datadir}/%{name}
264 %{_desktopdir}/*
265 %{_pixmapsdir}/*
266 %{_mandir}/man1/ethereal.1*
267
268 %files common
269 %defattr(644,root,root,755)
270 %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
271 %attr(755,root,root) %{_libdir}/libethereal.so.*.*.*
272 %{_mandir}/man4/ethereal-filter.4*
273
274 %files tools
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_bindir}/dftest
277 %attr(755,root,root) %{_bindir}/editcap
278 %attr(755,root,root) %{_bindir}/idl2eth
279 %attr(755,root,root) %{_bindir}/mergecap
280 %attr(755,root,root) %{_bindir}/text2pcap
281 %attr(755,root,root) %{_bindir}/randpkt
282 %{_mandir}/man1/editcap*
283 %{_mandir}/man1/idl2eth*
284 %{_mandir}/man1/mergecap*
285 %{_mandir}/man1/text2pcap*
286
287 %files -n tethereal
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_bindir}/tethereal
290 %{_mandir}/man1/tethereal*
291
292 %files -n libwiretap
293 %defattr(644,root,root,755)
294 %doc wiretap/{README*,AUTHORS,NEWS,ChangeLog}
295 %attr(755,root,root) %{_libdir}/libwiretap.so.*.*.*
296
297 %files -n libwiretap-devel
298 %defattr(644,root,root,755)
299 %{_includedir}/wiretap
300 %{_libdir}/libwiretap.so
301 %{_libdir}/libwiretap.la
This page took 0.101048 seconds and 3 git commands to generate.