]> git.pld-linux.org Git - packages/gg2.git/blob - gg2.spec
c730910b45f96ce09fc4ea0c46a0479a8b5d954d
[packages/gg2.git] / gg2.spec
1 #
2 # Conditional build:
3 %bcond_with     arts
4 %bcond_without  perl
5 %bcond_without  esd
6 #
7 %define         _snap   20031122
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
13 Release:        2.%{_snap}.1
14 Epoch:          2
15 License:        GPL v2+
16 Group:          Applications/Communications
17 Source0:        http://gg.tiwek.com/gg2/snapshots/%{name}-%{_snap}.tar.bz2
18 # Source0-md5:  2fe054116952b8e7ee63c72845ec88fa
19 Source1:        %{name}.desktop
20 URL:            http://www.gadu.gnu.pl/
21 %{?with_arts:BuildRequires:     arts-devel}
22 BuildRequires:  autoconf
23 BuildRequires:  automake >= 1.7
24 %{?with_esd:BuildRequires:      esound-devel >= 0.2.7}
25 BuildRequires:  gettext-devel >= 0.11.0
26 BuildRequires:  glib2-devel  >= 2.2.0
27 BuildRequires:  gtk+2-devel  >= 2.2.0
28 BuildRequires:  intltool
29 BuildRequires:  libgadu-devel >= 4:1.4
30 BuildRequires:  libtlen-devel
31 BuildRequires:  libtool
32 BuildRequires:  loudmouth-devel >= 0.13.1
33 %{?with_perl:BuildRequires:     perl-devel}
34 BuildRequires:  pkgconfig
35 BuildRequires:  xosd-devel   >= 2.0.0
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 %package sound-esd
152 Summary:        Sound support with ESD
153 Summary(es):    Soporte de sonido a través de ESD
154 Summary(pl):    Obs³uga d¼wiêku poprzez ESD
155 Group:          Applications/Communications
156 Requires:       %{name} = %{epoch}:%{version}-%{release}
157
158 %description sound-esd
159 Sound support with ESD.
160
161 %description sound-esd -l es
162 Soporte de sonido a través de ESD.
163
164 %description sound-esd -l pl
165 Obs³uga d¼wiêku poprzez ESD.
166
167 %package sound-oss
168 Summary:        OSS sound support
169 Summary(es):    Soporte de sonido a través de OSS
170 Summary(pl):    Obs³uga d¼wiêku OSS
171 Group:          Applications/Communications
172 Requires:       %{name} = %{epoch}:%{version}-%{release}
173
174 %description sound-oss
175 OSS sound support.
176
177 %description sound-oss -l es
178 Soporte de sonido a través de OSS.
179
180 %description sound-oss -l pl
181 Obs³uga d¼wiêku OSS.
182
183 %package sound-external
184 Summary:        Sound support with external player
185 Summary(es):    Soporte de sonido vía un reproductor externo
186 Summary(pl):    Obs³uga d¼wiêku przez zewnêtrzny program
187 Group:          Applications/Communications
188 Requires:       %{name} = %{epoch}:%{version}-%{release}
189
190 %description sound-external
191 Sound support with external player.
192
193 %description sound-external -l es
194 Soporte de sonido a través de un reproductor externo.
195
196 %description sound-external -l pl
197 Obs³uga d¼wiêku przez zewnêtrzny program.
198
199 %package sound-aRts
200 Summary:        Sound support with aRts
201 Summary(es):    Soporte de sonido a través de aRts
202 Summary(pl):    Obs³uga d¼wiêku poprzez aRts
203 Group:          Applications/Communications
204 Requires:       %{name} = %{version}
205
206 %description sound-aRts
207 Sound support with aRts.
208
209 %description sound-aRts -l es
210 Soporte de sonido a través de aRts.
211
212 %description sound-aRts -l pl
213 Obs³uga d¼wiêku poprzez aRts.
214
215 %package xosd
216 Summary:        Support for X On Screen Display
217 Summary(es):    Soporte para plasmar mensajes sobre el fondo de X
218 Summary(pl):    Wy¶wietlanie komunikatów na ekranie X
219 Group:          Applications/Communications
220 Requires:       %{name} = %{epoch}:%{version}-%{release}
221
222 %description xosd
223 Support for X On Screen Display.
224
225 %description xosd -l es
226 Soporte para plasmar mensajes sobre el fondo (XOSD).
227
228 %description xosd -l pl
229 Wy¶wietlanie komunikatów na ekranie X.
230
231 %package docklet-system-tray
232 Summary:        Support for Window Managers notification areas
233 Summary(es):    Soporte para áreas de notificación de los Manejantes de Ventanas
234 Summary(pl):    Obs³uga obszarów powiadomieñ w ró¿nych zarz±dcach okien
235 Group:          Applications/Communications
236 Requires:       %{name} = %{epoch}:%{version}-%{release}
237 Obsoletes:      %{name}-docklet
238
239 %description docklet-system-tray
240 Support for Window Managers nofinication areas (GNOME, KDE).
241
242 %description docklet-system-tray -l es
243 Soporte para áreas de notificación de los Manejantes de Ventanas
244 (GNOME, KDE).
245
246 %description docklet-system-tray -l pl
247 Obs³uga obszarów powiadomieñ w ró¿nych zarz±dcach okien (GNOME, KDE).
248
249 %package docklet-dockapp
250 Summary:        Support for WindowMaker-style dockapp
251 Summary(pl):    Obs³uga dokowalnego apletu zgodnego z WindowMakerem
252 Group:          Applications/Communications
253 Requires:       %{name} = %{epoch}:%{version}-%{release}
254 Obsoletes:      %{name}-docklet
255
256 %description docklet-dockapp
257 Support for WindowMaker-style dockapp.
258
259 %description docklet-dockapp -l pl
260 Obs³uga dokowalnego apletu zgodnego z WindowMakerem.
261
262 %package sms
263 Summary:        SMS Gateway
264 Summary(es):    Puerta SMS
265 Summary(pl):    Bramka SMS
266 Group:          Applications/Communications
267 Requires:       %{name} = %{epoch}:%{version}-%{release}
268
269 %description sms
270 Send SMS to cellular phones via web gateways.
271
272 %description sms -l es
273 Manda mensajes SMS a móviles vía puertas del Web.
274
275 %description sms -l pl
276 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki
277 WWW.
278
279 %package remote
280 Summary:        Remote access from other applications
281 Summary(es):    Acceso remoto desde otras aplicaciones
282 Summary(pl):    Dostêp do programu z innych aplikacji
283 Group:          Applications/Communications
284 Requires:       %{name} = %{epoch}:%{version}-%{release}
285
286 %description remote
287 Make possible exchange data with other applications.
288
289 %description remote -l es
290 Permite intercambiar los datos con otras aplicaciones.
291
292 %description remote -l pl
293 Wtyczka umo¿liwiaj±ca wymianê informacji z innymi aplikacjami.
294
295 %package update
296 Summary:        Check for new GNU Gadu newer version
297 Summary(es):    Verifica si hay versiones nuevas de GNU Gadu
298 Summary(pl):    Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
299 Group:          Applications/Communications
300 Requires:       %{name} = %{epoch}:%{version}-%{release}
301
302 %description update
303 Check for new GNU Gadu newer version.
304
305 %description update -l es
306 Verifica si hay nuevas versiones de GNU Gadu.
307
308 %description update -l pl
309 Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
310
311 %package themes
312 Summary:        Themes for GNU Gadu 2 GUI
313 Summary(es):    Temas para el GUI de GNU Gadu 2
314 Summary(pl):    Motywy graficzne dla GUI GNU Gadu 2
315 Group:          Applications/Communications
316 Requires:       %{name} = %{epoch}:%{version}-%{release}
317 Requires:       %{name}-gui-gtk+2
318
319 %description themes
320 Themes for GNU Gadu 2 GUI.
321
322 %description themes -l es
323 Temas para el GUI de GNU Gadu 2.
324
325 %description themes -l pl
326 Motywy graficzne dla GUI GNU Gadu 2.
327
328 %prep
329 %setup -q -n %{name}-%{_snap}
330
331 %build
332 rm -f missing
333 intltoolize --copy --force
334 %{__libtoolize}
335 %{__aclocal}
336 %{__automake}
337 %{__autoconf}
338
339 %configure \
340         %{!?debug:--disable-gdb} \
341         %{!?debug:--disable-debug} \
342         --with-gui \
343         --with-gadu \
344         --with-tlen \
345         --with-jabber \
346         --with-xosd \
347         --with-sms \
348         --with-docklet_system_tray \
349         --with-docklet_dockapp \
350         --with%{!?with_esd:out}-esd \
351         --with-oss \
352         --with-external \
353         --with-update \
354         --with%{!?with_arts:out}-arts \
355         --%{?with_perl:enable}%{!?with_perl:disable}-perl \
356         --with-remote
357
358 %{__make}
359
360 %install
361 rm -rf $RPM_BUILD_ROOT
362
363 %{__make} install \
364         DESTDIR=$RPM_BUILD_ROOT
365
366 install -d $RPM_BUILD_ROOT%{_desktopdir}
367 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
368 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
369 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
370 install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
371
372 %find_lang %{name} --all-name --with-gnome
373
374 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
375
376 %clean
377 rm -rf $RPM_BUILD_ROOT
378
379 %post   -p /sbin/ldconfig
380 %postun -p /sbin/ldconfig
381
382 %files -f %{name}.lang
383 %defattr(644,root,root,755)
384 %doc A* C* N* R* T* contrib doc/*
385 %attr(755,root,root) %{_bindir}/gg2
386 %attr(755,root,root) %{_libdir}/libgg2_core.so.*.*.*
387 %dir %{_libdir}/gg2
388 %{_datadir}/%{name}/sounds
389
390 %files gui-gtk+2
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/gg2/libGUI_plugin.so
393 %dir %{_datadir}/gg2
394 %dir %{_datadir}/gg2/pixmaps
395 %{_datadir}/gg2/pixmaps/*.png
396 %{_datadir}/gg2/pixmaps/*.gif
397 %{_pixmapsdir}/%{name}.png
398 %{_desktopdir}/gg2.desktop
399
400 %files devel
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/libgg2_core.so
403 %{_libdir}/libgg2_core.la
404 %{_includedir}/gg2_core.h
405 %{_pkgconfigdir}/gg2_core.pc
406
407 %files emoticons
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_datadir}/gg2/pixmaps/emoticons
410
411 %files gadu-gadu
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_libdir}/gg2/libgadu_gadu_plugin.so
414
415 %files tlen
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_libdir}/gg2/libtlen_plugin.so
418
419 %files jabber
420 %defattr(644,root,root,755)
421 %attr(755,root,root) %{_libdir}/gg2/libjabber_plugin.so
422
423 %if %{with esd}
424 %files sound-esd
425 %defattr(644,root,root,755)
426 %attr(755,root,root) %{_libdir}/gg2/libsound_esd_plugin.so
427 %endif
428
429 %files sound-oss
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_libdir}/gg2/libsound_oss_plugin.so
432
433 %files sound-external
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so
436
437 %if %{with arts}
438 %files sound-aRts
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so
441 %endif
442
443 %files xosd
444 %defattr(644,root,root,755)
445 %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so
446
447 %files docklet-system-tray
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{_libdir}/gg2/libdocklet_system_tray_plugin.so
450
451 %files docklet-dockapp
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_libdir}/gg2/libdocklet_dockapp_plugin.so
454
455 %files sms
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_libdir}/gg2/libsms_plugin.so
458
459 %files remote
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/gg2/libremote_plugin.so
462
463 %files update
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/gg2/libupdate_plugin.so
466
467 %files themes
468 %defattr(644,root,root,755)
469 %dir %{_datadir}/gg2/themes
470 %{_datadir}/gg2/themes/*.theme
471 %dir %{_datadir}/gg2/pixmaps/icons
472 %dir %{_datadir}/gg2/pixmaps/icons/bubble
473 %dir %{_datadir}/gg2/pixmaps/icons/classic
474 %dir %{_datadir}/gg2/pixmaps/icons/modern
475 %dir %{_datadir}/gg2/pixmaps/icons/rozgwiazda
476 %{_datadir}/gg2/pixmaps/icons/bubble/*.png
477 %{_datadir}/gg2/pixmaps/icons/bubble/README
478 %{_datadir}/gg2/pixmaps/icons/classic/*.png
479 %{_datadir}/gg2/pixmaps/icons/classic/README
480 %{_datadir}/gg2/pixmaps/icons/modern/*.png
481 %{_datadir}/gg2/pixmaps/icons/modern/README
482 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/*.png
483 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/license.txt
484 %{_datadir}/gg2/pixmaps/icons/ghosts/*.png
485 %{_datadir}/gg2/pixmaps/icons/ghosts/README
486 %{_datadir}/gg2/pixmaps/icons/tlen-3d/README
487 %{_datadir}/gg2/pixmaps/icons/tlen-3d/*.png
This page took 0.12243 seconds and 3 git commands to generate.