]> git.pld-linux.org Git - packages/wireshark.git/blob - wireshark.spec
- added libwiretap-devel package
[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:        1
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:       libpcap >= 0.4
38 Requires:       %{name}-common = %{version}
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
84 %description common
85 Ethereal is the name for powerful graphical network sniffer, traffic
86 and protocol analyzer based on GTK+ and libpcap libraries. It lets you
87 capture and interactively browse the contents of network frames with
88 vast knowledge of more than 100 network protocols. Ethereal has
89 severeal useful features, including a rich display filter language,
90 the ability to view the ASCII contents of a TCP connection and plug-in
91 capabilities.
92
93 %description common -l es
94 Analizador de tráfico de red.
95
96 %description common -l pl
97 Ethereal jest potê¿nym, graficznym snifferem, analizatorem ruchu oraz
98 protoko³ów sieciowych opartym na bibliotekach GTK+ oraz libpcap.
99 Umo¿liwia on przechwytywanie oraz intereaktywn± analizê zawarto¶ci
100 ramek oraz ponad stu protoko³ów sieciowych. Ethereal posiada wiele
101 u¿ytecznych cech, takich jak rozbudowany jêzyk filtrów wy¶wietlania,
102 mo¿liwo¶æ ogl±dania przebiegu sesji TCP oraz mo¿liwo¶æ do³±czania
103 wtyczek (plug-ins).
104
105 %description common -l pt_BR
106 O Ethereal é um analisador de protocolo de rede baseado no GTK+.
107
108 %description common -l ru
109 Ethereal - ÜÔÏ ÁÎÁÌÉÚÁÔÏÒ ÓÅÔÅ×ÏÇÏ ÔÒÁÆÆÉËÁ ÄÌÑ Unix-ÐÏÄÏÂÎÙÈ ïó. ïÎ
110 ÂÁÚÉÒÕÅÔÓÑ ÎÁ GTK+ É libpcap.
111
112 %description common -l uk
113 Ethereal - ÃÅ ÁÎÁ̦ÚÁÔÏÒ ÍÅÒÅÖÅ×ÏÇÏ ÔÒÁƦËÕ ÄÌÑ Unix-ÐÏĦÂÎÉÈ ïó. ÷¦Î
114 ÂÁÚÕ¤ÔØÓÑ ÎÁ GTK+ ÔÁ libpcap.
115
116 %package tools
117 Summary:        Tools for manipulating capture files
118 Summary(pl):    Narzêdzia do obróbki plików z przechwyconymi pakietami sieciowymi
119 Group:          Networking
120 Requires:       %{name}-common = %{version}
121
122 %description tools
123 Set of tools for manipulating capture files. Contains:
124 - editcap - Edit and/or translate the format of capture files
125 - mergecap - Merges two capture files into one
126 - text2cap - Generate a capture file from an ASCII hexdump of packets
127
128 %description tools -l pl
129 Zestaw narzêdzi do obróbki plików z przechwyconymi pakietami. Zawiera:
130 - editcap - do edycji plików i t³umaczenia ich na inne formaty,
131 - mergecap - do ³±czenia dwóch plików w jeden,
132 - text2cap - do generowania pliku cap z szesnastkowego zrzutu ASCII
133   pakietów.
134
135 %package -n tethereal
136 Summary:        Text-mode network traffic and protocol analyzer
137 Summary(pl):    Tekstowy analizator ruchu i protoko³ów sieciowych
138 Summary(pt_BR): Analisador modo texto de tráfego de rede (sniffer)
139 Group:          Networking
140 Requires:       %{name}-common = %{version}
141 Requires:       libpcap >= 0.4
142
143 %description -n tethereal
144 Tethereal is a network protocol analyzer. It lets you capture packet
145 data from a live network, or read packets from a previously saved
146 capture file, either printing a decoded form of those packets to the
147 standard output or writing the packets to a file. Tethereal's native
148 capture file format is libpcap format, which is also the format used
149 by tcpdump and various other tools.
150
151 %description -n tethereal -l pl
152 Tethereal jest analizatorem protoko³ów sieciowych. Pozwala na
153 przechwytywanie pakietów z sieci lub wczytywanie danych z pliku.
154 Zdekodowany wynik (a tethereal zna ponad 100 rozmaitych protoko³ów
155 sieciowych!) jest wy¶wietlony na ekranie. Natywnym formatem plików
156 tetherala jest format libpcap, tak wiêc jest on kompatybilny z
157 tcpdumpem i innymi podobnymi narzêdziami.
158
159 %description -n tethereal -l pt_BR
160 Esta é uma versão para modo texto do analisador de tráfego de rede
161 Ethereal.
162
163 %package -n libwiretap-devel
164 Summary:        Packet capture library
165 Summary(pl):    Biblioteka do przechwytywania pakietów
166 Group:          Development/Libraries
167 %if %{with gtk1}
168 Requires:       gtk+-devel >= 1.2
169 %else
170 Requires:       gtk+2-devel
171 %endif
172
173 %description -n libwiretap-devel
174 Wiretap is a library that is being developed as a future replacement for
175 libpcap, the current standard Unix library for packet capturing.
176
177 %description -n libwiretap-devel -l pl
178 Biblioteka rozwijana jako przysz³y nastepca biblioteki libpcap, obecnie
179 standardu przechwytywania pakietów w systemach Unix.
180
181 %prep
182 %setup -q
183
184 %build
185 rm -f missing
186 %{__libtoolize}
187 %{__aclocal} -I aclocal-fallback
188 %{__autoconf}
189 %{__automake}
190 cd epan
191 rm -f missing
192 %{__aclocal} -I ../aclocal-fallback
193 %{__autoconf}
194 # don't use --force here
195 automake -a -c --foreign
196 cd ../wiretap
197 %{__aclocal} -I ../aclocal-fallback
198 %{__autoconf}
199 # don't use --force here
200 automake -a -c --foreign
201 cd ..
202 %configure \
203         --enable-randpkt \
204         --enable-dftest \
205         %{!?with_gtk1:--enable-gtk2} \
206         --with-plugindir=%{_libdir}/%{name} \
207         %{!?with_snmp:--without-net-snmp --without-ucdsnmp}
208
209 %{__make}
210
211 %install
212 rm -rf $RPM_BUILD_ROOT
213 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_includedir}/wiretap}
214
215 %{__make} install \
216         DESTDIR=$RPM_BUILD_ROOT
217
218 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
219 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}_su
220 install image/ethereal48x48-trans.png \
221         $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
222
223 # plugins *.la are useless - *.so are loaded through gmodule
224 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/%{version}/*.la
225
226 install wiretap/*.h $RPM_BUILD_ROOT%{_includedir}/wiretap
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %files
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_bindir}/ethereal
234 %attr(755,root,root) %{_bindir}/%{name}_su
235 %dir %{_libdir}/%{name}
236 %dir %{_libdir}/%{name}/plugins
237 %dir %{_libdir}/%{name}/plugins/%{version}
238 %attr(755,root,root) %{_libdir}/%{name}/plugins/%{version}/*.so
239 %{_datadir}/%{name}
240 %{_desktopdir}/*
241 %{_pixmapsdir}/*
242 %{_mandir}/man1/ethereal.1*
243
244 %files common
245 %defattr(644,root,root,755)
246 %doc AUTHORS ChangeLog FAQ NEWS README{,.[lv]*} doc/{randpkt.txt,README.*}
247 %{_mandir}/man4/ethereal-filter.4*
248
249 %files tools
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_bindir}/dftest
252 %attr(755,root,root) %{_bindir}/editcap
253 %attr(755,root,root) %{_bindir}/idl2eth
254 %attr(755,root,root) %{_bindir}/mergecap
255 %attr(755,root,root) %{_bindir}/text2pcap
256 %attr(755,root,root) %{_bindir}/randpkt
257 %{_mandir}/man1/editcap*
258 %{_mandir}/man1/idl2eth*
259 %{_mandir}/man1/mergecap*
260 %{_mandir}/man1/text2pcap*
261
262 %files -n tethereal
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_bindir}/tethereal
265 %{_mandir}/man1/tethereal*
266
267 %files -n libwiretap-devel
268 %defattr(644,root,root,755)
269 %doc wiretap/{README*,AUTHORS,NEWS,ChangeLog}
270 %{_includedir}/wiretap
271 %{_libdir}/lib*.so*
This page took 0.046369 seconds and 3 git commands to generate.