]> git.pld-linux.org Git - packages/gg2.git/blob - gg2.spec
16a2323b2d279d9177c1c824461010a0caec7f69
[packages/gg2.git] / gg2.spec
1
2 %bcond_with     arts
3 %bcond_without  perl
4 %bcond_without  esd
5
6 %define         _snap   20031122
7 Summary:        GNU Gadu 2 - free talking
8 Summary(es):    GNU Gadu 2 - charlar libremente
9 Summary(pl):    GNU Gadu 2 - wolne gadanie
10 Name:           gg2
11 Version:        2.0
12 Release:        2.%{_snap}.1
13 Epoch:          2
14 License:        GPL v2+
15 Group:          Applications/Communications
16 Source0:        http://gg.tiwek.com/gg2/snapshots/%{name}-%{_snap}.tar.bz2
17 # Source0-md5:  2fe054116952b8e7ee63c72845ec88fa
18 Source1:        %{name}.desktop
19 URL:            http://www.gadu.gnu.pl/
20 BuildRequires:  perl-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake >= 1.7
23 %{?with_esd:BuildRequires:      esound-devel >= 0.2.7}
24 BuildRequires:  gettext-devel >= 0.11.0
25 BuildRequires:  glib2-devel  >= 2.2.0
26 BuildRequires:  gtk+2-devel  >= 2.2.0
27 BuildRequires:  intltool
28 BuildRequires:  libgadu-devel >= 4:1.4
29 BuildRequires:  libtlen-devel
30 BuildRequires:  libtool
31 BuildRequires:  loudmouth-devel >= 0.13.1
32 BuildRequires:  pkgconfig
33 BuildRequires:  xosd-devel   >= 2.0.0
34 %{?with_arts:BuildRequires:     arts-devel}
35 %{?with_perl:BuildRequires:     perl-devel}
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 Gadu-Gadu, Tlen.pl and others instant messanger client with
40 GTK+2 GUI on GNU/GPL.
41
42 %description -l es
43 Un cliente para Gadu-Gadu, Tlen.pl y otros protocolos con un GUI de
44 GTK+2, bajo la licencia GNU/GPL.
45
46 %description -l pl
47 Klient Gadu-Gadu, Tlen.pl oraz innych protoko³ów z GUI pod GTK+2 na
48 licencji GNU/GPL.
49
50 %package devel
51 Summary:        Headers for libgg2_core library to develop plugins
52 Summary(es):    Cabeceras para la biblioteca libgg2_core para desarrollar plugins
53 Summary(pl):    Pliki nag³ówkowe biblioteki libgg2_core potrzebne do rozwijania wtyczek
54 Group:          Applications/Communications
55 Requires:       %{name} = %{epoch}:%{version}-%{release}
56 Requires:       glib2-devel
57 Requires:       perl-devel
58
59 %description devel
60 This package contains header files for libgg2_core library, needed to
61 develop plugins for GNU Gadu 2.
62
63 %description devel -l es
64 Este paquete contiene los ficheros de cabeceras de la biblioteca
65 libgg2_core necesarios para desarrollar plugins para GNU Gadu 2.
66
67 %description devel -l pl
68 Ten pakiet zawiera pliki nag³ówkowe biblioteki libgg2_core, potrzebne
69 do rozwijania wtyczek do GNU Gadu 2.
70
71 %package gui-gtk+2
72 Summary:        GTK+2 GUI plugin
73 Summary(es):    Plugin de GUI en GTK+2
74 Summary(pl):    Wtyczka z GUI w GTK+2
75 Group:          Applications/Communications
76 Requires:       %{name} = %{epoch}:%{version}-%{release}
77
78 %description gui-gtk+2
79 GTK+2 GUI plugin for GNU Gadu 2.
80
81 %description gui-gtk+2 -l es
82 Un plugin con un GUI en GTK+2 para GNU Gadu 2.
83
84 %description gui-gtk+2 -l pl
85 Wtyczka z GUI w GTK+2 do GNU Gadu 2.
86
87 %package emoticons
88 Summary:        Emoticons
89 Summary(es):    Emoticons
90 Summary(pl):    Emotikony
91 Group:          Applications/Communications
92 Requires:       %{name} = %{epoch}:%{version}-%{release}
93
94 %description emoticons
95 Emotions icons and description files.
96
97 %description emoticons -l es
98 Iconas de emociones y sus ficheros de descripción.
99
100 %description emoticons -l pl
101 Zestaw ikon z emotikonami, oraz plikiem konfiguracyjnym.
102
103 %package gadu-gadu
104 Summary:        Gadu-Gadu plugin
105 Summary(es):    Plugin de Gadu-Gadu
106 Summary(pl):    Wtyczka protoko³u Gadu-Gadu
107 Group:          Applications/Communications
108 Requires:       %{name} = %{epoch}:%{version}-%{release}
109
110 %description gadu-gadu
111 Gadu-Gadu protocol plugin.
112
113 %description gadu-gadu -l es
114 Un plugin para el protocolo Gadu-Gadu.
115
116 %description gadu-gadu -l pl
117 Wtyczka protoko³u Gadu-Gadu.
118
119 %package tlen
120 Summary:        Tlen.pl plugin
121 Summary(es):    Plugin de Tlen.pl
122 Summary(pl):    Wtyczka protoko³u Tlen.pl
123 Group:          Applications/Communications
124 Requires:       %{name} = %{epoch}:%{version}-%{release}
125
126 %description tlen
127 Tlen.pl protocol plugin.
128
129 %description tlen -l es
130 Un plugin para el protocolo Tlen.pl.
131
132 %description tlen -l pl
133 Wtyczka protoko³u Tlen.pl.
134
135 %package jabber
136 Summary:        Jabber.org plugin
137 Summary(es):    Plugin de Jabber.org
138 Summary(pl):    Wtyczka protoko³u Jabber
139 Group:          Applications/Communications
140 Requires:       %{name} = %{epoch}:%{version}-%{release}
141
142 %description jabber
143 Jabber protocol plugin.
144
145 %description jabber -l es
146 Un plugin para el protocolo Jabber.
147
148 %description jabber -l pl
149 Wtyczka protoko³u Jabber.
150
151 %if %{with esd}
152 %package sound-esd
153 Summary:        Sound support with ESD
154 Summary(es):    Soporte de sonido a través de ESD
155 Summary(pl):    Obs³uga d¼wiêku poprzez ESD
156 Group:          Applications/Communications
157 Requires:       %{name} = %{epoch}:%{version}-%{release}
158
159 %description sound-esd
160 Sound support with ESD.
161
162 %description sound-esd -l es
163 Soporte de sonido a través de ESD.
164
165 %description sound-esd -l pl
166 Obs³uga d¼wiêku poprzez ESD.
167 %endif
168
169 %package sound-oss
170 Summary:        OSS sound support
171 Summary(es):    Soporte de sonido a través de OSS
172 Summary(pl):    Obs³uga d¼wiêku OSS
173 Group:          Applications/Communications
174 Requires:       %{name} = %{epoch}:%{version}-%{release}
175
176 %description sound-oss
177 OSS sound support.
178
179 %description sound-oss -l es
180 Soporte de sonido a través de OSS.
181
182 %description sound-oss -l pl
183 Obs³uga d¼wiêku OSS.
184
185 %package sound-external
186 Summary:        Sound support with external player
187 Summary(es):    Soporte de sonido vía un reproductor externo
188 Summary(pl):    Obs³uga d¼wiêku przez zewnêtrzny program
189 Group:          Applications/Communications
190 Requires:       %{name} = %{epoch}:%{version}-%{release}
191
192 %description sound-external
193 Sound support with external player.
194
195 %description sound-external -l es
196 Soporte de sonido a través de un reproductor externo.
197
198 %description sound-external -l pl
199 Obs³uga d¼wiêku przez zewnêtrzny program.
200
201 %if %{with arts}
202 %package sound-aRts
203 Summary:        Sound support with aRts
204 Summary(es):    Soporte de sonido a través de aRts
205 Summary(pl):    Obs³uga d¼wiêku poprzez aRts
206 Group:          Applications/Communications
207 Requires:       %{name} = %{version}
208
209 %description sound-aRts
210 Sound support with aRts.
211
212 %description sound-aRts -l es
213 Soporte de sonido a través de aRts.
214
215 %description sound-aRts -l pl
216 Obs³uga d¼wiêku poprzez aRts.
217 %endif
218
219 %package xosd
220 Summary:        Support for X On Screen Display
221 Summary(es):    Soporte para plasmar mensajes sobre el fondo de X
222 Summary(pl):    Wy¶wietlanie komunikatów na ekranie X
223 Group:          Applications/Communications
224 Requires:       %{name} = %{epoch}:%{version}-%{release}
225
226 %description xosd
227 Support for X On Screen Display.
228
229 %description xosd -l es
230 Soporte para plasmar mensajes sobre el fondo (XOSD).
231
232 %description xosd -l pl
233 Wy¶wietlanie komunikatów na ekranie X.
234
235 %package docklet-system-tray
236 Summary:        Support for Window Managers notification areas
237 Summary(es):    Soporte para áreas de notificación de los Manejantes de Ventanas
238 Summary(pl):    Obs³uga obszarów powiadomieñ w ró¿nych zarz±dcach okien
239 Group:          Applications/Communications
240 Requires:       %{name} = %{epoch}:%{version}-%{release}
241 Obsoletes:      %{name}-docklet
242
243 %description docklet-system-tray
244 Support for Window Managers nofinication areas (GNOME, KDE).
245
246 %description docklet-system-tray -l es
247 Soporte para áreas de notificación de los Manejantes de Ventanas
248 (GNOME, KDE).
249
250 %description docklet-system-tray -l pl
251 Obs³uga obszarów powiadomieñ w ró¿nych zarz±dcach okien (GNOME, KDE).
252
253 %package docklet-dockapp
254 Summary:        Support for WindowMaker-style dockapp
255 Summary(es):    Soporte para áreas de notificación de los Manejantes de Ventanas
256 Summary(pl):    Obs³uga obszarów powiadomieñ w ró¿nych zarz±dcach okien
257 Group:          Applications/Communications
258 Requires:       %{name} = %{epoch}:%{version}-%{release}
259 Obsoletes:      %{name}-docklet
260
261 %description docklet-dockapp
262 Support for WindowMaker-style dockapp
263
264 %description docklet-dockapp -l pl
265 Obs³uga dokowalnego apletu zgodnego z WindowMaker
266
267 %package sms
268 Summary:        SMS Gateway
269 Summary(es):    Puerta SMS
270 Summary(pl):    Bramka SMS
271 Group:          Applications/Communications
272 Requires:       %{name} = %{epoch}:%{version}-%{release}
273
274 %description sms
275 Send SMS to cellular phones via web gateways.
276
277 %description sms -l es
278 Manda mensajes SMS a móviles vía puertas del Web.
279
280 %description sms -l pl
281 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki WWW.
282
283 %package remote
284 Summary:        Remote access from other applications
285 Summary(es):    Acceso remoto desde otras aplicaciones
286 Summary(pl):    Dostêp do programu z innych aplikacji
287 Group:          Applications/Communications
288 Requires:       %{name} = %{epoch}:%{version}-%{release}
289
290 %description remote
291 Make possible exchange data with other applications.
292
293 %description remote -l es
294 Permite intercambiar los datos con otras aplicaciones.
295
296 %description remote -l pl
297 Wtyczka umo¿liwiaj±ca wymianê informacji z innymi aplikacjami.
298
299 %package update
300 Summary:        Check for new GNU Gadu newer version
301 Summary(es):    Verifica si hay versiones nuevas de GNU Gadu
302 Summary(pl):    Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
303 Group:          Applications/Communications
304 Requires:       %{name} = %{epoch}:%{version}-%{release}
305
306 %description update
307 Check for new GNU Gadu newer version.
308
309 %description update -l es
310 Verifica si hay nuevas versiones de GNU Gadu.
311
312 %description update -l pl
313 Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
314
315 %package themes
316 Summary:        Themes for GNU Gadu 2 GUI
317 Summary(es):    Temas para el GUI de GNU Gadu 2
318 Summary(pl):    Motywy graficzne dla GUI GNU Gadu 2
319 Group:          Applications/Communications
320 Requires:       %{name} = %{epoch}:%{version}-%{release}
321 Requires:       %{name}-gui-gtk+2
322
323 %description themes
324 Themes for GNU Gadu 2 GUI.
325
326 %description themes -l es
327 Temas para el GUI de GNU Gadu 2.
328
329 %description themes -l pl
330 Motywy graficzne dla GUI GNU Gadu 2.
331
332 %prep
333 %setup -q -n %{name}-%{_snap}
334
335 %build
336 rm -f missing
337 intltoolize --copy --force
338 %{__libtoolize}
339 %{__aclocal}
340 %{__automake}
341 %{__autoconf}
342
343 %configure \
344         %{!?debug:--disable-gdb} \
345         %{!?debug:--disable-debug} \
346         --with-gui \
347         --with-gadu \
348         --with-tlen \
349         --with-jabber \
350         --with-xosd \
351         --with-sms \
352         --with-docklet_system_tray \
353         --with-docklet_dockapp \
354         --%{?with_esd:with}%{?!with_esd:without}-esd \
355         --with-oss \
356         --with-external \
357         --with-update \
358         --%{?with_arts:with}%{?!with_arts:without}-arts \
359         --%{?with_perl:enable}%{?!with_perl:disable}-perl \
360         --with-remote
361
362 %{__make}
363
364 %install
365 rm -rf $RPM_BUILD_ROOT
366
367 %{__make} install \
368         DESTDIR=$RPM_BUILD_ROOT
369
370 install -d $RPM_BUILD_ROOT%{_desktopdir}
371 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
372 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
373 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
374 install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
375
376 %find_lang %{name} --all-name --with-gnome
377
378 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
379
380 %clean
381 rm -rf $RPM_BUILD_ROOT
382
383 %post   -p /sbin/ldconfig
384 %postun -p /sbin/ldconfig
385
386 %files -f %{name}.lang
387 %defattr(644,root,root,755)
388 %doc A* C* N* R* T* contrib doc/*
389 %attr(755,root,root) %{_bindir}/gg2
390 %attr(755,root,root) %{_libdir}/libgg2_core.so.*.*.*
391 %dir %{_libdir}/gg2
392 %{_datadir}/%{name}/sounds
393
394 %files gui-gtk+2
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/gg2/libGUI_plugin.so
397 %dir %{_datadir}/gg2
398 %dir %{_datadir}/gg2/pixmaps
399 %{_datadir}/gg2/pixmaps/*.png
400 %{_datadir}/gg2/pixmaps/*.gif
401 %{_pixmapsdir}/%{name}.png
402 %{_desktopdir}/gg2.desktop
403
404 %files devel
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/libgg2_core.so
407 %{_libdir}/libgg2_core.la
408 %{_includedir}/gg2_core.h
409 %{_pkgconfigdir}/gg2_core.pc
410
411 %files emoticons
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_datadir}/gg2/pixmaps/emoticons
414
415 %files gadu-gadu
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_libdir}/gg2/libgadu_gadu_plugin.so
418
419 %files tlen
420 %defattr(644,root,root,755)
421 %attr(755,root,root) %{_libdir}/gg2/libtlen_plugin.so
422
423 %files jabber
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_libdir}/gg2/libjabber_plugin.so
426
427 %if %{with esd}
428 %files sound-esd
429 %defattr(644,root,root,755)
430 %attr(755,root,root) %{_libdir}/gg2/libsound_esd_plugin.so
431 %endif
432
433 %files sound-oss
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/gg2/libsound_oss_plugin.so
436
437 %files sound-external
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so
440
441 %if %{with arts}
442 %files sound-aRts
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so
445 %endif
446
447 %files xosd
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so
450
451 %files docklet-system-tray
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_libdir}/gg2/libdocklet_system_tray_plugin.so
454
455 %files docklet-dockapp
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_libdir}/gg2/libdocklet_dockapp_plugin.so
458
459 %files sms
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/gg2/libsms_plugin.so
462
463 %files remote
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/gg2/libremote_plugin.so
466
467 %files update
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_libdir}/gg2/libupdate_plugin.so
470
471 %files themes
472 %defattr(644,root,root,755)
473 %dir %{_datadir}/gg2/themes
474 %{_datadir}/gg2/themes/*.theme
475 %dir %{_datadir}/gg2/pixmaps/icons
476 %dir %{_datadir}/gg2/pixmaps/icons/bubble
477 %dir %{_datadir}/gg2/pixmaps/icons/classic
478 %dir %{_datadir}/gg2/pixmaps/icons/modern
479 %dir %{_datadir}/gg2/pixmaps/icons/rozgwiazda
480 %{_datadir}/gg2/pixmaps/icons/bubble/*.png
481 %{_datadir}/gg2/pixmaps/icons/bubble/README
482 %{_datadir}/gg2/pixmaps/icons/classic/*.png
483 %{_datadir}/gg2/pixmaps/icons/classic/README
484 %{_datadir}/gg2/pixmaps/icons/modern/*.png
485 %{_datadir}/gg2/pixmaps/icons/modern/README
486 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/*.png
487 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/license.txt
488 %{_datadir}/gg2/pixmaps/icons/ghosts/*.png
489 %{_datadir}/gg2/pixmaps/icons/ghosts/README
490 %{_datadir}/gg2/pixmaps/icons/tlen-3d/README
491 %{_datadir}/gg2/pixmaps/icons/tlen-3d/*.png
This page took 0.135072 seconds and 3 git commands to generate.