File hexchat-indicator.spec of Package hexchat-indicator

#
# spec file for package hexchat-indicator
#
# Copyright (c) 2018 SUSE LINUX 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/
#


%define _name   xchat-indicator
%define _version 0.4
Name:           hexchat-indicator
Version:        0.4.0
Release:        0
Summary:        HexChat Indicator Plugin
License:        GPL-2.0-or-later
Group:          Productivity/Networking/IRC
URL:            https://launchpad.net/xchat-indicator
Source:         https://launchpad.net/%{_name}/%{_version}/%{version}/+download/%{_name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE hexchat-indicator-remove-unity.patch p.drouand@gmail.com
Patch0:         %{name}-remove-unity.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(hexchat-plugin)
BuildRequires:  pkgconfig(messaging-menu)
Requires:       hexchat

%description
A HexChat plugin to utilise the Messaging Indicator.

%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1

%build
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags} V=1

%install
%make_install
rm %{buildroot}%{_libdir}/xchat/plugins/indicator.so

find %{buildroot} -type f -name "*.la" -delete -print

%files
%if 0%{?suse_version} >= 1500
%license COPYING
%else
%doc COPYING
%endif
%doc AUTHORS NEWS
%{_libdir}/hexchat/plugins/hexindicator.so

%changelog
openSUSE Build Service is sponsored by