# OPTION: perl integration (FC1+) %define perl_integration 1 # OPTION: krb5 for Zephyr protocol (FC1+) %define krb_integration 1 # OPTION: gtkspell integration (FC1+) %define gtkspell_integration 1 # OPTION: Preferred Applications with gnome-open (FC1+) %define gnome_open_integration 1 # OPTION: Evolution 1.5+ integration (FC3+) %define evolution_integration 1 # OPTION: SILC integration (FC3+) %define silc_integration 1 Name: gaim Version: 1.3.0 Release: 2 Epoch: 2 License: GPL Group: Applications/Internet URL: http://gaim.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/gaim/gaim-%{version}.tar.bz2 ## Fedora gaim defaults - Please Regenerate for Each Major Release # 1) run gaim as new user 2) edit preferences 3) close 4) copy .gaim/prefs.xml # - enable System Tray Icon # - enable ExtPlacement plugin # - enable History plugin # - disable buddy icon in buddy list # - enable Logging (in HTML) # - Browser "GNOME Default" # - Smiley Theme "Default" Source1: gaim-fedora-prefs.xml ## Patches 0-99: Fedora specific or upstream wont accept Patch0: gaim-desktop.patch # to be replaced by upstream fix Patch4: gaim-0.76-xinput.patch Patch5: gaim-1.1.0-PIE.patch # GNOME running check is naive and wrong for both KDE and older distributions Patch6: gaim-1.0.1-naive-gnome-check.patch ## Patches 100-199: Upstream CVS Backports #Patch147: gaim-1.2.1-dnd-url-crash.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root Summary: A Gtk+ based multiprotocol instant messaging client Provides: gaim-devel = %{epoch}:%{version}-%{release} # Require Binary Compatible glib # returns bogus value if glib2-devel is not installed in order for parsing to succeed # bogus value wont make it into a real package %define glib_ver %([ -a %{_libdir}/pkgconfig/glib-2.0.pc ] && pkg-config --modversion glib-2.0 | cut -d. -f 1,2 || echo -n "999") Requires: glib2 >= %{glib_ver} # Basic Library Requirements BuildRequires: libao-devel, startup-notification-devel, audiofile-devel BuildRequires: mozilla-nss-devel BuildRequires: gtk2-devel # krb5 needed for Zephyr (FC1+) %if %{krb_integration} BuildRequires: krb5-devel %endif # gtkspell integration (FC1+) %if %{gtkspell_integration} BuildRequires: gtkspell-devel, aspell-devel %endif # Preferred Applications (FC1+) %if %{gnome_open_integration} Requires: libgnome %else Requires: htmlview %endif # Evolution integration (FC3+) %if %{evolution_integration} BuildRequires: evolution-data-server-devel %endif # SILC integration (FC3+) %if %{silc_integration} BuildRequires: libsilc-devel %endif %description Gaim allows you to talk to anyone using a variety of messaging protocols, including AIM (Oscar and TOC), ICQ, IRC, Yahoo!, MSN Messenger, Jabber, Gadu-Gadu, Napster, 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 and C plugins. Gaim is NOT affiliated with or endorsed by America Online, Inc., Microsoft Corporation, or Yahoo! Inc. or other messaging service providers. %prep %setup -q %patch0 -p1 %patch4 -p1 %patch6 -p1 # CVS backports go here #%patch147 -p2 # Relabel internal version for support purposes sed -i "s/%{version}/%{version}-%{release}/g" configure chmod 755 configure # If not using gnome-open, then default to htmlview cp %{SOURCE1} prefs.xml if [ "%{gnome_open_integration}" == "0" ]; then sed -i "s/gnome-open/custom/g" prefs.xml sed -i "s/pref name='command' type='string' value=''/pref name='command' type='string' value='htmlview'/" prefs.xml fi %build %if %{krb_integration} WITH_KRB="--with-krb4" %endif %if %{silc_integration} WITH_SILC="--with-silc-includes=%{_includedir}/silc --with-silc-libs=%{_libdir}" %endif %if %{perl_integration} WITH_PERL="--enable-perl" %else WITH_PERL="--disable-perl" %endif # disable tcl and tk because nobody uses it # gnutls is buggy so use mozilla-nss on all distributions %configure --disable-tcl --disable-tk --enable-gnutls=no --enable-nss=yes $WITH_KRB $WITH_SILC $WITH_PERL # patch Makefile for PIE patch -p1 < %{PATCH5} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/ # remove libtool libraries and static libraries rm -f `find $RPM_BUILD_ROOT -name "*.la" -o -name "*.a"` # remove the old perllocal.pod file rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod # remove relnot.so plugin since it is unusable for our package rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/relnot.so # install Fedora gaim default prefs.xml mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gaim/ install -m 644 prefs.xml $RPM_BUILD_ROOT%{_sysconfdir}/gaim/prefs.xml # make sure that we can write to all the files we've installed # so that they are properly stripped chmod -R u+w $RPM_BUILD_ROOT/* %find_lang %{name} %post /sbin/ldconfig -n %{_libdir}/gaim %postun /sbin/ldconfig -n %{_libdir}/gaim %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc doc/CREDITS NEWS COPYING AUTHORS doc/FAQ README ChangeLog doc/PERL-HOWTO.dox #%%config %{_sysconfdir}/CORBA/servers/gaim_applet.gnorba %{_bindir}/* %{_libdir}/gaim %{_includedir}/gaim %{_libdir}/pkgconfig/gaim.pc %{_libdir}/libgaim*.so %{_libdir}/libgaim*.so.0.* %{_mandir}/*/* #%%{_datadir}/applets/Network/gaim_applet.desktop %{_datadir}/applications/gaim.desktop %{_datadir}/pixmaps/gaim %{_datadir}/pixmaps/gaim.png %{_datadir}/sounds/gaim #%%{_datadir}/pixmaps/gaim/* %{_sysconfdir}/gaim/prefs.xml %dir %{_sysconfdir}/gaim %if %{perl_integration} %{_libdir}/perl5/vendor_perl/*/*/* %endif %changelog * Tue May 10 2005 Warren Togami 1:1.3.0-1 - 1.3.0 many bug fixes and two security fixes long URL crash fix (#157017) CAN-2005-1261 MSN bad messages crash fix (#157202) CAN-2005-1262 * Thu Apr 07 2005 Warren Togami 1:1.2.1-4 - use mozilla-nss everywhere because gnutls is buggy (#135778) * Wed Apr 06 2005 Warren Togami 1:1.2.1-2 - 147: drag-n-drop URL crash fix * Sun Apr 03 2005 Warren Togami 1:1.2.1-1 - update to 1.2.1 CAN-2005-0965 CAN-2005-0966 CAN-2005-0967 * Fri Mar 18 2005 Warren Togami 1:1.2.0-1 - update to 1.2.0 (minor bug fixes) * Mon Mar 07 2005 Warren Togami 1:1.1.4-5 - Copy before modifying prefs.xml * Sun Mar 06 2005 Warren Togami 1:1.1.4-4 - 144: POSIX functions became macros, build fix (#150429) - 145: Fix non-proxy yahoo file transfer - 146: Fix non-proxy yahoo buddy icons * Fri Mar 04 2005 Warren Togami 1:1.1.4-3 - 143: Gadu Gadu protocol crash fix (#149984) * Mon Feb 28 2005 Warren Togami 1:1.1.4-2 - remove gcc4 conditional since FC4 is gcc4 default * Thu Feb 24 2005 Warren Togami 1:1.1.4-1 - 1.1.4 with MSN crash fix, g_stat() crash workaround CAN-2005-0208 Gaim HTML parsing DoS (another one) * Tue Feb 22 2005 Warren Togami 1:1.1.3-4 - Test fixes for #149190 and #149304 * Mon Feb 21 2005 Dan Williams 1:1.1.3-3 - Work around #149190 gaim-1.1.3-2 segfaults when calling g_stat() * Fri Feb 18 2005 Warren Togami 1:1.1.3-2 - 1.1.3 including two security fixes CAN-2005-0472 Client freezes when receiving certain invalid messages CAN-2005-0473 Client crashes when receiving specific malformed HTML * Fri Jan 28 2005 Florian La Roche - rebuild * Thu Jan 20 2005 Warren Togami 1:1.1.2-1 - 1.1.2 with more bugfixes * Tue Jan 18 2005 Chip Turner 1:1.1.1-3 - rebuild for new perl * Mon Jan 03 2005 Warren Togami 1.1.1-2 - force required glib2 version * Tue Dec 28 2004 Warren Togami 1.1.1-1 - 1.1.1 (minor bugfixes) * Thu Dec 2 2004 Warren Togami 1.1.0-1 - upgrade 1.1.0 (mostly bugfixes) - fix PIE patch * Sat Nov 20 2004 Warren Togami 1.0.3-3 - make gcc4 conditional * Sat Nov 20 2004 Daniel Reed 1.0.3-2 - Rebuild using gcc4 - To revert, remove "BuildRequires: gcc4" and "CC=gcc4" * Fri Nov 12 2004 Warren Togami 1.0.3-1 - 1.0.3 another bugfix release * Tue Oct 19 2004 Warren Togami 1.0.2-1 - 1.0.2 fixes many crashes, endian and other issues * Tue Oct 19 2004 Warren Togami 1.0.1-3 - nosnilmot: zephyr krb build was broken by thinko * Wed Oct 13 2004 Warren Togami 1.0.1-2 - CAN-2004-0891 * Thu Oct 07 2004 Warren Togami 1.0.1-1 - update to 1.0.1 - disable naive GNOME session check - switch to gnutls default (FC3+) * Mon Sep 27 2004 Warren Togami 1.0.0-5 - djr fixed PIE - added gnutls option, disabled and favoring mozilla-nss * Sat Sep 25 2004 Warren Togami 1.0.0-4 - PIE * Mon Sep 20 2004 Warren Togami 1.0.0-3 - 141: Jabber chat room list fix * Mon Sep 20 2004 Daniel Reed 1.0.0-2 - #132967 Remove GenericName * Sat Sep 18 2004 Warren Togami 1.0.0-1 - 1.0.0 * Wed Sep 01 2004 Warren Togami 0.82.1-2 - enable SILC protocol * Thu Aug 26 2004 Warren Togami 0.82.1-1 - new upstream point release with crash fix and added translation * Wed Aug 25 2004 Warren Togami 0.82-2 - 140: Buddy icon pref changing crash fix * Wed Aug 25 2004 Warren Togami 0.82-1 - Update to 0.82 resolves several security issues and bugs CAN-2004-0500, CAN-2004-0754, CAN-2004-0784, CAN-2004-0785 More details at http://gaim.sourceforge.net/security/ * Mon Aug 16 2004 Warren Togami 0.81-7 - CVS backport 138: GTK Prefs bug fix * Sun Aug 15 2004 Warren Togami 0.81-6 - CVS backport 137: System Log viewer fd leak * Sun Aug 15 2004 Warren Togami 0.81-5 - fix substitution for browser back compat - req fix for htmlview back compat - update prefs.xml * Fri Aug 13 2004 Warren Togami 0.81-4 - conditionalize features for alternate target distributions - remove unnecessary ExclusiveArch - other cleanups * Wed Aug 11 2004 Warren Togami 0.81-3 - CVS backport 133: CAN-2004-0500 MSNLP buffer overflow 134: Select buddy icon in new account crash 135: Jabber join crash 136: Jabber tooltip fake self crash * Mon Aug 9 2004 Daniel Reed 0.81-2 - #125847 Change gaim.desktop names to "IM" * Thu Aug 05 2004 Warren Togami 0.81-1 - 0.81 - krb5-devel for Zephyr - evolution-data-server-devel integration plugin disabled by default because it seems very unstable * Sun Jul 18 2004 Warren Togami 0.80-3 - CVS backport 130, 131: MSN buddy scaling issue fix 132: Drag and Drop crash fix * Sat Jul 17 2004 Warren Togami 0.80-2 - CVS backport 129: IRC buddy list flood disconnect fix * Fri Jul 16 2004 Warren Togami 0.80-1 - update to 0.80 - enable ExtPlacement plugin by default - Smiley Theme "Default" by default (bug fix) - Insertions -> Control-{B/I/U} by default * Mon Jun 28 2004 Warren Togami 0.79-2 - remove tray icon patch temporarily because it seems to cause more problems than it solves. - provide gaim-devel - CVS backport 128: Cached buddy icons fix * Fri Jun 25 2004 Warren Togami 0.79-1 - update to 0.79 - update desktop patch - update header and pkgconfig locations - update default prefs - FC3 sed behavior workaround - temporarily disable evolution integration * Tue Jun 22 2004 Warren Togami 0.78-8 - rebuilt * Mon Jun 08 2004 Warren Togami 0.78-7 - CVS backport 125: MSN disconnect on non-fatal error fix 126: Paste html with img crash fix 127: Misplaced free fix * Sat Jun 05 2004 Warren Togami 0.78-4 - CVS backport 123: jabber disconnect fix 124: log find click fix * Sun May 30 2004 Warren Togami 0.78-2 - update to 0.78 (without SILC support for now) * Sun May 09 2004 Warren Togami 0.77-7 - CVS backport 121: byte order badness and crashing copy & paste fix 122: history.so scroll to bottom in new tabs fix * Tue May 04 2004 Warren Togami 0.77-6 - CVS backport 118: x86-64 yahoo auth fix 119: Copy/paste fixes for UCS-2 encoded selection 120: IRC reconnect segfault fix - remove relnot.so plugin because it is unusable in FC - Default enable logging and history.so plugin enable autoreconnect plugin - Fix Gnome Default url handler * Thu Apr 29 2004 Warren Togami 0.77-3 - remove gnome-open manual, since 0.77 has "GNOME Default" as default. - update default prefs.xml, disable buddy icons in buddy list - CVS backport 114: plugin prefs saving fix 115: autoreconn-suppress-dialogs 116: fix smileys in dialogs 117: gtk+ 2.0 compat * Sun Apr 25 2004 Warren Togami 0.77-1 - 0.77, remove cvs backports * Fri Apr 15 2004 Warren Togami 0.76-6 - CVS backports: 111 Prevent Crash during password change if blank fields 112 Prevent Crash if remote sends invalid characters 113 Enable /etc/gaim/prefs.xml defaults for new profiles - Tray Icon enabled by default - Relabel internal version with V-R * Fri Apr 14 2004 Warren Togami 0.76-5 - CVS backports: 102 Fix ^F keybinding when gtkrc is set to emacs mode 103 Add Missing File: evolution-1.5.x buildability 104 When MSN server intermittently has problems accessing buddy list, MSN will crash with 0.76 105, 106, 107 MSN Error reporting fixes 108 History plugin causes unnecessary horizontal scrollbars 109 Fix the text replace plugin 110 Prevent message sending while offline * Fri Apr 09 2004 Warren Togami 0.76-3 - CVS backport: Fix oscar tooltip misbehavior Fix yahoo more * Thu Apr 01 2004 Warren Togami 0.76-2 - 0.76 * Sun Mar 28 2004 Warren Togami - CVS snapshot - more spec cleanups * Tue Mar 16 2004 Warren Togami - CVS snapshot, generated with automake-1.7.9 - update #4 - update #2 but disable - #5 no longer needed - default to gnome-open #6 - some spec cleanup * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Fri Jan 23 2004 Christopher Blizzard 1:0.75-1.1.0 - Include patch that fixes a bunch of buffer-related problems, mostly from nectar@freebsd.org and some of my own changes. * Wed Jan 14 2004 Christopher Blizzard 1:0.75-0 - Update to 0.75. - Remove mem leak patch that is already included in 0.75. - Clean up a lot of old unused patches and old source tarballs. * Fri Dec 12 2003 Christopher Blizzard 1:0.74-10 - Add patch that fixes a large memory leak. * Thu Dec 04 2003 Christopher Blizzard 1:0.74-9 - Bump release to rebuild for fc2. * Wed Nov 25 2003 Christopher Blizzard 1:0.74-0 - Upgrade to 0.74 - Include libao-devel and startup-notification-devel to the buildreq list * Mon Nov 03 2003 Christopher Blizzard 1:0.71-2 - Add gtk2-devel to the buildreq list. * Fri Oct 24 2003 Christopher Blizzard 1:0.71-2 - Include patch that should fix some input problems for ja_JP users * Fri Oct 17 2003 Christopher Blizzard 1:0.71-1 - Include patch that updates the tray icon to a more recent version * Mon Sep 29 2003 Christopher Blizzard 1:0.70-0 - Update to 0.70 * Thu Sep 04 2003 Christopher Blizzard 1:0.68-0 - Update to 0.68 * Tue Aug 26 2003 Christopher Blizzard 1:0.66-2 - Change Instant Messenger to Messaging Client * Wed Jul 23 2003 Jeremy Katz 1:0.66-1 - 0.66 * Thu Jul 17 2003 Matt Wilson 1:0.65-1 - 0.65 - don't include .a or .la files * Tue Jul 15 2003 Matt Wilson 1:0.64-2 - rebuild against gtkspell * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Jun 04 2003 Christopher Blizzard 1:0.64-0 - 0.64 * Mon Apr 14 2003 Matt Wilson 1:0.61-1 - 0.61 - remove prefs patch, no longer needed * Wed Apr 9 2003 Matt Wilson 1:0.59.8-1 - use system libtool (#88340) * Wed Jan 29 2003 Christopher Blizzard 0.59.8-0 - Update to 0.59.8 * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Dec 18 2002 Elliot Lee 0.59-11 - Add libtoolize etc. steps * Tue Dec 17 2002 Elliot Lee 0.59-10 - Rebuild * Mon Nov 18 2002 Tim Powers - build on all arches * Fri Aug 09 2002 Christopher Blizzard 0.59-7 - Include patch that uses htmlview instead of calling Netscape directly - Include patch that turns off the buddy ticker and changes the button look to the (sane) default. * Thu Aug 01 2002 Christopher Blizzard - Fix .desktop file, and put it in the right place. - More .desktop file fixes * Tue Jun 25 2002 Christopher Blizzard - Update to 0.59. - Disable perl for now. * Sun May 26 2002 Tim Powers - automated rebuild * Fri May 24 2002 Matt Wilson 0.58-1 - 0.58 - remove applet * Fri Mar 22 2002 Trond Eivind Glomsrød 0.53-1 - Langify * Wed Mar 13 2002 Christopher Blizzard - update 0.53 * Thu Feb 21 2002 Christopher Blizzard - update to 0.52 * Tue Jan 29 2002 Christopher Blizzard - update to 0.51 * Fri Sep 14 2001 Matt Wilson - update to 0.43 * Fri Aug 03 2001 Christopher Blizzard - Add BuildRequires for gnome-libs-devel (bug #44739) * Mon Jul 02 2001 Christopher Blizzard - Add BuildRequires for gnome-core-devel (bug #44739) * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Thu Feb 15 2001 Trond Eivind Glomsrød - make it compile * Sun Feb 11 2001 Tim Powers - updated to 0.11.0pre4 (bug fixes) - applied Bero's konqueror patch to fix kfm->konq * Tue Dec 5 2000 Tim Powers - updated to 0.11.0pre2 - enable gnome support - updated ispell to aspell patch - cleaned up file list * Thu Nov 16 2000 Tim Powers - updated to 0.10.3 * Fri Nov 10 2000 Tim Powers - update to 0.10.2 * Mon Sep 11 2000 Tim Powers - some ideas taken from the package available at the gaim website, mainly to install the applet stuff too. * Wed Aug 9 2000 Tim Powers - added Serial so that we can upgrade from Helix packages from 6.2 * Mon Jul 24 2000 Prospector - rebuilt * Tue Jul 18 2000 Tim Powers - changed default spell checker to aspell from ispell, patched. - requires aspell * Mon Jul 10 2000 Tim Powers - rebuilt * Thu Jun 22 2000 Tim Powers - fixed problems with ldconfig PreReq, shouls have been /sbin/ldconfig * Mon Jun 12 2000 Preston Brown - 0.9.19 - fix ldconfig stuff * Thu Jun 1 2000 Tim Powers - cleaned up spec for use with RPM 4.0 (al la _sysconfdir _datadir etc) - update to 0.9.17 - yay! a man page! * Thu May 25 2000 Tim Powers - we left a bunch of stuff out, pixmaps, plugins. Fixed - added applnk entry * Wed May 10 2000 Tim Powers - updated to 0.9.15 * Mon Apr 24 2000 Matt Wilson - updated to 0.9.14 * Mon Apr 24 2000 Matt Wilson - updated to 0.9.13 * Thu Feb 10 2000 Matt Wilson - added patch to prevent floating point errors in lag-o-meter update code * Wed Nov 10 1999 Tim Powers - updated to 0.9.10 * Tue Jul 13 1999 Tim Powers - rebuilt and put into Powertools 6.1 * Mon Jul 12 1999 Dale Lovelace - First RPM Build