File purple-matrix.spec of Package purple-matrix

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


Name:		purple-matrix
Version: 	0.0.0
Release:	0
Summary:	Libpurple protocol plugin for matrix
License:	GPL-2.0
Group:		Productivity/Networking/Instant Messenger
Url:		https://github.com/matrix-org/purple-matrix
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	make
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	http-parser-devel
BuildRequires:	pkgconfig(purple)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This project 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:	Steam plugin for libpurple
Group:		Productivity/Networking/Instant Messenger
Enhances:	libpurple

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

This package provides the plugin library.


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

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

This package provides the icon set for Pidgin.


%prep
%setup -q


%build
export CFLAGS="%{optflags}"
export CPPFLAGS="%{optflags}"
%make_build


%install
%make_install


%files -n libpurple-plugin-matrix
%defattr(-,root,root)
%doc README.md CHANGES.md AUTHORS.rst CONTRIBUTING.rst
%license LICENSE
%{_libdir}/purple-2/libmatrix.so


%files -n pidgin-plugin-matrix
%defattr(-,root,root)
%dir %{_datadir}/pixmaps/pidgin/
%dir %{_datadir}/pixmaps/pidgin/protocols/
%dir %{_datadir}/pixmaps/pidgin/protocols/*/
%{_datadir}/pixmaps/pidgin/protocols/*/matrix.png


%changelog