File purple-matrix.spec of Package purple-matrix

#
# spec file for package purple-matrix
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#


Name:           purple-matrix
Version:        0.0.0~git.1624740297.91021c8
Release:        0
Summary:        Libpurple protocol plugin for Matrix
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Instant Messenger
URL:            https://github.com/matrix-org/purple-matrix
Source:         https://github.com/matrix-org/purple-matrix/archive/refs/heads/master.zip
BuildRequires:  http-parser-devel
BuildRequires:  libgcrypt-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(purple)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  unzip

%description
This is a plugin for libpurple which adds the ability to
communicate with matrix.org homeservers to any libpurple-based
clients (such as Pidgin).

%package -n libpurple-plugin-matrix
Summary:        Libpurple protocol plugin for Matrix
Group:          Productivity/Networking/Instant Messenger
Enhances:       libpurple

%description -n libpurple-plugin-matrix
This is a plugin for libpurple which adds the ability to
communicate with matrix.org homeservers to any libpurple-based
clients (such as Pidgin).

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

%description -n pidgin-plugin-matrix
This is a plugin for libpurple which adds the ability to
communicate with matrix.org homeservers to any libpurple-based
clients (such as Pidgin).

%prep
%setup -q -n purple-matrix-master

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

%install
%make_install

%files -n libpurple-plugin-matrix
%license LICENSE
%doc CHANGES.md README.md
%{_libdir}/purple-2/libmatrix.so

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

%changelog
openSUSE Build Service is sponsored by