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