File python-qpid.spec of Package python-qpid

# spec file for package python-qpid
# Copyright (c) 2014 SUSE LINUX Products 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

Name:           python-qpid
Version:        0.28
Release:        0
Summary:        Python client library for AMQP
License:        Apache-2.0
Group:          Development/Libraries/Python
# Avoid use of poll if select is monkey patched by Eventlet/Greenthreads
Patch0:         0001-QPID-5790-avoid-use-of-poll-if-select-is-monkey-patc.patch
BuildRequires:  python
BuildRequires:  python-devel
BuildRequires:  python-xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %{?suse_version} >= 1200
BuildArch:      noarch

The Apache Qpid Python client library for AMQP.

%setup -q -n qpid-python-%{version}
%patch0 -p3
cd ..

CFLAGS="%{optflags}" python build

python install \
    --skip-build \
    --prefix %{_prefix} \
    --install-purelib %{python_sitelib} \
    --root %{buildroot}

chmod +x %{buildroot}/%{python_sitelib}/qpid/
chmod +x %{buildroot}/%{python_sitelib}/qpid/tests/
chmod +x %{buildroot}/%{python_sitelib}/qpid/
chmod +x %{buildroot}/%{python_sitelib}/qpid/
chmod +x %{buildroot}/%{python_sitelib}/qpid/

%doc README.txt
%doc examples
%dir %{python_sitelib}/mllib
%dir %{python_sitelib}/qpid

openSUSE Build Service is sponsored by