File xchat.spec of Package xchat

#
# spec file for package xchat (Version 2.8.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           xchat
BuildRequires:  dbus-1-glib-devel fdupes gconf2-devel gnome-patch-translation gtk2-devel libsexy-devel openssl-devel python-devel tcl-devel update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Networking/IRC
Summary:        An IRC Client
Version:        2.8.6
Release:        27
Source:         http://xchat.org/files/source/2.4/%name-%version.tar.bz2
Patch:          %name-gettext.diff
Patch1:         %name-tabs_outgoing_msg.patch
Patch2:         %name-automake-foreign.diff
Patch3:         %name-susefont.diff
Patch4:         %name-ssl.patch
Patch5:         browser.patch
Patch6:         xchat-no-versionscript.patch
Patch7:         xchat-desktop-launch.patch
Patch8:         fixme.diff
Patch9:        %{name}-%{version}-string-literal.patch
Patch10:        %{name}-fix-build.diff
Patch11:        xchat-et.po.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://xchat.org
AutoReqProv:    on
Requires:       /usr/bin/notify-send
Requires:       %{name}-lang = %{version}
%gconf_schemas_prereq

%description
X-Chat is yet another IRC client for the X Window System.  It uses the
Gtk+ toolkit. It is easy to use compared to the other Gtk+ IRC clients
and it has a nicely designed interface.



Authors:
--------
    Peter Zelezny <zed@linux.com>

%lang_package
%prep
%setup -q
gnome-patch-translation-prepare
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5
%patch6 -p1
%patch7
%patch8 -p1
%patch9 
%patch10 -p1
%patch11 -p1
gnome-patch-translation-update

