Mercurial > pidgin.yaz
annotate gaim.spec.in @ 13608:6c34fbb75bbd
[gaim-migrate @ 15994]
Disconnect the account with a decent error message when there are
problems with an oscar FLAP connection. This needed to be added
after I removed it when rewriting things for non-blocking I/O.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 10 Apr 2006 03:37:37 +0000 |
parents | 8dfe7742739b |
children | c4a5d8950d8c |
rev | line source |
---|---|
10888 | 1 # Older RPM doesn't define these by default |
2 %{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} | |
11912 | 3 %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)} |
10888 | 4 %{!?perl_archlib: %define perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)} |
5 | |
12884 | 6 # When not doing betas comment this out |
7 # NOTE: %defines in spec files are evaluated in comments so the correct | |
8 # way to comment it out is to replace the % with # | |
13561 | 9 %define beta 3 |
12529 | 10 |
12884 | 11 %if 0%{?beta} |
12550 | 12 %define gaimver %(echo "@VERSION@"|sed -e 's/cvs//; s/beta.*//') |
12529 | 13 %else |
14 %define gaimver @VERSION@ | |
15 %endif | |
16 | |
10888 | 17 Summary: A Gtk+ based multiprotocol instant messaging client |
6171 | 18 Name: @PACKAGE@ |
12529 | 19 Version: %gaimver |
20 Release: 0%{?beta:.beta%{beta}} | |
3737
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
21 Epoch: 1 |
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
22 License: GPL |
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
23 Group: Applications/Internet |
7670 | 24 URL: http://gaim.sourceforge.net/ |
7777 | 25 Packager: %{packager} |
13578 | 26 Source: %{name}-@VERSION@.tar.bz2 |
6171 | 27 BuildRoot: %{_tmppath}/%{name}-%{version}-root |
7670 | 28 |
10888 | 29 # Generic build requirements |
13578 | 30 BuildRequires: libtool, pkgconfig, libao-devel, audiofile-devel, intltool, gettext |
11912 | 31 %{?_with_howl:BuildRequires: howl-devel} |
10888 | 32 %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h} |
12529 | 33 %{?_with_meanwhile:BuildRequires: meanwhile-devel} |
13578 | 34 %{?_with_gadugadu:BuildRequires: libgadu-devel} |
10888 | 35 %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h} |
11912 | 36 %{?_with_mono:BuildRequires: mono-devel} |
12529 | 37 %{?_with_dbus:BuildRequires: dbus-devel >= 0.35} |
10888 | 38 %{!?_without_gtkspell:BuildRequires: gtkspell-devel} |
12539 | 39 %{?_with_sasl:BuildRequires: cyrus-sasl-devel >= 2} |
10888 | 40 # For some reason perl isn't always automatically detected as a requirement :( |
41 Requires: perl | |
42 | |
11912 | 43 # Mandrake 10.1 and lower || Mandrake 10.2 (and higher?) |
12550 | 44 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft" || "%{_vendor}" == "Mandriva" |
11009 | 45 # Mandrake/Mandriva requirements |
46 BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel | |
11405 | 47 Obsoletes: libgaim-remote0 |
11009 | 48 %else |
49 | |
10888 | 50 # SuSE & Red Hat / Fedora requirements |
51 BuildRequires: gtk2-devel | |
52 | |
53 %if "%{_vendor}" == "suse" | |
54 BuildRequires: gnutls-devel | |
55 %else | |
13578 | 56 # let's assume RH & FC1 are the only brain-dead distros missing the |
57 # perl-XML-Parser dependency on intltool and that other RH/FC releases | |
58 # don't care if we specify it here | |
59 BuildRequires: perl-XML-Parser | |
10888 | 60 BuildRequires: mozilla-nss-devel |
6171 | 61 %endif |
10888 | 62 %endif |
11912 | 63 |
64 %if 0%{?_with_howl:1} | |
65 %package bonjour | |
11913 | 66 Summary: Bonjour plugin for Gaim |
67 Group: Applications/Internet | |
68 Requires: gaim = %{epoch}:%{version} | |
11009 | 69 %endif |
9373 | 70 |
10888 | 71 %if 0%{?_with_silc:1} |
9373 | 72 %package silc |
73 Summary: SILC (Secure Internet Live Conferencing) plugin for Gaim | |
74 Group: Applications/Internet | |
9429 | 75 Requires: gaim = %{epoch}:%{version} |
76 %endif | |
77 | |
12529 | 78 %if 0%{?_with_meanwhile:1} |
79 %package meanwhile | |
80 Summary: Lotus Sametime plugin for Gaim using the Meanwhile library | |
81 Group: Applications/Internet | |
82 Requires: gaim = %{epoch}:%{version} | |
83 %endif | |
84 | |
13578 | 85 %if 0%{?_with_gadugadu:1} |
86 %package gadugadu | |
87 Summary: Gadu-Gadu plugin for Gaim using the libgadu library | |
88 Group: Applications/Internet | |
89 Requires: gaim = %{epoch}:%{version} | |
90 %endif | |
91 | |
10888 | 92 %if 0%{?_with_tcl:1} |
9429 | 93 %package tcl |
94 Summary: Tcl scripting support for Gaim | |
95 Group: Applications/Internet | |
96 Requires: gaim = %{epoch}:%{version} | |
9373 | 97 %endif |
6171 | 98 |
11912 | 99 %if 0%{?_with_mono:1} |
100 %package mono | |
101 Summary: Mono .NET plugin support for Gaim | |
102 Group: Applications/Internet | |
103 Requires: gaim = %{epoch}:%{version} | |
104 %endif | |
105 | |
6171 | 106 %package devel |
9373 | 107 Summary: Development headers, documentation, and libraries for Gaim. |
108 Group: Applications/Internet | |
10888 | 109 Requires: pkgconfig, gaim = %{epoch}:%{version} |
5033
14bbf22917d9
[gaim-migrate @ 5376]
Christian Hammond <chipx86@chipx86.com>
parents:
5009
diff
changeset
|
110 |
322 | 111 %description |
10888 | 112 Gaim allows you to talk to anyone using a variety of messaging |
10977
2ce8ec01a064
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10888
diff
changeset
|
113 protocols, including AIM, ICQ, IRC, Yahoo!, Novell Groupwise, MSN |
2ce8ec01a064
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10888
diff
changeset
|
114 Messenger, Jabber, Gadu-Gadu, Napster, Lotus Sametime and Zephyr. |
2ce8ec01a064
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10888
diff
changeset
|
115 These protocols are implemented using a modular, easy to use design. |
7163 | 116 To use a protocol, just add an account using the account editor. |
3162 | 117 |
10888 | 118 Gaim supports many common features of other clients, as well as many |
7163 | 119 unique features, such as perl scripting, TCL scripting and C plugins. |
3162 | 120 |
10888 | 121 Gaim is NOT affiliated with or endorsed by America Online, Inc., |
7163 | 122 Microsoft Corporation, Yahoo! Inc., or ICQ Inc. |
2578 | 123 |
11912 | 124 %if 0%{?_with_howl:1} |
125 %description bonjour | |
126 Bonjour plugin for Gaim | |
127 %endif | |
128 | |
10888 | 129 %if 0%{?_with_silc:1} |
9373 | 130 %description silc |
131 SILC (Secure Internet Live Conferencing) plugin for Gaim | |
132 %endif | |
133 | |
12529 | 134 %if 0%{?_with_meanwhile:1} |
135 %description meanwhile | |
136 Lotus Sametime plugin for Gaim using the Meanwhile library | |
137 %endif | |
138 | |
13578 | 139 %if 0%{?_with_gadugadu:1} |
140 %description gadugadu | |
141 Gadu-Gadu plugin for Gaim using the libgadu library | |
142 %endif | |
143 | |
10888 | 144 %if 0%{?_with_tcl:1} |
9429 | 145 %description tcl |
146 Tcl plugin loader for Gaim. This package will allow you to write or | |
147 use Gaim plugins written in the Tcl programming language. | |
148 %endif | |
149 | |
11912 | 150 %if 0%{?_with_mono:1} |
151 %description mono | |
152 Mono plugin loader for Gaim. This package will allow you to write or | |
153 use Gaim plugins written in the .NET programming language. | |
154 %endif | |
155 | |
6171 | 156 %description devel |
157 The gaim-devel package contains the header files, developer | |
158 documentation, and libraries required for development of gaim scripts | |
159 and plugins. | |
160 | |
322 | 161 %prep |
12529 | 162 %setup -q -n %{name}-@VERSION@ |
322 | 163 |
164 %build | |
6171 | 165 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ |
166 --bindir=%{_bindir} \ | |
167 --datadir=%{_datadir} \ | |
168 --includedir=%{_includedir} \ | |
169 --libdir=%{_libdir} \ | |
170 --mandir=%{_mandir} \ | |
6995
dfc78aeca2d7
[gaim-migrate @ 7551]
Christian Hammond <chipx86@chipx86.com>
parents:
6994
diff
changeset
|
171 --sysconfdir=%{_sysconfdir} \ |
10888 | 172 --with-ao=%{_libdir} \ |
13578 | 173 %{!?_with_perlmakehack:--with-perl-lib=%{_prefix}} \ |
174 %{?_with_perlmakehack:--with-perl-lib=%{buildroot}%{_prefix}} \ | |
9373 | 175 %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \ |
9429 | 176 %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \ |
12529 | 177 %{?_with_mono:--enable-mono} \ |
10888 | 178 %{!?_with_tcl:--disable-tcl} \ |
12529 | 179 %{!?_with_dbus:--disable-dbus} \ |
180 %{?_without_gtkspell:--disable-gtkspell} \ | |
12539 | 181 %{?_with_sasl:--enable-cyrus-sasl} |
9373 | 182 |
6171 | 183 make %{?_smp_mflags} |
322 | 184 |
185 %install | |
6171 | 186 rm -rf %{buildroot} |
13578 | 187 if 0%{?_with_perlmakehack} |
188 make prefix=%{buildroot}%{_prefix} bindir=%{buildroot}%{_bindir} \ | |
189 datadir=%{buildroot}%{_datadir} includedir=%{buildroot}%{_includedir} \ | |
190 libdir=%{buildroot}%{_libdir} mandir=%{buildroot}%{_mandir} \ | |
191 sysconfdir=%{buildroot}%{_sysconfdir} \ | |
192 install | |
193 %else | |
12529 | 194 make DESTDIR=$RPM_BUILD_ROOT install |
13578 | 195 %endif |
6171 | 196 |
11912 | 197 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la |
12529 | 198 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
10888 | 199 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
11912 | 200 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
201 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' | |
202 | |
203 %if 0%{!?_with_howl:1} | |
204 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libbonjour.so | |
205 %endif | |
10073 | 206 |
10888 | 207 %if 0%{!?_with_silc:1} |
10073 | 208 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsilcgaim.so |
209 %endif | |
210 | |
12529 | 211 %if 0%{!?_with_meanwhile:1} |
212 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsametime.so | |
213 %endif | |
214 | |
13578 | 215 %if 0%{!?_with_gadugadu:1} |
216 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libgg.so | |
217 %endif | |
218 | |
10888 | 219 %if 0%{!?_with_tcl:1} |
10073 | 220 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so |
221 %endif | |
222 | |
11912 | 223 %if 0%{!?_with_mono:1} |
224 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/mono.so | |
225 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.dll | |
226 %endif | |
227 | |
228 | |
9373 | 229 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \ |
10888 | 230 sed "s@^$RPM_BUILD_ROOT@@g" | \ |
11913 | 231 grep -v libbonjour.so | \ |
11912 | 232 grep -v libsilcgaim.so | \ |
12529 | 233 grep -v libsametime.so | \ |
13578 | 234 grep -v libgg.so | \ |
11912 | 235 grep -v tcl.so | \ |
11913 | 236 grep -v mono.so | \ |
237 grep -v ".dll$" | \ | |
9429 | 238 grep -v ".tcl$" > %{name}-%{version}-coreplugins |
6736
e411a7d6378c
[gaim-migrate @ 7268]
Christian Hammond <chipx86@chipx86.com>
parents:
6653
diff
changeset
|
239 |
6171 | 240 %clean |
241 rm -rf %{buildroot} | |
322 | 242 |
9373 | 243 %files -f %{name}-%{version}-coreplugins |
3737
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
244 %defattr(-, root, root) |
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
245 |
8058 | 246 %doc doc/the_penguin.txt doc/CREDITS NEWS COPYING AUTHORS COPYRIGHT |
6171 | 247 %doc README ChangeLog |
248 %doc %{_mandir}/man1/* | |
7006 | 249 %doc %{_mandir}/man3*/* |
3737
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
250 |
6246 | 251 %dir %{_libdir}/gaim |
11912 | 252 %attr(755, root, root) %{perl_vendorarch}/Gaim* |
253 %attr(755, root, root) %{perl_vendorarch}/auto/Gaim | |
6736
e411a7d6378c
[gaim-migrate @ 7268]
Christian Hammond <chipx86@chipx86.com>
parents:
6653
diff
changeset
|
254 |
3737
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
255 %{_bindir}/* |
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
256 %{_datadir}/locale/*/*/* |
5939b57aeed8
[gaim-migrate @ 3875]
Christian Hammond <chipx86@chipx86.com>
parents:
3736
diff
changeset
|
257 %{_datadir}/pixmaps/* |
6246 | 258 %dir %{_datadir}/sounds/gaim |
4206
30b5741e4c87
[gaim-migrate @ 4442]
Christian Hammond <chipx86@chipx86.com>
parents:
4030
diff
changeset
|
259 %{_datadir}/sounds/gaim/* |
4030 | 260 %{_datadir}/applications/* |
547
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
369
diff
changeset
|
261 |
12529 | 262 %if 0%{?_with_dbus:1} |
263 %{_libdir}/libgaim-client.so.* | |
264 %{_datadir}/dbus-1/services/gaim.service | |
265 %endif | |
266 | |
11912 | 267 %if 0%{?_with_howl:1} |
268 %files bonjour | |
269 %defattr(-, root, root) | |
270 | |
271 %{_libdir}/gaim/libbonjour.* | |
272 %endif | |
273 | |
10888 | 274 %if 0%{?_with_silc:1} |
9373 | 275 %files silc |
276 %defattr(-, root, root) | |
277 | |
278 %{_libdir}/gaim/libsilcgaim.* | |
279 %endif | |
280 | |
12529 | 281 %if 0%{?_with_meanwhile:1} |
282 %files meanwhile | |
283 %defattr(-, root, root) | |
284 | |
285 %{_libdir}/gaim/libsametime.* | |
286 %endif | |
287 | |
13578 | 288 %if 0%{?_with_gadugadu:1} |
289 %files gadugadu | |
290 %defattr(-, root, root) | |
291 | |
292 %{_libdir}/gaim/libgg.* | |
293 %endif | |
294 | |
10888 | 295 %if 0%{?_with_tcl:1} |
9429 | 296 %files tcl |
297 %defattr(-, root, root) | |
298 | |
299 %{_libdir}/gaim/tcl.so | |
300 %endif | |
301 | |
11912 | 302 %if 0%{?_with_mono:1} |
303 %files mono | |
304 %defattr(-, root, root) | |
305 | |
306 %{_libdir}/gaim/mono.so | |
307 %{_libdir}/gaim/*.dll | |
308 %endif | |
309 | |
6171 | 310 %files devel |
9373 | 311 %defattr(-, root, root) |
6171 | 312 |
10888 | 313 %doc plugins/HOWTO |
10303 | 314 %doc HACKING PROGRAMMING_NOTES |
6171 | 315 |
9364 | 316 %dir %{_includedir}/gaim |
317 %{_includedir}/gaim/*.h | |
318 %{_libdir}/pkgconfig/gaim.pc | |
11318 | 319 %{_datadir}/aclocal/gaim.m4 |
12529 | 320 %if 0%{?_with_dbus:1} |
321 %{_libdir}/libgaim-client.so | |
322 %endif | |
2224 | 323 |
324 %changelog | |
13578 | 325 * Wed Mar 29 2006 <stu@nosnilmot.com> |
326 - Source RPM uses tar.bz2 now to save space | |
327 - Update BuildRequires for new intltool dependencies | |
328 - Add a --with perlmakehack option to allow builds to succeed on RH9 | |
329 - Add a --with gadugadu to build (separate) gaim-gadugadu package | |
330 | |
12529 | 331 * Sat Dec 17 2005 <stu@nosnilmot.com> |
332 - Add support for beta versions so the subsequent releases are seen as newer | |
333 by RPM | |
334 - Split of sametime support to gaim-meanwhile | |
335 - Use make DESTDIR=... instead of overloading prefix etc. when installing | |
336 - Default build to include cyrus-sasl support in Jabber | |
337 - Add --with dbus to build with DBUS support | |
338 | |
12314
e1fc3eaf73b9
[gaim-migrate @ 14618]
Christopher O'Brien <siege@pidgin.im>
parents:
11913
diff
changeset
|
339 * Sun Dec 04 2005 <siege@preoccupied.net> |
e1fc3eaf73b9
[gaim-migrate @ 14618]
Christopher O'Brien <siege@pidgin.im>
parents:
11913
diff
changeset
|
340 - Added obsoletes gaim-meanwhile |
e1fc3eaf73b9
[gaim-migrate @ 14618]
Christopher O'Brien <siege@pidgin.im>
parents:
11913
diff
changeset
|
341 |
11912 | 342 * Sun Oct 30 2005 <stu@nosnilmot.com> |
343 - Add separate gaim-bonjour package if built with --with-howl | |
344 - Add separate gaim-mono package if built with --with-mono | |
345 - Exclude some unwanted perl files | |
346 | |
11318 | 347 * Sat Aug 20 2005 <stu@nosnilmot.com> |
348 - Include libgaimperl.so | |
349 - Include gaim.m4 in gaim-devel | |
350 | |
10888 | 351 * Thu Apr 28 2005 <stu@nosnilmot.com> |
352 - Use perl_vendorlib & perl_archlib for better 64bit compat (Jeff Mahoney) | |
353 - Clean up Requires, most should be auto-detected | |
354 - Restore gtkspell-devel build requirement (and add --without gtkspell option) | |
355 - Fix Tcl build requirements to work across more distros | |
356 - Fix SILC build requirements to work across more distros | |
357 | |
358 * Mon Oct 11 2004 John Jolly <john.jolly@gmail.com> | |
359 - Added if "%{_vendor}" == "suse" to handle GnuTLS libraries for SuSE | |
360 | |
10073 | 361 * Sat Oct 2 2004 Stu Tomlinson <stu@nosnilmot.com> |
362 - If --with tcl or silc are not specified, make sure the plugins don't | |
363 exist to prevent RPM complaining about unpackaged files | |
364 | |
9429 | 365 * Tue Jun 29 2004 Ethan Blanton <eblanton@cs.ohiou.edu> |
366 - Change Tcl to use --with tcl, the same as SILC, and build a gaim-tcl | |
367 package if specified. | |
368 | |
9400 | 369 * Thu Jun 24 2004 Mark Doliner <thekingant@users.sourceforge.net> |
370 - Add --with silc rebuild option for compiling a separate gaim-silc | |
371 RPM containing the silc protocol plugin (Stu Tomlinson). | |
372 | |
9368 | 373 * Wed Jun 23 2004 Ethan Blanton <eblanton@cs.ohiou.edu> |
374 - Moved gaim headers and a pkgconfig configuration file into the | |
9400 | 375 gaim-devel RPM (Stu Tomlinson). |
9368 | 376 |
8115 | 377 * Thu Jan 15 2004 Ethan Blanton <eblanton@cs.ohiou.edu> |
378 - Removed the manual strip command, as it seems to be unwarranted if | |
379 the necessary programs are properly installed. (For me, this was | |
380 elfutils.) | |
381 | |
6246 | 382 * Sun Jul 20 2003 Bjoern Voigt <bjoern@cs.tu-berlin.de> |
383 - Added pkgconfig build dependency. | |
384 - if "%{_vendor}" != "MandrakeSoft" now also works with rpm 3.x. | |
385 - Added Gaim-specific directories to list of Gaim's files. | |
386 | |
6171 | 387 * Wed Jul 16 2003 Ethan Blanton <eblanton@cs.ohiou.edu> |
388 - Complete spec file rewrite to take advantage of "new" RPM features | |
389 and make things prettier. | |
390 - Use system-supplied %%{_prefix}, %%{_datadir}, etc. rather than | |
391 attempt to define our own. |