forked from pool/python-stomper
Accepting request 688621 from home:pgajdos
- version update to 0.4.1 * python3 support * utf-8 encoding under python3 - build also python3 variant - drop SLE11 support - run fdupes - include LICENSE OBS-URL: https://build.opensuse.org/request/show/688621 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stomper?expand=0&rev=14
This commit is contained in:
committed by
Git OBS Bridge
parent
f97c28d721
commit
c97440f6d4
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-stomper
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -12,27 +12,32 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-stomper
|
||||
Version: 0.3.0
|
||||
Version: 0.4.1
|
||||
Release: 0
|
||||
Summary: This is a transport neutral client implementation of the STOMP protocol
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: http://code.google.com/p/stomper
|
||||
Source: http://pypi.python.org/packages/source/s/stomper/stomper-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-setuptools
|
||||
Url: https://code.google.com/p/stomper
|
||||
Source0: https://pypi.python.org/packages/source/s/stomper/stomper-%{version}.tar.gz
|
||||
# https://github.com/oisinmulvihill/stomper/issues/12
|
||||
Source1: LICENSE
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module future}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# /SECTION
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This is a python client implementation of the STOMP protocol.
|
||||
@@ -44,19 +49,22 @@ the sending and receiving.
|
||||
|
||||
%prep
|
||||
%setup -q -n stomper-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
nosetests
|
||||
%python_expand nosetests-%{$python_bin_suffix}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst lib/stomper/examples
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user