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