]> git.pld-linux.org Git - packages/gg2.git/blob - gg2.spec
b388801015a44d1d18a535aded7e2c410f16f53f
[packages/gg2.git] / gg2.spec
1
2 %bcond_with     arts
3 %bcond_without  perl
4 %bcond_without  esd
5
6 %define         _snap   20031117
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://dl.sourceforge.net/sourceforge/ggadu/%{name}-%{version}-%{_snap}.tar.gz
17 Source0:        ftp://distfiles.pld-linux.org/src/%{name}-%{version}-%{_snap}.tar.gz
18 # Source0-md5:  c105e95d740323feb14d726f07523bd1
19 Source1:        %{name}.desktop
20 URL:            http://www.gadu.gnu.pl/
21 BuildRequires:  perl-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
30 BuildRequires:  libtlen-devel
31 BuildRequires:  libtool
32 BuildRequires:  loudmouth-devel >= 0.13.1
33 BuildRequires:  pkgconfig
34 BuildRequires:  xosd-devel   >= 2.0.0
35 %{?with_arts:BuildRequires:     arts-devel}
36 %{?with_perl:BuildRequires:     perl-devel}
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 Gadu-Gadu, Tlen.pl and others instant messanger 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}
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(pl):    Wtyczka z GUI w GTK+2
75 Group:          Applications/Communications
76 Requires:       %{name} = %{epoch}:%{version}
77
78 %description gui-gtk+2
79 GTK+2 GUI plugin for GNU Gadu 2.
80
81 %description gui-gtk+2 -l pl
82 Wtyczka z GUI w GTK+2 do GNU Gadu 2.
83
84 %package emoticons
85 Summary:        Emoticons
86 Summary(pl):    Emotikony
87 Group:          Applications/Communications
88 Requires:       %{name} = %{epoch}:%{version}
89
90 %description emoticons
91 Emotions icons and description files.
92
93 %description emoticons -l pl
94 Zestaw ikon z emotikonami, oraz plikiem konfiguracyjnym.
95
96 %package gadu-gadu
97 Summary:        Gadu-Gadu plugin
98 Summary(pl):    Wtyczka protoko³u Gadu-Gadu
99 Group:          Applications/Communications
100 Requires:       %{name} = %{epoch}:%{version}
101
102 %description gadu-gadu
103 Gadu-Gadu protocol plugin.
104
105 %description gadu-gadu -l pl
106 Wtyczka protoko³u Gadu-Gadu.
107
108 %package tlen
109 Summary:        Tlen.pl plugin
110 Summary(pl):    Wtyczka protoko³u Tlen.pl
111 Group:          Applications/Communications
112 Requires:       %{name} = %{epoch}:%{version}
113
114 %description tlen
115 Tlen.pl protocol plugin.
116
117 %description tlen -l pl
118 Wtyczka protoko³u Tlen.pl.
119
120 %package jabber
121 Summary:        Jabber.org plugin
122 Summary(pl):    Wtyczka protoko³u Jabber
123 Group:          Applications/Communications
124 Requires:       %{name} = %{epoch}:%{version}
125
126 %description jabber
127 Jabber protocol plugin.
128
129 %description jabber -l pl
130 Wtyczka protoko³u Jabber.
131
132 %if %{with esd}
133 %package sound-esd
134 Summary:        Sound support with ESD
135 Summary(pl):    Obs³uga d¼wiêku poprzez ESD
136 Group:          Applications/Communications
137 Requires:       %{name} = %{epoch}:%{version}
138
139 %description sound-esd
140 Sound support with ESD.
141
142 %description sound-esd -l pl
143 Obs³uga d¼wiêku poprzez ESD.
144 %endif
145
146 %package sound-oss
147 Summary:        OSS sound support
148 Summary(pl):    Obs³uga d¼wiêku OSS
149 Group:          Applications/Communications
150 Requires:       %{name} = %{epoch}:%{version}
151
152 %description sound-oss
153 OSS sound support.
154
155 %description sound-oss -l pl
156 Obs³uga d¼wiêku OSS.
157
158 %package sound-external
159 Summary:        Sound support with external player
160 Summary(pl):    Obs³uga d¼wiêku przez zewnêtrzny program
161 Group:          Applications/Communications
162 Requires:       %{name} = %{epoch}:%{version}
163
164 %description sound-external
165 Sound support with external player.
166
167 %description sound-external -l pl
168 Obs³uga d¼wiêku przez zewnêtrzny program.
169
170 %if %{with arts}
171 %package sound-aRts
172 Summary:        Sound support with aRts
173 Summary(pl):    Obs³uga d¼wiêku poprzez aRts
174 Group:          Applications/Communications
175 Requires:       %{name} = %{version}
176
177 %description sound-aRts
178 Sound support with aRts.
179
180 %description sound-aRts -l pl
181 Obs³uga d¼wiêku poprzez aRts.
182 %endif
183
184 %package xosd
185 Summary:        Support for X On Screen Display
186 Summary(pl):    Wy¶wietlanie komunikatów na ekranie X
187 Group:          Applications/Communications
188 Requires:       %{name} = %{epoch}:%{version}
189
190 %description xosd
191 Support for X On Screen Display.
192
193 %description xosd -l pl
194 Wy¶wietlanie komunikatów na ekranie X.
195
196 %package docklet-system-tray
197 Summary:        Support for Window Managers notification areas
198 Summary(pl):    Obs³uga dokletów w ró¿nych zarz±dcach okien
199 Group:          Applications/Communications
200 Requires:       %{name} = %{epoch}:%{version}
201 Obsoletes:      %{name}-docklet
202
203 %description docklet-system-tray
204 Support for Window Managers nofinication areas (GNOME, KDE).
205
206 %description docklet-system-tray -l pl
207 Obs³uga dokletów w ró¿nych zarz±dcach okien (GNOME, KDE).
208
209 %package sms
210 Summary:        SMS Gateway
211 Summary(pl):    Bramka SMS
212 Group:          Applications/Communications
213 Requires:       %{name} = %{epoch}:%{version}
214
215 %description sms
216 Send SMS to cellular phones via web gateways.
217
218 %description sms -l pl
219 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki WWW.
220
221 %package remote
222 Summary:        Remote access from other applications
223 Summary(pl):    Dostêp do programu z innych aplikacji
224 Group:          Applications/Communications
225 Requires:       %{name} = %{epoch}:%{version}
226
227 %description remote
228 Make possible exchange data with other applications.
229
230 %description remote -l pl
231 Wtyczka umo¿liwiaj±ca wymianê informacji z innymi aplikacjami.
232
233 %package update
234 Summary:        Check for new GNU Gadu newer version
235 Summary(pl):    Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
236 Group:          Applications/Communications
237 Requires:       %{name} = %{epoch}:%{version}
238
239 %description update
240 Check for new GNU Gadu newer version.
241
242 %description update -l pl
243 Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
244
245 %package themes
246 Summary:        Themes for GNU Gadu 2 GUI
247 Summary(pl):    Motywy graficzne dla GUI GNU Gadu 2
248 Group:          Applications/Communications
249 Requires:       %{name} = %{epoch}:%{version}
250 Requires:       %{name}-gui-gtk+2
251
252 %description themes
253 Themes for GNU Gadu 2 GUI.
254
255 %description themes -l pl
256 Motywy graficzne dla GUI GNU Gadu 2.
257
258 %prep
259 %setup -q -n %{name}-%{version}-%{_snap}
260
261 %build
262 rm -f missing
263 intltoolize --copy --force
264 %{__libtoolize}
265 %{__aclocal}
266 %{__automake}
267 %{__autoconf}
268
269 %configure \
270         %{!?debug:--disable-gdb} \
271         %{!?debug:--disable-debug} \
272         --with-gui \
273         --with-gadu \
274         --with-tlen \
275         --with-jabber \
276         --with-xosd \
277         --with-sms \
278         --with-docklet_system_tray \
279 %if %{with esd}
280         --with-esd \
281 %endif
282         --with-oss \
283         --with-external \
284         --with-update \
285 %if %{with arts}
286         --with-arts \
287 %endif
288 %if %{with perl}
289         --enable-perl \
290 %endif
291         --with-remote
292
293 %{__make}
294
295 %install
296 rm -rf $RPM_BUILD_ROOT
297
298 %{__make} install \
299         DESTDIR=$RPM_BUILD_ROOT
300
301 install -d $RPM_BUILD_ROOT%{_desktopdir}
302 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
303 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
304 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
305 install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
306
307 %find_lang %{name} --all-name --with-gnome
308
309 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
310
311 %clean
312 rm -rf $RPM_BUILD_ROOT
313
314 %post   -p /sbin/ldconfig
315 %postun -p /sbin/ldconfig
316
317 %files -f %{name}.lang
318 %defattr(644,root,root,755)
319 %doc A* C* N* R* T* contrib doc/*
320 %attr(755,root,root) %{_bindir}/gg2
321 %attr(755,root,root) %{_libdir}/libgg2_core.so.*.*.*
322 %dir %{_libdir}/gg2
323 %{_datadir}/%{name}/sounds
324
325 %files gui-gtk+2
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_libdir}/gg2/libGUI_plugin.so
328 %dir %{_datadir}/gg2
329 %dir %{_datadir}/gg2/pixmaps
330 %{_datadir}/gg2/pixmaps/*.png
331 %{_datadir}/gg2/pixmaps/*.gif
332 %{_pixmapsdir}/%{name}.png
333 %{_desktopdir}/gg2.desktop
334
335 %files devel
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/libgg2_core.so
338 %{_libdir}/libgg2_core.la
339 %{_includedir}/gg2_core.h
340 %{_pkgconfigdir}/gg2_core.pc
341
342 %files emoticons
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_datadir}/gg2/pixmaps/emoticons
345
346 %files gadu-gadu
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/gg2/libgadu_gadu_plugin.so
349
350 %files tlen
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/gg2/libtlen_plugin.so
353
354 %files jabber
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/gg2/libjabber_plugin.so
357
358 %if %{with esd}
359 %files sound-esd
360 %defattr(644,root,root,755)
361 %attr(755,root,root) %{_libdir}/gg2/libsound_esd_plugin.so
362 %endif
363
364 %files sound-oss
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_libdir}/gg2/libsound_oss_plugin.so
367
368 %files sound-external
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so
371
372 %if %{with arts}
373 %files sound-aRts
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so
376 %endif
377
378 %files xosd
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so
381
382 %files docklet-system-tray
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/gg2/libdocklet_system_tray_plugin.so
385
386 %files sms
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/gg2/libsms_plugin.so
389
390 %files remote
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/gg2/libremote_plugin.so
393
394 %files update
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/gg2/libupdate_plugin.so
397
398 %files themes
399 %defattr(644,root,root,755)
400 %dir %{_datadir}/gg2/themes
401 %{_datadir}/gg2/themes/*.theme
402 %dir %{_datadir}/gg2/pixmaps/icons
403 %dir %{_datadir}/gg2/pixmaps/icons/bubble
404 %dir %{_datadir}/gg2/pixmaps/icons/classic
405 %dir %{_datadir}/gg2/pixmaps/icons/modern
406 %dir %{_datadir}/gg2/pixmaps/icons/rozgwiazda
407 %{_datadir}/gg2/pixmaps/icons/bubble/*.png
408 %{_datadir}/gg2/pixmaps/icons/bubble/README
409 %{_datadir}/gg2/pixmaps/icons/classic/*.png
410 %{_datadir}/gg2/pixmaps/icons/classic/README
411 %{_datadir}/gg2/pixmaps/icons/modern/*.png
412 %{_datadir}/gg2/pixmaps/icons/modern/README
413 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/*.png
414 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/license.txt
415 %{_datadir}/gg2/pixmaps/icons/ghosts/*.png
416 %{_datadir}/gg2/pixmaps/icons/ghosts/README
417 %{_datadir}/gg2/pixmaps/icons/tlen-3d/README
418 %{_datadir}/gg2/pixmaps/icons/tlen-3d/*.png
This page took 0.110539 seconds and 3 git commands to generate.