Mercurial > pidgin.yaz
view gaim.spec.in @ 11701:5d7da4056644
[gaim-migrate @ 13992]
SF Patch #1332870, from corfe83
"In gtkimhtml.c, in function gtk_smiley_tree_destroy, in
the while loop, we go through the tree and add all the
nodes to be deleted to a GSList. However, we add them
by appending them to the list, but the order of the
list doesn't matter. Because GSList's don't keep track
of the last item in the list, this means each step of
the loop (when we append) we are incrementing through
the whole list. In my tests, on closing the preference
box, this loop was gone through more than 1,000 times,
and at many stages this list it is appending to is well
over 50 elements long.
I've changed it to prepend items to the list, which
works just the same (although destroying items in the
tree in a different order), and is much faster (prepend
works in O(1) time, as opposed to O(N) time)."
I think the moral of the story is, when order doesn't matter, use g_[s]list_prepend instead of g_[s]list_append.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 20 Oct 2005 08:01:03 +0000 |
parents | a6d446cf090f |
children | 8eb1f4b9210c |
line wrap: on
line source
# Older RPM doesn't define these by default %{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} %{!?perl_archlib: %define perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)} Summary: A Gtk+ based multiprotocol instant messaging client Name: @PACKAGE@ Version: @VERSION@ Release: 0 Epoch: 1 License: GPL Group: Applications/Internet URL: http://gaim.sourceforge.net/ Packager: %{packager} Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root # Generic build requirements BuildRequires: libtool, pkgconfig, libao-devel, audiofile-devel %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h} %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h} %{!?_without_gtkspell:BuildRequires: gtkspell-devel} # For some reason perl isn't always automatically detected as a requirement :( Requires: perl # Mandrake 10.1 and lower %if "%{_vendor}" == "MandrakeSoft" # Mandrake/Mandriva requirements BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel Obsoletes: libgaim-remote0 %else # Mandrake 10.2 (and higher?) %if "%{_vendor}" == "Mandrakesoft" # Mandrake/Mandriva requirements BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel Obsoletes: libgaim-remote0 %else # SuSE & Red Hat / Fedora requirements BuildRequires: gtk2-devel %if "%{_vendor}" == "suse" BuildRequires: gnutls-devel %else BuildRequires: mozilla-nss-devel %endif %endif %endif %if 0%{?_with_silc:1} %package silc Summary: SILC (Secure Internet Live Conferencing) plugin for Gaim Group: Applications/Internet Requires: gaim = %{epoch}:%{version} %endif %if 0%{?_with_tcl:1} %package tcl Summary: Tcl scripting support for Gaim Group: Applications/Internet Requires: gaim = %{epoch}:%{version} %endif %package devel Summary: Development headers, documentation, and libraries for Gaim. Group: Applications/Internet Requires: pkgconfig, gaim = %{epoch}:%{version} %description Gaim allows you to talk to anyone using a variety of messaging protocols, including AIM, ICQ, IRC, Yahoo!, Novell Groupwise, MSN Messenger, Jabber, Gadu-Gadu, Napster, Lotus Sametime and Zephyr. These protocols are implemented using a modular, easy to use design. To use a protocol, just add an account using the account editor. Gaim supports many common features of other clients, as well as many unique features, such as perl scripting, TCL scripting and C plugins. Gaim is NOT affiliated with or endorsed by America Online, Inc., Microsoft Corporation, Yahoo! Inc., or ICQ Inc. %if 0%{?_with_silc:1} %description silc SILC (Secure Internet Live Conferencing) plugin for Gaim %endif %if 0%{?_with_tcl:1} %description tcl Tcl plugin loader for Gaim. This package will allow you to write or use Gaim plugins written in the Tcl programming language. %endif %description devel The gaim-devel package contains the header files, developer documentation, and libraries required for development of gaim scripts and plugins. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ --bindir=%{_bindir} \ --datadir=%{_datadir} \ --includedir=%{_includedir} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir} \ --with-ao=%{_libdir} \ --with-perl-lib=%{buildroot}%{_prefix} \ %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \ %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \ %{!?_with_tcl:--disable-tcl} \ %{?_without_gtkspell:--disable-gtkspell} make %{?_smp_mflags} %install rm -rf %{buildroot} make prefix=%{buildroot}%{_prefix} bindir=%{buildroot}%{_bindir} \ datadir=%{buildroot}%{_datadir} includedir=%{buildroot}%{_includedir} \ libdir=%{buildroot}%{_libdir} mandir=%{buildroot}%{_mandir} \ sysconfdir=%{buildroot}%{_sysconfdir} \ install rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la %if 0%{!?_with_silc:1} rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsilcgaim.so %endif %if 0%{!?_with_tcl:1} rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so %endif find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v libsilcgaim.so | grep -v tcl.so | grep -v ".tcl$" > %{name}-%{version}-coreplugins %clean rm -rf %{buildroot} %files -f %{name}-%{version}-coreplugins %defattr(-, root, root) %doc doc/the_penguin.txt doc/CREDITS NEWS COPYING AUTHORS COPYRIGHT %doc README ChangeLog %doc %{_mandir}/man1/* %doc %{_mandir}/man3*/* %dir %{_libdir}/gaim %attr(755, root, root) %{_libdir}/libgaimperl.so %attr(755, root, root) %{perl_vendorlib} %{_bindir}/* %{_datadir}/locale/*/*/* %{_datadir}/pixmaps/* %dir %{_datadir}/sounds/gaim %{_datadir}/sounds/gaim/* %{_datadir}/applications/* %if 0%{?_with_silc:1} %files silc %defattr(-, root, root) %{_libdir}/gaim/libsilcgaim.* %endif %if 0%{?_with_tcl:1} %files tcl %defattr(-, root, root) %{_libdir}/gaim/tcl.so %endif %files devel %defattr(-, root, root) %doc plugins/HOWTO %doc HACKING PROGRAMMING_NOTES %dir %{_includedir}/gaim %{_includedir}/gaim/*.h %{_libdir}/pkgconfig/gaim.pc %{_datadir}/aclocal/gaim.m4 %changelog * Sat Aug 20 2005 <stu@nosnilmot.com> - Include libgaimperl.so - Include gaim.m4 in gaim-devel * Thu Apr 28 2005 <stu@nosnilmot.com> - Use perl_vendorlib & perl_archlib for better 64bit compat (Jeff Mahoney) - Clean up Requires, most should be auto-detected - Restore gtkspell-devel build requirement (and add --without gtkspell option) - Fix Tcl build requirements to work across more distros - Fix SILC build requirements to work across more distros * Mon Oct 11 2004 John Jolly <john.jolly@gmail.com> - Added if "%{_vendor}" == "suse" to handle GnuTLS libraries for SuSE * Sat Oct 2 2004 Stu Tomlinson <stu@nosnilmot.com> - If --with tcl or silc are not specified, make sure the plugins don't exist to prevent RPM complaining about unpackaged files * Tue Jun 29 2004 Ethan Blanton <eblanton@cs.ohiou.edu> - Change Tcl to use --with tcl, the same as SILC, and build a gaim-tcl package if specified. * Thu Jun 24 2004 Mark Doliner <thekingant@users.sourceforge.net> - Add --with silc rebuild option for compiling a separate gaim-silc RPM containing the silc protocol plugin (Stu Tomlinson). * Wed Jun 23 2004 Ethan Blanton <eblanton@cs.ohiou.edu> - Moved gaim headers and a pkgconfig configuration file into the gaim-devel RPM (Stu Tomlinson). * Thu Jan 15 2004 Ethan Blanton <eblanton@cs.ohiou.edu> - Removed the manual strip command, as it seems to be unwarranted if the necessary programs are properly installed. (For me, this was elfutils.) * Sun Jul 20 2003 Bjoern Voigt <bjoern@cs.tu-berlin.de> - Added pkgconfig build dependency. - if "%{_vendor}" != "MandrakeSoft" now also works with rpm 3.x. - Added Gaim-specific directories to list of Gaim's files. * Wed Jul 16 2003 Ethan Blanton <eblanton@cs.ohiou.edu> - Complete spec file rewrite to take advantage of "new" RPM features and make things prettier. - Use system-supplied %%{_prefix}, %%{_datadir}, etc. rather than attempt to define our own.