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 <egdfree@opensuse.org>
#
# 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/
#
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
Url: http://www.hexchat.org
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
%endif
%description
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.
%lang_package
%package plugins-perl
Summary: Plugin for HexChat adds support for Perl scripts
Group: System/Libraries
%{?libperl_requires}
%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.
%prep
%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
%build
%configure \
--enable-minimal-flags \
--enable-python=python2 \
--enable-isocodes \
--enable-ntlm
make V=1 %{?_smp_mflags}
%install
%make_install
# Get rid of libtool archives
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file -r hexchat IRCClient Network
%find_lang %{name}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc COPYING readme.md
%{_bindir}/hexchat
%dir %{_libdir}/hexchat
%dir %{_libdir}/hexchat/plugins
%{_libdir}/hexchat/plugins/checksum.so
%{_libdir}/hexchat/plugins/doat.so
%{_libdir}/hexchat/plugins/fishlim.so
%{_libdir}/hexchat/plugins/sysinfo.so
%{_datadir}/applications/hexchat.desktop
%{_datadir}/icons/hicolor/*
%dir %{_datadir}/appdata/
%{_datadir}/appdata/*.xml
%{_datadir}/dbus-1/services/org.hexchat.service.service
%{_mandir}/man1/hexchat.1.gz
%files devel
%defattr(-,root,root)
%{_includedir}/hexchat-plugin.h
%{_libdir}/pkgconfig/hexchat-plugin.pc
%files lang -f %{name}.lang
%defattr(-,root,root)
%files plugins-perl
%defattr(-,root,root)
%{_libdir}/hexchat/plugins/perl.so
%files plugins-python
%defattr(-,root,root)
%{_libdir}/hexchat/plugins/python.so
%changelog