2011-09-27 09:04:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pika
|
|
|
|
#
|
2016-03-16 13:07:48 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-27 09:04:52 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2015-03-26 16:18:22 +00:00
|
|
|
|
2011-09-27 09:04:52 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-03-26 16:18:22 +00:00
|
|
|
|
2011-09-27 09:04:52 +00:00
|
|
|
%define mod_name pika
|
|
|
|
|
|
|
|
Name: python-%{mod_name}
|
2016-03-16 13:07:48 +00:00
|
|
|
Version: 0.10.0
|
2011-09-27 09:04:52 +00:00
|
|
|
Release: 0
|
|
|
|
Url: http://pika.github.com/
|
|
|
|
Summary: Pika Python AMQP Client Library
|
2016-03-16 13:07:48 +00:00
|
|
|
License: BSD-3-Clause
|
2011-09-27 09:04:52 +00:00
|
|
|
Group: Development/Languages/Python
|
2016-03-16 13:07:48 +00:00
|
|
|
Source: https://pypi.python.org/packages/source/p/pika/pika-%{version}.tar.gz
|
2011-09-27 09:04:52 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-12-05 20:12:47 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%else
|
2011-09-27 09:04:52 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
|
|
|
|
tries to stay fairly independent of the underlying network support
|
|
|
|
library. Pika was developed primarily for use with RabbitMQ, but
|
|
|
|
should also work with other AMQP 0-9-1 brokers.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{mod_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2016-03-16 13:07:48 +00:00
|
|
|
%doc README.rst LICENSE
|
2011-09-27 09:04:52 +00:00
|
|
|
# You may have to add additional files here (documentation and binaries mostly)
|
|
|
|
%python_sitelib/%{mod_name}*
|
|
|
|
%python_sitelib/*.egg-info
|
|
|
|
|
2012-11-19 07:56:02 +00:00
|
|
|
%changelog
|