]> git.pld-linux.org Git - packages/gg2.git/blob - gg2.spec
151b4d4375504b7406eb2c26858c6eeb00c61e8c
[packages/gg2.git] / gg2.spec
1
2 %bcond_with     arts
3 %bcond_without  perl
4
5 %define         _snap   20031020
6 Summary:        GNU Gadu 2 - free talking
7 Summary(es):    GNU Gadu 2 - charlar libremente
8 Summary(pl):    GNU Gadu 2 - wolne gadanie
9 Name:           gg2
10 Version:        2.0
11 Release:        2.%{_snap}.1
12 Epoch:          2
13 License:        GPL v2+
14 Group:          Applications/Communications
15 #Source0:       http://dl.sourceforge.net/sourceforge/ggadu/%{name}-%{version}-%{_snap}.tar.gz
16 Source0:        ftp://distfiles.pld-linux.org/src/%{name}-%{version}-%{_snap}.tar.gz
17 # Source0-md5:  2b1540839e84b39688c68d008d0725eb
18 Source1:        %{name}.desktop
19 URL:            http://www.gadu.gnu.pl/
20 BuildRequires:  perl-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake >= 1.7
23 BuildRequires:  esound-devel >= 0.2.7
24 BuildRequires:  loudmouth-devel >= 0.13.1
25 BuildRequires:  glib2-devel  >= 2.2.0
26 BuildRequires:  gtk+2-devel  >= 2.2.0
27 BuildRequires:  libgadu-devel
28 BuildRequires:  libtlen-devel
29 BuildRequires:  libtool
30 BuildRequires:  intltool
31 BuildRequires:  gettext-devel >= 0.11.0
32 BuildRequires:  xosd-devel   >= 2.0.0
33 BuildRequires:  pkgconfig
34 BuildRequires:  fontconfig-devel
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 Requires:       libgadu <= 3:1.3-1
102
103 %description gadu-gadu
104 Gadu-Gadu protocol plugin.
105
106 %description gadu-gadu -l pl
107 Wtyczka protoko³u Gadu-Gadu.
108
109 %package tlen
110 Summary:        Tlen.pl plugin
111 Summary(pl):    Wtyczka protoko³u Tlen.pl
112 Group:          Applications/Communications
113 Requires:       %{name} = %{epoch}:%{version}
114
115 %description tlen
116 Tlen.pl protocol plugin.
117
118 %description tlen -l pl
119 Wtyczka protoko³u Tlen.pl.
120
121 %package jabber
122 Summary:        Jabber.org plugin
123 Summary(pl):    Wtyczka protoko³u Jabber
124 Group:          Applications/Communications
125 Requires:       %{name} = %{epoch}:%{version}
126
127 %description jabber
128 Jabber protocol plugin.
129
130 %description jabber -l pl
131 Wtyczka protoko³u Jabber.
132
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
145 %package sound-oss
146 Summary:        OSS sound support
147 Summary(pl):    Obs³uga d¼wiêku OSS
148 Group:          Applications/Communications
149 Requires:       %{name} = %{epoch}:%{version}
150
151 %description sound-oss
152 OSS sound support.
153
154 %description sound-oss -l pl
155 Obs³uga d¼wiêku OSS.
156
157 %package sound-external
158 Summary:        Sound support with external player
159 Summary(pl):    Obs³uga d¼wiêku przez zewnêtrzny program
160 Group:          Applications/Communications
161 Requires:       %{name} = %{epoch}:%{version}
162
163 %description sound-external
164 Sound support with external player.
165
166 %description sound-external -l pl
167 Obs³uga d¼wiêku przez zewnêtrzny program.
168
169 %if %{with arts}
170 %package sound-aRts
171 Summary:        Sound support with aRts
172 Summary(pl):    Obs³uga d¼wiêku poprzez aRts
173 Group:          Applications/Communications
174 Requires:       %{name} = %{version}
175
176 %description sound-aRts
177 Sound support with aRts.
178
179 %description sound-aRts -l pl
180 Obs³uga d¼wiêku poprzez aRts.
181 %endif
182
183 %package xosd
184 Summary:        Support for X On Screen Display
185 Summary(pl):    Wy¶wietlanie komunikatów na ekranie X
186 Group:          Applications/Communications
187 Requires:       %{name} = %{epoch}:%{version}
188
189 %description xosd
190 Support for X On Screen Display.
191
192 %description xosd -l pl
193 Wy¶wietlanie komunikatów na ekranie X.
194
195 %package docklet
196 Summary:        Support for Window Managers docklets
197 Summary(pl):    Obs³uga dokletów w ró¿nych zarz±dcach okien
198 Group:          Applications/Communications
199 Requires:       %{name} = %{epoch}:%{version}
200
201 %description docklet
202 Support for Window Managers docklets (GNOME, KDE).
203
204 %description docklet -l pl
205 Obs³uga dokletów w ró¿nych zarz±dcach okien (GNOME, KDE).
206
207 %package sms
208 Summary:        SMS Gateway
209 Summary(pl):    Bramka SMS
210 Group:          Applications/Communications
211 Requires:       %{name} = %{epoch}:%{version}
212
213 %description sms
214 Send SMS to cellular phones via web gateways.
215
216 %description sms -l pl
217 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki WWW.
218
219 %package remote
220 Summary:        Remote access from other applications
221 Summary(pl):    Dostêp do programu z innych aplikacji
222 Group:          Applications/Communications
223 Requires:       %{name} = %{epoch}:%{version}
224
225 %description remote
226 Make possible exchange data with other applications.
227
228 %description remote -l pl
229 Wtyczka umo¿liwiaj±ca wymianê informacji z innymi aplikacjami.
230
231 %package themes
232 Summary:        Themes for GNU Gadu 2 GUI
233 Summary(pl):    Motywy graficzne dla GUI GNU Gadu 2
234 Group:          Applications/Communications
235 Requires:       %{name} = %{epoch}:%{version}
236 Requires:       %{name}-gui-gtk+2
237
238 %description themes
239 Themes for GNU Gadu 2 GUI.
240
241 %description themes -l pl
242 Motywy graficzne dla GUI GNU Gadu 2.
243
244 %prep
245 %setup -q -n %{name}-%{version}-%{_snap}
246
247 %build
248 rm -f missing
249 intltoolize --copy --force
250 %{__libtoolize}
251 %{__aclocal}
252 %{__automake}
253 %{__autoconf}
254
255 %configure \
256         --disable-gdb \
257         --disable-debug \
258         --with-gui \
259         --with-gadu \
260         --with-tlen \
261         --with-jabber \
262         --with-xosd \
263         --with-docklet \
264         --with-esd \
265         --with-oss \
266         --with-sms \
267         --with-external \
268 %if %{with arts}
269         --with-arts \
270 %endif
271 %if %{with perl}
272         --enable-perl \
273 %endif
274         --with-remote
275
276 %{__make}
277
278 %install
279 rm -rf $RPM_BUILD_ROOT
280
281 %{__make} install \
282         DESTDIR=$RPM_BUILD_ROOT
283
284 install -d $RPM_BUILD_ROOT%{_desktopdir}
285 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
286 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
287 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
288 install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
289
290 %find_lang %{name} --all-name --with-gnome
291
292 #Remove useless files
293 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
294
295 %clean
296 rm -rf $RPM_BUILD_ROOT
297
298 %post   -p /sbin/ldconfig
299 %postun -p /sbin/ldconfig
300
301 %files -f %{name}.lang
302 %defattr(644,root,root,755)
303 %doc A* C* N* R* T* contrib doc/*
304 %attr(755,root,root) %{_bindir}/gg2
305 %attr(755,root,root) %{_libdir}/libgg2_core.so.*.*.*
306 %dir %{_libdir}/gg2
307 %{_datadir}/%{name}/sounds
308
309 %files gui-gtk+2
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/gg2/libGUI_plugin.so
312 %dir %{_datadir}/gg2
313 %dir %{_datadir}/gg2/pixmaps
314 %{_datadir}/gg2/pixmaps/*.png
315 %{_datadir}/gg2/pixmaps/*.gif
316
317 %{_pixmapsdir}/%{name}.png
318 %{_desktopdir}/gg2.desktop
319
320 %files devel
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_libdir}/libgg2_core.so
323 %{_libdir}/libgg2_core.la
324 %{_includedir}/gg2_core.h
325 %{_pkgconfigdir}/gg2_core.pc
326
327 %files emoticons
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_datadir}/gg2/pixmaps/emoticons
330
331 %files gadu-gadu
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/gg2/libgadu_gadu_plugin.so
334
335 %files tlen
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/gg2/libtlen_plugin.so
338
339 %files jabber
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/gg2/libjabber_plugin.so
342
343 %files sound-esd
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libdir}/gg2/libsound_esd_plugin.so
346
347 %files sound-oss
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/gg2/libsound_oss_plugin.so
350
351 %files sound-external
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so
354
355 %if %{with arts}
356 %files sound-aRts
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so
359 %endif
360
361 %files xosd
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so
364
365 %files docklet
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_libdir}/gg2/libdocklet_plugin.so
368
369 %files sms
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/gg2/libsms_plugin.so
372
373 %files remote
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/gg2/libremote_plugin.so
376
377 %files themes
378 %defattr(644,root,root,755)
379 %dir %{_datadir}/gg2/themes
380 %{_datadir}/gg2/themes/*.theme
381 %dir %{_datadir}/gg2/pixmaps/icons
382 %dir %{_datadir}/gg2/pixmaps/icons/bubble
383 %dir %{_datadir}/gg2/pixmaps/icons/classic
384 %dir %{_datadir}/gg2/pixmaps/icons/modern
385 %dir %{_datadir}/gg2/pixmaps/icons/rozgwiazda
386 %{_datadir}/gg2/pixmaps/icons/bubble/*.png
387 %{_datadir}/gg2/pixmaps/icons/bubble/README
388 %{_datadir}/gg2/pixmaps/icons/classic/*.png
389 %{_datadir}/gg2/pixmaps/icons/classic/README
390 %{_datadir}/gg2/pixmaps/icons/modern/*.png
391 %{_datadir}/gg2/pixmaps/icons/modern/README
392 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/*.png
393 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/license.txt
394 %{_datadir}/gg2/pixmaps/icons/ghosts/*.png
395 %{_datadir}/gg2/pixmaps/icons/ghosts/README
396 %{_datadir}/gg2/pixmaps/icons/tlen-3d/README
397 %{_datadir}/gg2/pixmaps/icons/tlen-3d/*.png
This page took 0.086131 seconds and 3 git commands to generate.