File purple-hangouts.spec of Package purple-hangouts

#
# spec file for package purple-hangouts
#
# 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 https://bugs.opensuse.org/
#


%define _name   hangouts
Name:           purple-hangouts
Version:        0.0+hg20200423
Release:        0
Summary:        Google Hangouts plugin for libpurple/Pidgin
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Instant Messenger
URL:            https://bitbucket.org/EionRobb/purple-hangouts
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pkgconfig
BuildRequires:  protobuf-c
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(purple)

%description
A third-party protocol plugin for libpurple/Pidgin to support the
proprietary protocol that Google uses for its Hangouts service.

%package -n libpurple-plugin-%{_name}
Summary:        Google Hangouts plugin for libpurple
Group:          Productivity/Networking/Instant Messenger
Recommends:     libpurple-plugin-%{_name}-lang
Enhances:       libpurple

%description -n libpurple-plugin-%{_name}
A third-party protocol plugin for libpurple/Pidgin to support the
proprietary protocol that Google uses for its Hangouts service.

This package provides the protocol plugin for libpurple clients.

%package -n pidgin-plugin-%{_name}
Summary:        Google Hangouts plugin for Pidgin
Group:          Productivity/Networking/Instant Messenger
Requires:       libpurple-plugin-%{_name} = %{version}
%requires_ge    pidgin
Supplements:    packageand(libpurple-plugin-%{_name}:pidgin)
BuildArch:      noarch

%description -n pidgin-plugin-%{_name}
A third-party protocol plugin for libpurple/Pidgin to support the
proprietary protocol that Google uses for its Hangouts service.

This package provides the icon set for Pidgin.

%prep
%setup -q

%build
make %{?_smp_mflags} V=1 \
  CFLAGS="%{optflags}"

%install
%make_install

%files -n libpurple-plugin-%{_name}
%license gpl3.txt
%doc README.md
%{_libdir}/purple-2/lib%{_name}.so

%files -n pidgin-plugin-%{_name}
%dir %{_datadir}/pixmaps/pidgin/
%dir %{_datadir}/pixmaps/pidgin/protocols/
%dir %{_datadir}/pixmaps/pidgin/protocols/*/
%{_datadir}/pixmaps/pidgin/protocols/*/%{_name}.*

%changelog
openSUSE Build Service is sponsored by