File python-python-qpid-proton.spec of Package python-python-qpid-proton

#
# spec file for package python-python-qpid-proton
#
# 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/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name:           python-python-qpid-proton
Version:        0.17.0
Release:        0
Summary:        An AMQP based messaging library
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://qpid.apache.org/proton/
Source:         https://files.pythonhosted.org/packages/source/p/python-qpid-proton/python-qpid-proton-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  swig
BuildRequires:  pkgconfig(libqpid-proton)
BuildRequires:  pkgconfig(libsasl2)
BuildRequires:  pkgconfig(libssl)

%python_subpackages

%description
Qpid Proton is a messaging library. It can be used in a range of
messaging applications, including brokers, client libraries,
routers, bridges, proxies, and more. Proton makes it easy to
integrate with the AMQP 1.0 ecosystem from any platform,
environment, or language.

%prep
%setup -q -n python-qpid-proton-%{version}

%build
export CFLAGS="%{optflags}"
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}

%files %{python_files}
%defattr(-,root,root,-)
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by