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