2018-02-19 08:17:26 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-stomp.py
|
|
|
|
#
|
2023-03-11 10:22:58 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-02-19 08:17:26 +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.
|
|
|
|
|
2018-12-04 14:07:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-07 08:59:48 +00:00
|
|
|
#
|
2018-02-19 08:17:26 +00:00
|
|
|
|
|
|
|
|
2020-01-01 10:47:42 +00:00
|
|
|
%define skip_python2 1
|
2018-02-19 08:17:26 +00:00
|
|
|
Name: python-stomp.py
|
2023-03-11 10:22:58 +00:00
|
|
|
Version: 8.1.0
|
2018-02-19 08:17:26 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python STOMP client
|
2018-07-07 08:59:48 +00:00
|
|
|
License: Apache-2.0
|
2020-01-01 10:47:42 +00:00
|
|
|
URL: https://github.com/jasonrbriggs/stomp.py
|
2020-02-21 20:18:23 +00:00
|
|
|
# using github archive for docs
|
2023-03-11 10:22:58 +00:00
|
|
|
#Source0: https://github.com/jasonrbriggs/stomp.py/archive/v%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
|
|
|
|
#github is missing the tag: https://github.com/jasonrbriggs/stomp.py/issues/415
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/s/stomp.py/stomp.py-%{version}.tar.gz
|
2022-02-06 08:25:10 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module poetry}
|
2018-02-19 08:17:26 +00:00
|
|
|
BuildRequires: fdupes
|
2022-02-06 08:25:10 +00:00
|
|
|
BuildRequires: python-rpm-generators
|
2018-07-07 08:59:48 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-19 08:52:50 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-04-05 19:11:18 +00:00
|
|
|
Requires(postun):update-alternatives
|
2022-02-06 08:25:10 +00:00
|
|
|
%{?python_enable_dependency_generator}
|
2018-02-19 08:17:26 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Python client library for accessing messaging servers (such as ActiveMQ, Apollo or RabbitMQ) using the STOMP protocol versions 1.0, 1.1 and 1.2. It can also be run as a standalone, command-line client for testing.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n stomp.py-%{version}
|
2022-02-14 11:22:47 +00:00
|
|
|
sed -i 's/\^/>=/' pyproject.toml
|
2018-02-19 08:17:26 +00:00
|
|
|
|
|
|
|
%build
|
2022-02-06 08:25:10 +00:00
|
|
|
%pyproject_wheel
|
2018-02-19 08:17:26 +00:00
|
|
|
|
|
|
|
%install
|
2022-02-06 08:25:10 +00:00
|
|
|
%pyproject_install
|
2020-05-19 08:52:50 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/stomp
|
2018-02-19 08:17:26 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-05-19 08:52:50 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative stomp
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative stomp
|
|
|
|
|
2018-02-19 08:17:26 +00:00
|
|
|
%files %{python_files}
|
2023-03-11 10:22:58 +00:00
|
|
|
%doc README.rst
|
|
|
|
# CHANGELOG.md
|
2018-02-19 08:17:26 +00:00
|
|
|
%license LICENSE
|
2020-05-19 08:52:50 +00:00
|
|
|
%python_alternative %{_bindir}/stomp
|
2023-03-11 10:22:58 +00:00
|
|
|
%{python_sitelib}/stomp/
|
|
|
|
%{python_sitelib}/stomp_py-%{version}*-info
|
2018-02-19 08:17:26 +00:00
|
|
|
|
|
|
|
%changelog
|