]> git.pld-linux.org Git - packages/gg2.git/blob - gg2.spec
5d7b5cc34c668983e902cc02835872be073e9c6c
[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 BuildRequires:  xcursor-devel
36 %{?with_arts:BuildRequires:     arts-devel}
37 %{?with_perl:BuildRequires:     perl-devel}
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Gadu-Gadu, Tlen.pl and others instant messanger client with
42 GTK+2 GUI on GNU/GPL.
43
44 %description -l es
45 Un cliente para Gadu-Gadu, Tlen.pl y otros protocolos con un GUI de
46 GTK+2, bajo la licencia GNU/GPL.
47
48 %description -l pl
49 Klient Gadu-Gadu, Tlen.pl oraz innych protoko³ów z GUI pod GTK+2 na
50 licencji GNU/GPL.
51
52 %package devel
53 Summary:        Headers for libgg2_core library to develop plugins
54 Summary(es):    Cabeceras para la biblioteca libgg2_core para desarrollar plugins
55 Summary(pl):    Pliki nag³ówkowe biblioteki libgg2_core potrzebne do rozwijania wtyczek
56 Group:          Applications/Communications
57 Requires:       %{name} = %{epoch}:%{version}
58 Requires:       glib2-devel
59 Requires:       perl-devel
60
61 %description devel
62 This package contains header files for libgg2_core library, needed to
63 develop plugins for GNU Gadu 2.
64
65 %description devel -l es
66 Este paquete contiene los ficheros de cabeceras de la biblioteca
67 libgg2_core necesarios para desarrollar plugins para GNU Gadu 2.
68
69 %description devel -l pl
70 Ten pakiet zawiera pliki nag³ówkowe biblioteki libgg2_core, potrzebne
71 do rozwijania wtyczek do GNU Gadu 2.
72
73 %package gui-gtk+2
74 Summary:        GTK+2 GUI plugin
75 Summary(pl):    Wtyczka z GUI w GTK+2
76 Group:          Applications/Communications
77 Requires:       %{name} = %{epoch}:%{version}
78
79 %description gui-gtk+2
80 GTK+2 GUI plugin for GNU Gadu 2.
81
82 %description gui-gtk+2 -l pl
83 Wtyczka z GUI w GTK+2 do GNU Gadu 2.
84
85 %package emoticons
86 Summary:        Emoticons
87 Summary(pl):    Emotikony
88 Group:          Applications/Communications
89 Requires:       %{name} = %{epoch}:%{version}
90
91 %description emoticons
92 Emotions icons and description files.
93
94 %description emoticons -l pl
95 Zestaw ikon z emotikonami, oraz plikiem konfiguracyjnym.
96
97 %package gadu-gadu
98 Summary:        Gadu-Gadu plugin
99 Summary(pl):    Wtyczka protoko³u Gadu-Gadu
100 Group:          Applications/Communications
101 Requires:       %{name} = %{epoch}:%{version}
102 Requires:       libgadu <= 3:1.3-1
103
104 %description gadu-gadu
105 Gadu-Gadu protocol plugin.
106
107 %description gadu-gadu -l pl
108 Wtyczka protoko³u Gadu-Gadu.
109
110 %package tlen
111 Summary:        Tlen.pl plugin
112 Summary(pl):    Wtyczka protoko³u Tlen.pl
113 Group:          Applications/Communications
114 Requires:       %{name} = %{epoch}:%{version}
115
116 %description tlen
117 Tlen.pl protocol plugin.
118
119 %description tlen -l pl
120 Wtyczka protoko³u Tlen.pl.
121
122 %package jabber
123 Summary:        Jabber.org plugin
124 Summary(pl):    Wtyczka protoko³u Jabber
125 Group:          Applications/Communications
126 Requires:       %{name} = %{epoch}:%{version}
127
128 %description jabber
129 Jabber protocol plugin.
130
131 %description jabber -l pl
132 Wtyczka protoko³u Jabber.
133
134 %package sound-esd
135 Summary:        Sound support with ESD
136 Summary(pl):    Obs³uga d¼wiêku poprzez ESD
137 Group:          Applications/Communications
138 Requires:       %{name} = %{epoch}:%{version}
139
140 %description sound-esd
141 Sound support with ESD.
142
143 %description sound-esd -l pl
144 Obs³uga d¼wiêku poprzez ESD.
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
197 Summary:        Support for Window Managers docklets
198 Summary(pl):    Obs³uga dokletów w ró¿nych zarz±dcach okien
199 Group:          Applications/Communications
200 Requires:       %{name} = %{epoch}:%{version}
201
202 %description docklet
203 Support for Window Managers docklets (GNOME, KDE).
204
205 %description docklet -l pl
206 Obs³uga dokletów w ró¿nych zarz±dcach okien (GNOME, KDE).
207
208 %package sms
209 Summary:        SMS Gateway
210 Summary(pl):    Bramka SMS
211 Group:          Applications/Communications
212 Requires:       %{name} = %{epoch}:%{version}
213
214 %description sms
215 Send SMS to cellular phones via web gateways.
216
217 %description sms -l pl
218 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki WWW.
219
220 %package remote
221 Summary:        Remote access from other applications
222 Summary(pl):    Dostêp do programu z innych aplikacji
223 Group:          Applications/Communications
224 Requires:       %{name} = %{epoch}:%{version}
225
226 %description remote
227 Make possible exchange data with other applications.
228
229 %description remote -l pl
230 Wtyczka umo¿liwiaj±ca wymianê informacji z innymi aplikacjami.
231
232 %package themes
233 Summary:        Themes for GNU Gadu 2 GUI
234 Summary(pl):    Motywy graficzne dla GUI GNU Gadu 2
235 Group:          Applications/Communications
236 Requires:       %{name} = %{epoch}:%{version}
237 Requires:       %{name}-gui-gtk+2
238
239 %description themes
240 Themes for GNU Gadu 2 GUI.
241
242 %description themes -l pl
243 Motywy graficzne dla GUI GNU Gadu 2.
244
245 %prep
246 %setup -q -n %{name}-%{version}-%{_snap}
247
248 %build
249 rm -f missing
250 intltoolize --copy --force
251 %{__libtoolize}
252 %{__aclocal}
253 %{__automake}
254 %{__autoconf}
255
256 %configure \
257         --disable-gdb \
258         --disable-debug \
259         --with-gui \
260         --with-gadu \
261         --with-tlen \
262         --with-jabber \
263         --with-xosd \
264         --with-docklet \
265         --with-esd \
266         --with-oss \
267         --with-sms \
268         --with-external \
269 %if %{with arts}
270         --with-arts \
271 %endif
272 %if %{with perl}
273         --enable-perl \
274 %endif
275         --with-remote
276
277 %{__make}
278
279 %install
280 rm -rf $RPM_BUILD_ROOT
281
282 %{__make} install \
283         DESTDIR=$RPM_BUILD_ROOT
284
285 install -d $RPM_BUILD_ROOT%{_desktopdir}
286 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
287 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
288 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
289 install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
290
291 %find_lang %{name} --all-name --with-gnome
292
293 #Remove useless files
294 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
295
296 %clean
297 rm -rf $RPM_BUILD_ROOT
298
299 %post   -p /sbin/ldconfig
300 %postun -p /sbin/ldconfig
301
302 %files -f %{name}.lang
303 %defattr(644,root,root,755)
304 %doc A* C* N* R* T* contrib doc/*
305 %attr(755,root,root) %{_bindir}/gg2
306 %attr(755,root,root) %{_libdir}/libgg2_core.so.*.*.*
307 %dir %{_libdir}/gg2
308 %{_datadir}/%{name}/sounds
309
310 %files gui-gtk+2
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/gg2/libGUI_plugin.so
313 %dir %{_datadir}/gg2
314 %dir %{_datadir}/gg2/pixmaps
315 %{_datadir}/gg2/pixmaps/*.png
316 %{_datadir}/gg2/pixmaps/*.gif
317
318 %{_pixmapsdir}/%{name}.png
319 %{_desktopdir}/gg2.desktop
320
321 %files devel
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/libgg2_core.so
324 %{_libdir}/libgg2_core.la
325 %{_includedir}/gg2_core.h
326 %{_pkgconfigdir}/gg2_core.pc
327
328 %files emoticons
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_datadir}/gg2/pixmaps/emoticons
331
332 %files gadu-gadu
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/gg2/libgadu_gadu_plugin.so
335
336 %files tlen
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/gg2/libtlen_plugin.so
339
340 %files jabber
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/gg2/libjabber_plugin.so
343
344 %files sound-esd
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/gg2/libsound_esd_plugin.so
347
348 %files sound-oss
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/gg2/libsound_oss_plugin.so
351
352 %files sound-external
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so
355
356 %if %{with arts}
357 %files sound-aRts
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so
360 %endif
361
362 %files xosd
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so
365
366 %files docklet
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/gg2/libdocklet_plugin.so
369
370 %files sms
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/gg2/libsms_plugin.so
373
374 %files remote
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_libdir}/gg2/libremote_plugin.so
377
378 %files themes
379 %defattr(644,root,root,755)
380 %dir %{_datadir}/gg2/themes
381 %{_datadir}/gg2/themes/*.theme
382 %dir %{_datadir}/gg2/pixmaps/icons
383 %dir %{_datadir}/gg2/pixmaps/icons/bubble
384 %dir %{_datadir}/gg2/pixmaps/icons/classic
385 %dir %{_datadir}/gg2/pixmaps/icons/modern
386 %dir %{_datadir}/gg2/pixmaps/icons/rozgwiazda
387 %{_datadir}/gg2/pixmaps/icons/bubble/*.png
388 %{_datadir}/gg2/pixmaps/icons/bubble/README
389 %{_datadir}/gg2/pixmaps/icons/classic/*.png
390 %{_datadir}/gg2/pixmaps/icons/classic/README
391 %{_datadir}/gg2/pixmaps/icons/modern/*.png
392 %{_datadir}/gg2/pixmaps/icons/modern/README
393 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/*.png
394 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/license.txt
395 %{_datadir}/gg2/pixmaps/icons/ghosts/*.png
396 %{_datadir}/gg2/pixmaps/icons/ghosts/README
397 %{_datadir}/gg2/pixmaps/icons/tlen-3d/README
398 %{_datadir}/gg2/pixmaps/icons/tlen-3d/*.png
This page took 0.124967 seconds and 3 git commands to generate.