File hexchat.spec of Package hexchat

# spec file for package hexchat
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Andrey Karepin <>
# 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

Name:           hexchat
Version:        2.10.2
Release:        0
Summary:        A popular and easy to use graphical IRC (chat) client
License:        GPL-2.0+
Group:          Productivity/Networking/IRC
Source:         http://dl.%{name}.net/%{name}/%{name}-%{version}.tar.xz
BuildRequires:  bison >= 1.35
BuildRequires:  dbus-1-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gettext-devel
BuildRequires:  glib2-devel >= 2.14.0
BuildRequires:  gtk2-devel >= 2.10.0
BuildRequires:  intltool
BuildRequires:  iso-codes-devel
BuildRequires:  libcanberra-devel
BuildRequires:  libnotify-devel
BuildRequires:  libproxy-devel
BuildRequires:  libsexy-devel
BuildRequires:  libxml2-devel
BuildRequires:  openssl-devel
BuildRequires:  pciutils-devel
BuildRequires:  perl >= 5.8.0
BuildRequires:  pkgconfig
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  perl(ExtUtils::Embed)
Recommends:     %{name}-lang
%if 0%{?suse_version} != 1315
BuildRequires:  libntlm-devel

HexChat is an easy to use graphical IRC chat client for the X Window System.
It allows you to join multiple IRC channels (chat rooms) at the same time,
talk publicly, private one-on-one conversations etc. Even file transfers
are possible.

%package devel
Summary:        Development Files for HexChat
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       %{name}-plugins-perl = %{version}
Requires:       %{name}-plugins-python = %{version}

%description devel
This package includes files needed to develop HexChat modules.


%package plugins-perl
Summary:        Plugin for HexChat adds support for Perl scripts
Group:          System/Libraries

%description plugins-perl
The HexChat plugin providing the Perl scripting interface.

%package plugins-python
Summary:        Plugin for HexChat adds support for Python scripts
Group:          System/Libraries

%description plugins-python
The HexChat plugin providing the Python scripting interface.

%setup -q

# fix date embedding to avoid needless rebuilds
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
sed -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" \
	-i src/fe-gtk/menu.c \
	-i src/fe-text/fe-text.c

%configure \
	--enable-minimal-flags \
	--enable-python=python2 \
	--enable-isocodes \

make V=1 %{?_smp_mflags}


# Get rid of libtool archives
find %{buildroot} -type f -name "*.la" -delete -print

%suse_update_desktop_file -r hexchat IRCClient Network

%find_lang %{name}



%dir %{_libdir}/hexchat
%dir %{_libdir}/hexchat/plugins
%dir %{_datadir}/appdata/

%files devel

%files lang -f %{name}.lang

%files plugins-perl

%files plugins-python