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