%build
gettextize -f
autoreconf -f -i
test -f po/Makevars || mv po/Makevars.template po/Makevars
%configure\
	--libexecdir=%{_prefix}/lib/%{name}\
	--disable-panel\
	--enable-python\
	--enable-perl\
	--enable-tcl=%{_libdir}\
	--enable-openssl\
	--enable-japanese-conv\
	--enable-ipv6\
	--enable-zvt\
	--enable-gnome
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -N "XChat" -G "IRC Client" -C "" %name IRCClient
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr(-,root,root)
%doc README* COPYING ChangeLog faq.html INSTALL
%{_bindir}/*
%{_libdir}/xchat
%{_datadir}/applications/xchat.desktop
%{_datadir}/pixmaps/xchat.png
%{_datadir}/dbus-1/services/org.xchat.service.service

%files lang -f %{name}.lang

%changelog
* Sat Aug 16 2008 bwalle@suse.de
- fix build (GtkType -> GType) for new Gtk version
- don't require "libnotify" but "/usr/bin/notify-send" to fix
  rpmlint warning
- convert spec file to utf-8 to fix rpmlint warning
- remove empty AUTHORS file to fix rpmlint warning
* Thu Jun 19 2008 bwalle@suse.de
- update to 2.8.6 (see ChangeLog for a full list of changes)
* Sat Nov 10 2007 jpr@suse.de
- Ensure tcl support is enabled on x86_64 (#331666)
- Enable libsexy for spell checking
* Tue Aug 07 2007 maw@suse.de
- Use %%fdupes
- Split out a -lang subpackage.
* Mon Jul 09 2007 bwalle@suse.de
- added patches from wrosenauer:
  o xchat-desktop-launch.patch: don't remove URL handler menu item
  o browser.patch: mozilla doesn't exist anymore -> seamonkey
  o SSL support for encrypted RSA keys
* Wed Jul 04 2007 bwalle@suse.de
- update to 2.8.4
  o added ability to move the tree and userlist
  o full changelog see http://forum.xchat.org/viewtopic.php?p=13820
* Fri Apr 13 2007 bwalle@suse.de
- update to 2.8.2
  o Updated translations (be, ca, cs, el, hu, sv, uk, zh_CN)
  o some fixes
  o Added command line argument --minimize=level
  o Implemented /TRAY -b command on unix.
  o Overhauled the Alerts section of the settings and added support
  for opening system-tray balloons (libnotify required).
* Mon Mar 05 2007 bwalle@suse.de
- updated to 2.8.0
  (included systray icon)
* Tue Feb 20 2007 mvaner@suse.cz
- Comparison with string literal (bug #229781)
  - string-literal.patch
* Fri Jan 12 2007 sbrabec@suse.de
- Spec file cleanup.
* Fri Dec 22 2006 maw@suse.de
- Move to /usr.
* Sat Sep 30 2006 aj@suse.de
- Cleanup BuildRequires.
* Tue Sep 12 2006 stark@suse.de
- update to version 2.6.6
  * many bugfixes and new features such as SSL client certificate
  support
- fixed client certificate usage
* Tue Aug 08 2006 cthiel@suse.de
- fix build
* Tue Apr 18 2006 sbrabec@suse.cz
- Use translation compendium gnome-patch-translation.
* Fri Apr 07 2006 gekker@suse.de
- Change string to be less offensive (#149670)
* Mon Feb 27 2006 stbinner@suse.de
- fix build on PLUS
* Sat Feb 18 2006 stbinner@suse.de
- fix .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 nadvornik@suse.cz
- updated to 2.6.1
* Tue Jan 10 2006 ro@suse.de
- fix desktop file
* Mon Sep 05 2005 lnussel@suse.de
- fix xchatlibdir to use $libdir (#115260)
* Tue Aug 02 2005 sbrabec@suse.cz
- Updated to version 2.4.4.
- Removed unneeded .la files for modules.
* Fri Jul 29 2005 clahey@suse.de
- Call desktop-launch to handle URLs.
* Mon Jun 27 2005 ro@suse.de
- do not use version script for executable
* Fri Feb 04 2005 meissner@suse.de
- Upgraded to 2.4.1: updated translations, various new features,
  and lots of bugfixes.
* Sat Jan 29 2005 meissner@suse.de
- execl argument list terminates with NULL.
* Wed Oct 20 2004 ro@suse.de
- locale rename: no -> nb
* Sun Aug 15 2004 mmj@suse.de
- Update to xchat-2.4.0, including lots of improvement and lots of
  bug fixes.
* Tue Apr 13 2004 mmj@suse.de
- Update to 2.0.8 including:
  o Updated translations
  o Added color, flash and iconify args to /GUI command
  o Plugin API: Added "notify" list.
  o Plugin API: Added id, users, flags fields for "channels" list.
  o New Perl interface
  o Fixed command-character buglet
  o Added "Copy Selected URL" option to URL popupmenu
  o Added work-around for "Get my IP from server" not working on PTNet
  o Fixed: Alt+numbers do not work with X Input Method
  o Added support for "+port" to indicate SSL connections.
  o Fixed non-ASCII chars in time-stamp bug
  o Smaller bug fixes
- Apply official fix for socks5 proxy server issues
* Tue Mar 30 2004 hhetter@suse.de
- use no-strict-aliasing
- remove the gnome-url-handler patch as it completely disables
  urlhandlers.conf, and we run xchat in other environments too
  (#37344)
- add a Epiphany url handler into the default urlhandlers.conf
  (#37344)
- make SUSE Sans Mono 10 the default font in xchat (#37287), thx
  mmj
* Wed Feb 25 2004 hhetter@suse.de
- apply gnome-url-handler patch: enable gnome support,
  add url handlers for gnome browsers
* Mon Jan 05 2004 mmj@suse.de
- Update to 2.0.7 including:
  o Updated translations (fi, nl).
  o Fixed dcc psend crash
  o Fixed bug where an error message was erroneously displayed while
  transfering files with fastosend turned off. Also, allow fastsend
  to be used with psend
  o Fixed notify's Lastseen column for offline users
  o Report more informative error when DCC write to disk fails
  o Fixed crash when xchat.conf contains oversized strings
* Sat Dec 13 2003 mmj@suse.de
- Apply fix from author to avoid remote DCC crash [#33633]
* Tue Dec 02 2003 mmj@suse.de
- Update to 2.0.6 including:
  o Updated translations (de, lt, sl, sr).
  o Fixed detection of Python on amd64
  o Don't loose editbox contents when pressing up, then down arrow
  o Fixed missing dcc flag on new ignores via gui.
  o Fixed missing separator bar on PseudoColor displays.
  o Fixed some 64-bit issues
  o Apply tint changes instantly.
  o Fixed DCC resume with mirc >= 6.1.
  o Python plugin changes:
  * Fixed the reentrancy problem which made xchat freeze when
  some python code made xchat trigger a python callback
  somewhere.
  * Implemented xchat_emit_print() and xchat_get_prefs() support.
  * Fixed softspace support for python 2.3. This problem was
  making print statements yield an extra space at the next
  line start.
  * Other minor changes.
  o Fixed request of a MODE on a channel you're not in changing
  the current titlebar
  o Restored compatibility with older Perl that lacks call_pv().
  o Use sigaction inplace of signal() for better compatibility.
  o Win32: Don't try to open logfiles with a "\" in them, windows
  wont allow it. Instead, the "\" is replaced by a "_".
  o Backported HTTP authentication code from 1.8.11 (you can now
  specify a username and password for HTTP proxies).
  o When beep on highlight is on, beep on channel actions too
  o Added active dcc send feature (/dcc PSEND). More info here:
  http://mail.nl.linux.org/xchat odiscuss/2003-10/msg00124.html
  o URL Handlers menu now removes programs that arn't in PATH.
  o Added "away" users field for plugin API.
  o Smaller bug fixes
* Wed Oct 15 2003 mmj@suse.de
- Do not build as root
* Thu Sep 25 2003 mmj@suse.de
- Update to xchat-2.0.5 including:
  o Updated translations (ca, fi, lt, nl, sk, sv, zh_CN).
  o DCC Send file-selection dialog now supports multi-select.
  o Reset away status after auto-reconnect from a ping timeout.
  o Perl: Fixed IRC::user_info always matching the first entry.
  o More C89 fixes for non-gcc compilers
  o xtext: now double buffered and flicker free. Also some
  efficiency tweaks for exposure events and multiowrapped lines.
  o Removed buggy numeric 338 support
  o Nick completion in dialogs and channel completion
  o Print informative error messages when dcc resume isn't
  possible.
  o Fixed performance of dcc recv, send and chat windows.
  o Fixed tab-arrow buttons show/hide
  o Fixed lastlog bugs
  o win32: Faster tinting, and uses MMX when in 16 or 32bit color.
  o Execute /sigusr2 on receiving SIGUSR2 signal
  o /IGNORE command and window now have an extra "DCC" category.
  o Alert user when logfiles fail to open
  o Fixed missing underlining of IP numbers (2.0.4 only).
  o Allow accepting DCC sends from ports below 1024.
  o Connect to URL given on commandline even if 'No Serverlist on
  Startup' is off.
  o Fixed problem in allocating colors while in 8bit PseudoColor.
  o xtext: tinting now shades towards your background color, making
  it usable with white backgrounds. Tints can also use XShm for
  extra speed with o-enable-shm at ./configure time
  (experimental).
  o Perl: IRC::add_print_handler callbacks now get parameters in
  $_[1...x], with $_[0] left for compatibility
  o Perl: added command_with_channel command
  o Smaller bug fixes
* Fri Aug 08 2003 mmj@suse.de
- Update to 2.0.4 including:
  � Updated translation
  � Lots of bugfixes
  � Users away are now different color in the userlist
  � /GUI command (mainly for use by scripts)
* Tue Aug 05 2003 mmj@suse.de
- Don't strip explicitly
- Cleanup a bit
* Tue Aug 05 2003 adrian@suse.de
- add IRCClient to Categories
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Mon Jul 07 2003 mcihar@suse.cz
- fixed getting of python paths
* Wed Jul 02 2003 mmj@suse.de
- Add late fix from the author
* Mon Jun 30 2003 sbrabec@suse.cz
- Updated to version 2.0.3.
- Worked around bad searching of python.
* Fri Jun 20 2003 mmj@suse.de
- Build with current gettext
* Wed Apr 23 2003 mmj@suse.de
- Update to xchat-2.0.2
* Fri Apr 04 2003 sf@suse.de
- change lib->%%_lib to find libpython
* Mon Mar 03 2003 mmj@suse.de
- Update to 2.0.1 which features extra translations plus the huge
  amount of bugfixes which always comes in the first release after
  a major point release.
* Mon Feb 17 2003 mmj@suse.de
- Package the plugins that got removed by accident
- Small specfile cleanup
* Sun Feb 16 2003 mmj@suse.de
- Fix build on x86-64
* Tue Feb 11 2003 mmj@suse.de
- Upgrade to final 2.0.0 release
- Reenable python since quite some bugfixes went in
- Default "Announce away messages" to off
* Mon Feb 10 2003 mmj@suse.de
- Update to 2.0.0 release candidate 1.
* Mon Jan 27 2003 mmj@suse.de
- Implement a feature to have xchat open a new tab on outgoing msg.
* Mon Jan 27 2003 mmj@suse.de
- Disable the python plugin again, since it's broken still.
* Sun Jan 26 2003 mmj@suse.de
- Update to the first 2.0 prerelease, 2.0.0-pre1 and enable new tcl
  plugin
* Thu Jan 23 2003 meissner@suse.de
- make python support not break on lib64 systems.
* Tue Jan 21 2003 mmj@suse.de
- made python support compile
* Mon Jan 20 2003 mmj@suse.de
- Added gtk2-devel-packages to neededforbuild to make the GUI
  frontend build
* Thu Jan 09 2003 mmj@suse.de
- Move it to /opt/gnome2 instead
* Wed Jan 01 2003 mmj@suse.de
- Update to 1.9.8
* Fri Dec 13 2002 mmj@suse.de
- Update to 1.9.7
* Mon Dec 02 2002 mmj@suse.de
- Update to 1.9.6
- Add AM_GNU_GETTEXT_VERSION patch
* Mon Nov 18 2002 mmj@suse.de
- Update to the stabilizing devel series 1.9.5, now with gtk2
* Thu Nov 14 2002 mmj@suse.de
- Get rid of some dependency hell. It removes some features, but
  this is a chat client, and it should not require a complete SuSE
  Linux install.
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Thu Aug 08 2002 mmj@suse.de
- Update to 1.8.10 which is a maintenance release.
* Tue Jul 09 2002 mmj@suse.de
- Added patch for wrong len in notify.c
* Wed May 22 2002 mmj@suse.de
- Updated to 1.8.9 which includes a few bug fixes, some new
  translations and a fix for the /dns security (non)issue.
* Tue Apr 16 2002 mmj@suse.de
- Fixed to own %%{prefix}/share/locale/*/*
* Fri Apr 12 2002 mmj@suse.de
- Updated to version 1.8.8 which include following improvements:
  o Translations updated
  o Fixed history OBO error (We had that fix in the 1.8.7 version,
  which was included in 8.0)
  o Fixed NLS not working properly under non-gnome build
  o Backported 64-bit fixes from 1.9.1.
  o Auto detect socklen_t.
  o Make nick completion work when completion-char is set blank.
  o Avoid crash when /set truncchans too low.
  o win32: Made a built-in OpenURL function that should work on NT
  o Fixed ConnectCmd not being executed after a second connect
  through the serverlist.
  o Use nicksuffix prefs in middle-click userlist.
  o Fixed recursive wildcard match in /dcc send
