]> git.pld-linux.org Git - packages/gg2.git/blob - gg2.spec
- add bcond for arts plugin
[packages/gg2.git] / gg2.spec
1
2 %bcond_with     arts
3
4 %define         _pre    pre3
5 Summary:        GNU Gadu 2 - free talking
6 Summary(pl):    GNU Gadu 2 - wolne gadanie
7 Name:           gg2
8 Version:        2.0
9 Release:        1.%{_pre}.1
10 Epoch:          1
11 License:        GPL v2+
12 Group:          Applications/Communications
13 Source0:        http://dl.sourceforge.net/sourceforge/ggadu/%{name}-%{version}%{_pre}.tar.gz
14 # Source0-md5:  49c52cec6869c9ed1b3c015f37401879
15 Source1:        %{name}.desktop
16 URL:            http://www.gadu.gnu.pl/
17 #BuildRequires: arts-devel
18 BuildRequires:  perl-devel
19 BuildRequires:  autoconf
20 BuildRequires:  automake >= 1.7
21 BuildRequires:  esound-devel >= 0.2.7
22 BuildRequires:  iksemel-devel >= 0.0.1
23 BuildRequires:  glib2-devel  >= 2.2.0
24 BuildRequires:  gtk+2-devel  >= 2.2.0
25 BuildRequires:  libgadu-devel >= 1.0
26 BuildRequires:  libtlen-devel
27 BuildRequires:  libtool
28 BuildRequires:  intltool
29 BuildRequires:  gettext-devel >= 0.11.0
30 BuildRequires:  xosd-devel   >= 2.0.0
31 BuildRequires:  pkgconfig
32 BuildRequires:  fontconfig-devel
33 %{?with_arts:BuildRequires:     arts-devel}
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 Gadu-Gadu, Tlen.pl and others instant messanger client with
38 GTK+2 GUI on GNU/GPL.
39
40 %description -l pl
41 Klient Gadu-Gadu, Tlen.pl oraz innych protoko³ów z GUI pod GTK+2 na
42 licencji GNU/GPL.
43
44 %package devel
45 Summary:        Headers for libgg2_core library to develop plugins
46 Summary(pl):    Pliki nag³ówkowe biblioteki libgg2_core potrzebne do rozwijania wtyczek
47 Group:          Applications/Communications
48 Requires:       %{name} = %{epoch}:%{version}
49 Requires:       glib2-devel
50 Requires:       perl-devel
51
52 %description devel
53 This package contains header files for libgg2_core library, needed to
54 develop plugins for GNU Gadu 2.
55
56 %description devel -l pl
57 Ten pakiet zawiera pliki nag³ówkowe biblioteki libgg2_core, potrzebne
58 do rozwijania wtyczek do GNU Gadu 2.
59
60 %package gui-gtk+2
61 Summary:        GTK+2 GUI plugin
62 Summary(pl):    Wtyczka z GUI w GTK+2
63 Group:          Applications/Communications
64 Requires:       %{name} = %{epoch}:%{version}
65
66 %description gui-gtk+2
67 GTK+2 GUI plugin for GNU Gadu 2.
68
69 %description gui-gtk+2 -l pl
70 Wtyczka z GUI w GTK+2 do GNU Gadu 2.
71
72 %package emoticons
73 Summary:        Emoticons
74 Summary(pl):    Emotikony
75 Group:          Applications/Communications
76 Requires:       %{name} = %{epoch}:%{version}
77
78 %description emoticons
79 Emotions icons and description files.
80
81 %description emoticons -l pl
82 Zestaw ikon z emotikonami, oraz plikiem konfiguracyjnym.
83
84 %package gadu-gadu
85 Summary:        Gadu-Gadu plugin
86 Summary(pl):    Wtyczka protoko³u Gadu-Gadu
87 Group:          Applications/Communications
88 Requires:       %{name} = %{epoch}:%{version}
89
90 %description gadu-gadu
91 Gadu-Gadu protocol plugin.
92
93 %description gadu-gadu -l pl
94 Wtyczka protoko³u Gadu-Gadu.
95
96 %package tlen
97 Summary:        Tlen.pl plugin
98 Summary(pl):    Wtyczka protoko³u Tlen.pl
99 Group:          Applications/Communications
100 Requires:       %{name} = %{epoch}:%{version}
101
102 %description tlen
103 Tlen.pl protocol plugin.
104
105 %description tlen -l pl
106 Wtyczka protoko³u Tlen.pl.
107
108 %package jabber
109 Summary:        Jabber.org plugin
110 Summary(pl):    Wtyczka protoko³u Jabber
111 Group:          Applications/Communications
112 Requires:       %{name} = %{epoch}:%{version}
113
114 %description jabber
115 Jabber protocol plugin.
116
117 %description jabber -l pl
118 Wtyczka protoko³u Jabber.
119
120 %package sound-esd
121 Summary:        Sound support with ESD
122 Summary(pl):    Obs³uga d¼wiêku poprzez ESD
123 Group:          Applications/Communications
124 Requires:       %{name} = %{epoch}:%{version}
125
126 %description sound-esd
127 Sound support with ESD.
128
129 %description sound-esd -l pl
130 Obs³uga d¼wiêku poprzez ESD.
131
132 %package sound-oss
133 Summary:        OSS sound support
134 Summary(pl):    Obs³uga d¼wiêku OSS
135 Group:          Applications/Communications
136 Requires:       %{name} = %{epoch}:%{version}
137
138 %description sound-oss
139 OSS sound support.
140
141 %description sound-oss -l pl
142 Obs³uga d¼wiêku OSS.
143
144 %package sound-external
145 Summary:        Sound support with external player
146 Summary(pl):    Obs³uga d¼wiêku przez zewnêtrzny program
147 Group:          Applications/Communications
148 Requires:       %{name} = %{epoch}:%{version}
149
150 %description sound-external
151 Sound support with external player.
152
153 %description sound-external -l pl
154 Obs³uga d¼wiêku przez zewnêtrzny program.
155
156 %if %{with arts}
157 %package sound-aRts
158 Summary:        Sound support with aRts
159 Summary(pl):    Obs³uga d¼wiêku poprzez aRts
160 Group:          Applications/Communications
161 Requires:       %{name} = %{version}
162
163 %description sound-aRts
164 Sound support with aRts.
165
166 %description sound-aRts -l pl
167 Obs³uga d¼wiêku poprzez aRts.
168 %endif
169
170 %package xosd
171 Summary:        Support for X On Screen Display
172 Summary(pl):    Wy¶wietlanie komunikatów na ekranie X
173 Group:          Applications/Communications
174 Requires:       %{name} = %{epoch}:%{version}
175
176 %description xosd
177 Support for X On Screen Display.
178
179 %description xosd -l pl
180 Wy¶wietlanie komunikatów na ekranie X.
181
182 %package docklet
183 Summary:        Support for Window Managers docklets
184 Summary(pl):    Obs³uga dokletów w ró¿nych zarz±dcach okien
185 Group:          Applications/Communications
186 Requires:       %{name} = %{epoch}:%{version}
187
188 %description docklet
189 Support for Window Managers docklets (GNOME, KDE).
190
191 %description docklet -l pl
192 Obs³uga dokletów w ró¿nych zarz±dcach okien (GNOME, KDE).
193
194 %package sms
195 Summary:        SMS Gateway
196 Summary(pl):    Bramka SMS
197 Group:          Applications/Communications
198 Requires:       %{name} = %{epoch}:%{version}
199
200 %description sms
201 Send SMS to cellular phones via web gateways.
202
203 %description sms -l pl
204 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki WWW.
205
206 %package remote
207 Summary:        Remote access from other applications
208 Summary(pl):    Dostêp do programu z innych aplikacji
209 Group:          Applications/Communications
210 Requires:       %{name} = %{epoch}:%{version}
211
212 %description remote
213 Make possible exchange data with other applications.
214
215 %description remote -l pl
216 Wtyczka umo¿liwiaj±ca wymianê informacji z innymi aplikacjami.
217
218 %package themes
219 Summary:        Themes for GNU Gadu 2 GUI
220 Summary(pl):    Motywy graficzne dla GUI GNU Gadu 2
221 Group:          Applications/Communications
222 Requires:       %{name} = %{epoch}:%{version}
223 Requires:       %{name}-gui-gtk+2
224
225 %description themes
226 Themes for GNU Gadu 2 GUI.
227
228 %description themes -l pl
229 Motywy graficzne dla GUI GNU Gadu 2.
230
231 %prep
232 %setup -q -n %{name}-%{version}%{_pre}
233
234 %build
235 rm -f missing
236 intltoolize --copy --force
237 %{__libtoolize}
238 %{__aclocal}
239 %{__automake}
240 %{__autoconf}
241
242 %configure \
243         --disable-gdb \
244         --disable-debug \
245         --with-gui \
246         --with-gadu \
247         --with-tlen \
248         --with-jabber \
249         --with-xosd \
250         --with-docklet \
251         --with-esd \
252         --with-oss \
253         --with-sms \
254         --with-external \
255 %if %{with arts}
256         --with-arts \
257 %endif
258         --with-remote \
259         --enable-perl
260
261 %{__make}
262
263 %install
264 rm -rf $RPM_BUILD_ROOT
265
266 %{__make} install \
267         DESTDIR=$RPM_BUILD_ROOT
268
269 install -d $RPM_BUILD_ROOT%{_desktopdir}
270 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
271 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
272 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
273 install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
274
275 %find_lang %{name} --all-name --with-gnome
276
277 #Remove useless files
278 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
279
280 %clean
281 rm -rf $RPM_BUILD_ROOT
282
283 %post   -p /sbin/ldconfig
284 %postun -p /sbin/ldconfig
285
286 %files -f %{name}.lang
287 %defattr(644,root,root,755)
288 %doc A* C* N* R* T* contrib doc/*
289 %attr(755,root,root) %{_bindir}/gg2
290 %attr(755,root,root) %{_libdir}/libgg2_core.so.*.*.*
291 %dir %{_libdir}/gg2
292 %{_datadir}/%{name}/sounds
293
294 %files gui-gtk+2
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/gg2/libGUI_plugin.so
297 %dir %{_datadir}/gg2
298 %dir %{_datadir}/gg2/pixmaps
299 %{_datadir}/gg2/pixmaps/*.png
300 %{_datadir}/gg2/pixmaps/*.gif
301
302 %{_pixmapsdir}/%{name}.png
303 %{_desktopdir}/gg2.desktop
304
305 %files devel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libgg2_core.so
308 %{_libdir}/libgg2_core.la
309 %{_includedir}/gg2_core.h
310 %{_pkgconfigdir}/gg2_core.pc
311
312 %files emoticons
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_datadir}/gg2/pixmaps/emoticons
315
316 %files gadu-gadu
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/gg2/libgadu_gadu_plugin.so
319
320 %files tlen
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_libdir}/gg2/libtlen_plugin.so
323
324 %files jabber
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/gg2/libjabber_plugin.so
327
328 %files sound-esd
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libdir}/gg2/libsound_esd_plugin.so
331
332 %files sound-oss
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/gg2/libsound_oss_plugin.so
335
336 %files sound-external
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so
339
340 %if %{with arts}
341 %files sound-aRts
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so
344 %endif
345
346 %files xosd
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so
349
350 %files docklet
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/gg2/libdocklet_plugin.so
353
354 %files sms
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/gg2/libsms_plugin.so
357
358 %files remote
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_libdir}/gg2/libremote_plugin.so
361
362 %files themes
363 %defattr(644,root,root,755)
364 %dir %{_datadir}/gg2/themes
365 %{_datadir}/gg2/themes/*.theme
366 %dir %{_datadir}/gg2/pixmaps/icons
367 %dir %{_datadir}/gg2/pixmaps/icons/bubble
368 %dir %{_datadir}/gg2/pixmaps/icons/classic
369 %dir %{_datadir}/gg2/pixmaps/icons/modern
370 %dir %{_datadir}/gg2/pixmaps/icons/rozgwiazda
371 %{_datadir}/gg2/pixmaps/icons/bubble/*.png
372 %{_datadir}/gg2/pixmaps/icons/bubble/README
373 %{_datadir}/gg2/pixmaps/icons/classic/*.png
374 %{_datadir}/gg2/pixmaps/icons/classic/README
375 %{_datadir}/gg2/pixmaps/icons/modern/*.png
376 %{_datadir}/gg2/pixmaps/icons/modern/README
377 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/*.png
378 %{_datadir}/gg2/pixmaps/icons/rozgwiazda/license.txt
379 %{_datadir}/gg2/pixmaps/icons/ghosts/*.png
380 %{_datadir}/gg2/pixmaps/icons/ghosts/README
381 %{_datadir}/gg2/pixmaps/icons/tlen-3d/README
382 %{_datadir}/gg2/pixmaps/icons/tlen-3d/*.png
This page took 0.097575 seconds and 4 git commands to generate.