- version update to 0.16.0 * Merge "Update the docker image to python3.9 and buster" * Fix python3.9 testing * Update the docker image to python3.9 and buster * Overhaul package metadata and contributor info * Add libffi header dependency * Update testing to Python 3.9 and linters * Create SSL context using PROTOCOL_TLS, fallback to highest supported version * Merge "wakeConnections: Randomize connections before scanning them" * Merge "Move handleDisconnect into BaseClientServer" * Merge "remove unicode from code" * Merge "Modify connection timeout process" * wakeConnections: Randomize connections before scanning them * Added Docker image builds * remove unicode from code * Merge "Bump crypto requirement to accomodate security standards" * use python3 as context for build-python-release * Bump crypto requirement to accomodate security standards * Move handleDisconnect into BaseClientServer * Revert "Add BSD/Darwin support." * Merge "Ignore keepalive on unsupported platforms" * Merge "Add BSD/Darwin support." OBS-URL: https://build.opensuse.org/request/show/1006776 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gear?expand=0&rev=17
82 lines
2.6 KiB
RPMSpec
82 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-gear
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-gear
|
|
Version: 0.16.0
|
|
Release: 0
|
|
Summary: Pure Python Async Gear Protocol Library
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/openstack-infra/gear
|
|
Source: https://files.pythonhosted.org/packages/source/g/gear/gear-%{version}.tar.gz
|
|
BuildRequires: %{python_module extras}
|
|
BuildRequires: %{python_module fixtures >= 0.3.12}
|
|
BuildRequires: %{python_module pbr >= 1.8.0}
|
|
BuildRequires: %{python_module pyOpenSSL}
|
|
BuildRequires: %{python_module python-daemon >= 2.0.4}
|
|
BuildRequires: %{python_module python-subunit}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six >= 1.5.2}
|
|
BuildRequires: %{python_module testrepository >= 0.0.13}
|
|
BuildRequires: %{python_module testresources}
|
|
BuildRequires: %{python_module testscenarios}
|
|
BuildRequires: %{python_module testtools >= 0.9.27}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-extras
|
|
Requires: python-pbr >= 1.8.0
|
|
Requires: python-python-daemon >= 2.0.4
|
|
Requires: python-six >= 1.5.2
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A pure-Python asynchronous library to interface with Gearman.
|
|
|
|
%prep
|
|
%setup -q -n gear-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%python_clone -a %{buildroot}%{_bindir}/geard
|
|
|
|
%check
|
|
# Switched off because of https://storyboard.openstack.org/#!/story/2009250
|
|
# %%pyunittest discover -v
|
|
|
|
%post
|
|
%python_install_alternative geard
|
|
|
|
%postun
|
|
%python_uninstall_alternative geard
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog AUTHORS
|
|
%{python_sitelib}/*
|
|
%python_alternative %{_bindir}/geard
|
|
|
|
%changelog
|