* Thu Jan 17 2002 mmj@suse.de
- Added patch to fix History problems
* Thu Jan 17 2002 mmj@suse.de
- Updated to xchat-1.8.7
* Fri Nov 30 2001 mmj@suse.de
- Updated to xchat-1.8.6
* Thu Nov 01 2001 stepan@suse.de
- added bugfix for "leave channels on exit" bug, when using
  a bouncer.
* Mon Oct 29 2001 mmj@suse.de
- Added two new configurable features:
  o auto_unmark_away - when enabled you will automatically be
  unmarked away when you start chatting. Default on.
  o beep_on_hightligt - when enabled it will beep when highlight-
  ing occurs. Default off.
* Fri Oct 26 2001 mmj@suse.de
- Update to 1.8.5
* Sun Oct 14 2001 mmj@suse.de
- Update to 1.8.4
* Sun Sep 23 2001 olh@suse.de
- make the defaults more useable for SuSE Linux
* Wed Aug 29 2001 grimmer@suse.de
- update to 1.8.3 (bugfixes and updated translations)
- changed prefix from /usr to /opt/gnome [#9921]
* Wed Aug 01 2001 grimmer@suse.de
- update to 1.8.2
* Wed Jul 11 2001 mmj@suse.de
- update to new STABLE 1.8.0
* Wed Jun 20 2001 mfabian@suse.de
- update to 1.7.7 (considerably improved Japanese support)
  xchat-1.6.4-fontset.patch and xchat-1.6.4-zh_TW.Big5.po.patch
  removed, they are obsolete.
* Thu Apr 19 2001 mfabian@suse.de
- fix zh_TW.Big5.po for gettext 0.10.36. I don't know Chinese,
  but the changes were trivial (remove extra backslashes needed
  as a workaround for gettext 0.10.35), so it should
  be correct.
* Mon Apr 09 2001 grimmer@suse.de
- update to 1.6.4
  (bugfixes, see ChangeLog at http://www.xchat.org/changelog.txt)
* Tue Mar 20 2001 uli@suse.de
- added esound-devel to neededforbuild
* Wed Feb 07 2001 grimmer@suse.de
- update to 1.6.3 (thanks to Mads for nagging me about this)
- added SSL support
- adjusted fontset patch
- minor spec file corrections
* Sun Jan 21 2001 violiet@suse.de
- added simple fontset patch to display Japanese and Korean correctly
  in the text widget.
* Wed Nov 01 2000 egger@suse.de
- Updated specfile to new long packagenames.
- Reworked specfile.
- Probably needs some more work; I'm taking care of that.
* Fri Sep 29 2000 ro@suse.de
- renamed struct user to struct User ...
* Tue Aug 29 2000 grimmer@suse.de
- update to 1.4.3 (Bugfixes and security fix)
* Mon May 29 2000 olh@suse.de
- update to 1.4.2
  cut down the interface ...
* Thu Feb 17 2000 grimmer@suse.de
- no update to 1.4.0 yet (crashed immediately)
- use build root
- use version macro
- spec file cleanups
* Wed Nov 17 1999 grimmer@suse.de
- initial package (Version 1.2.1)
openSUSE Build Service is sponsored by