File xchat.spec of Package xchat

#
# spec file for package xchat (Version 2.8.6)
#
# Copyright (c) 2009 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 libxml2-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:        44.<RELEASE4>
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:         xchat-%{version}-not-stupid-149670.patch
Patch10:        %{name}-%{version}-string-literal.patch
Patch11:        %{name}-fix-build.diff
# PATCH-FIX-UPSTREAM xchat-c_onnect-button.patch bnc#547747 dimstar@opensuse.org -- Fix button labeled C_onnect.
Patch12:        xchat-c_onnect-button.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.

%package perl
License:        GPL v2 or later
Summary:        An IRC Client - Support for perl plugins
Group:          Productivity/Networking/IRC
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:perl)
Requires:       perl = %{perl_version}

%description perl
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.

This package contains the files necessary to support perl plugins.

%package python
License:        GPL v2 or later
Summary:        An IRC Client - Support for python plugins
Group:          Productivity/Networking/IRC
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:python)

%description python
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.

This package contains the files necessary to support python plugins.

%package tcl
License:        GPL v2 or later
Summary:        An IRC Client - Support for tcl plugins
Group:          Productivity/Networking/IRC
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:tcl)

%description tcl
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.

This package contains the files necessary to support tcl plugins.

%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 -p1
%patch10
%patch11 -p1
%patch12 -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}/*
%dir %{_libdir}/xchat
%dir %{_libdir}/xchat/plugins
%{_datadir}/applications/xchat.desktop
%{_datadir}/pixmaps/xchat.png
%{_datadir}/dbus-1/services/org.xchat.service.service

%files perl
%defattr(-,root,root)
%{_libdir}/xchat/plugins/perl.so

%files python
%defattr(-,root,root)
%{_libdir}/xchat/plugins/python.so

%files tcl
%defattr(-,root,root)
%{_libdir}/xchat/plugins/tcl.so

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by