forked from pool/python-pika
Accepting request 518057 from devel:languages:python
- switch to singlespec OBS-URL: https://build.opensuse.org/request/show/518057 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pika?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 22 06:27:00 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
- switch to singlespec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 16 11:20:03 UTC 2016 - tbechtold@suse.com
|
Wed Mar 16 11:20:03 UTC 2016 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pika
|
# spec file for package python-pika
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
%define mod_name pika
|
%define mod_name pika
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-%{mod_name}
|
Name: python-%{mod_name}
|
||||||
Version: 0.10.0
|
Version: 0.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,15 +26,14 @@ Url: http://pika.github.com/
|
|||||||
Summary: Pika Python AMQP Client Library
|
Summary: Pika Python AMQP Client Library
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.python.org/packages/source/p/pika/pika-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pika/pika-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
%if 0%{?suse_version} <= 1110
|
BuildRequires: python-rpm-macros
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
|
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
|
||||||
@@ -45,12 +45,12 @@ should also work with other AMQP 0-9-1 brokers.
|
|||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
# You may have to add additional files here (documentation and binaries mostly)
|
# You may have to add additional files here (documentation and binaries mostly)
|
||||||
|
Reference in New Issue
Block a user