File xchat-gnome.spec of Package xchat-gnome

# spec file for package xchat-gnome
# Copyright (c) 2011 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

# norootforbuild

Name:           xchat-gnome
License:        GPL-2.0+
Group:          Productivity/Networking/IRC
Summary:        A more simple IRC Client
Version:        0.26.1
Release:        19
# PATCH-FIX-UPSTREAM xchat-gnome-gtk2.19.7.patch -- Fix build with gtk 2.19.7. Patch taken from upstream git.
Patch0:         xchat-gnome-gtk2.19.7.patch
# PATCH-FIX-UPSTREAM xchat-gnome-make382.patch bgo#629382 -- Fix build with make 3.82, requires autoreconf and gnome-common BuildRequires
Patch1:         xchat-gnome-make382.patch
# PATCH-FIX-UPSTREAM xchat-gnome-0.26.1-libnotify.patch -- Fix build with libnotify 0.7.x. Patch taken from upstream git.
Patch2:         xchat-gnome-0.26.1-libnotify.patch
# PATCH-FIX-UPSTREAM xchat-gnome-dso-linking.patch -- Fix linking issue, taken from git
Patch3:         xchat-gnome-dso-linking.patch
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  glib2-devel
# Needed for patch1 xchat-gnome-make382.patch
BuildRequires:  gnome-common
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-patch-translation
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libglade2-devel
BuildRequires:  libgnome-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  libnotify-devel
BuildRequires:  libsexy-devel
BuildRequires:  openssl-devel
BuildRequires:  python-devel
BuildRequires:  tcl-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

XChat-GNOME is a new frontend to the popular X-Chat IRC client which is
designed with the user interface foremost in mind. Historically, the
OSS desktop has been steadily improving in usability, accessibility,
and general slickness, yet the world of IRC clients has not kept up.
With IRC being one of the fundamental methods of communication within
the open source community, it is bizzare that this area has been

GNOME's philosophy in terms of user interfaces has been progressing
towards presenting the user with few options and sane defaults. While
many of the normal X-Chat options will be preserved inside GConf and
the xchat config files, only the most common settings will be included
in the main user interface.

The authors decided that the GTK+ frontend provided excessive
customizability without sufficient organization, which lead to clutter
and confusion. As such, XChat-GNOME was born, and is gaining
popularity as an IRC client for people who care more about chatting
than tweaking settings. If anyone is interested in helping out with the
project, stop by #xchat-gnome on

%setup -q
%if 0%{suse_version} > 1120
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

# Upstream provides several empty translations. Remove them:
cd po
for PO in *.po ; do
    if LC_MESSAGES=C msgfmt --statistics -o /dev/null $PO 2>&1 | grep "^0 translated messages" ; then
	echo $PO
ls -1 *.po | sed 's/\.po//' >LINGUAS
cd ..
# needed for patch1 & patch3
        --disable-maintainer-mode \
make %{?jobs:-j%jobs}

%if 0%{?suse_version} <= 1110
%{__rm} %{buildroot}%{_datadir}/locale/jbo/LC_MESSAGES/*
%suse_update_desktop_file -N "XChat-GNOME" xchat-gnome
cp -r $RPM_BUILD_ROOT%{_datadir}/%{name}/icons $RPM_BUILD_ROOT%{_datadir}
%find_lang %{name} %{?no_lang_C}
rm $RPM_BUILD_ROOT%{_libdir}/xchat-gnome/plugins/*.*a


%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


%files -f %{name}.schemas_list
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%dir %{_libdir}/xchat-gnome
%dir %{_libdir}/xchat-gnome/plugins
%doc %{_mandir}/man?/*.*

%files lang -f %{name}.lang