File hexchat.spec of Package hexchat

# spec file for package hexchat
# Copyright (c) 2017 SUSE LINUX 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.12.4
Release:        0
Summary:        A popular and easy to use graphical IRC (chat) client
License:        GPL-2.0+
Group:          Productivity/Networking/IRC
Source0:        https://dl.%{name}.net/%{name}/%{name}-%{version}-repack.tar.xz
Source1:        hexchat-migrate-sh
Source2:        https://dl.%{name}.net/%{name}/%{name}-%{version}-repack.tar.xz.asc
Source3:        hexchat.keyring
# PATCH-FEATURE-SLE migrate-configuration-from-xchat.patch fate#318480 -- replace xchat with hexchat
Patch1:         migrate-configuration-from-xchat.patch
BuildRequires:  dbus-1-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gettext-devel
BuildRequires:  glib2-devel >= 2.34.0
BuildRequires:  gtk2-devel >= 2.24.0
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  iso-codes-devel
BuildRequires:  libcanberra-devel
BuildRequires:  libnotify-devel
BuildRequires:  libopenssl-devel
BuildRequires:  libproxy-devel
BuildRequires:  lua-devel
BuildRequires:  pciutils-devel
BuildRequires:  perl >= 5.8.0
BuildRequires:  pkgconfig
BuildRequires:  python3-devel
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  perl(ExtUtils::Embed)
Recommends:     %{name}-lang
Recommends:     hwdata
Recommends:     iso-codes
# Provide us as replacement from 1315+
Provides:       xchat = %{version}
Obsoletes:      xchat < %{version}

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}
Recommends:     %{name}-plugins-perl = %{version}
Recommends:     %{name}-plugins-python3 = %{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-lua
Summary:        Plugin for HexChat adds support for LUA scripts
Group:          System/Libraries
Requires:       lua

%description plugins-lua
The HexChat plugin providing the LUA scripting interface.

%package plugins-python3
Summary:        Plugin for HexChat adds support for Python3 scripts
Group:          System/Libraries
Provides:       plugins-python = %{version}
Obsoletes:      plugins-python < %{version}

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

%setup -q
%patch1 -p1

%configure \
	--enable-python=python3 \

make V=1 %{?_smp_mflags}

install -Dm 0755 %{SOURCE1} %{buildroot}%{_libdir}/hexchat/$(basename %{SOURCE1})

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

%suse_update_desktop_file %{name}

%find_lang %{name}



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

%files devel

%files lang -f %{name}.lang

%files plugins-perl

%files plugins-lua

%files plugins-python3

openSUSE Build Service is sponsored by