2016-02-26 13:56:57 +00:00
|
|
|
#
|
2016-03-29 22:34:31 +00:00
|
|
|
# spec file for package python-python-jenkins
|
2016-02-26 13:56:57 +00:00
|
|
|
#
|
2025-07-28 04:08:51 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2016-02-26 13:56:57 +00:00
|
|
|
# Copyright (c) 2014 Thomas Bechtold <thomasbechtold@jpberlin.de>
|
|
|
|
#
|
|
|
|
# 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-11 15:09:12 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-02-26 13:56:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-python-jenkins
|
2025-07-28 04:08:51 +00:00
|
|
|
Version: 1.8.2
|
2016-02-26 13:56:57 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for the remote Jenkins API
|
|
|
|
License: BSD-3-Clause
|
2020-03-20 12:27:12 +00:00
|
|
|
URL: https://opendev.org/jjb/python-jenkins
|
2018-07-18 11:32:20 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-jenkins/python-jenkins-%{version}.tar.gz
|
2025-07-28 04:08:51 +00:00
|
|
|
# PATCH-FIX-UPSTREAM Based on https://review.opendev.org/c/jjb/python-jenkins/+/953273
|
2022-05-04 06:59:03 +00:00
|
|
|
Patch0: python-python-jenkins-no-mock.patch
|
2025-07-28 04:08:51 +00:00
|
|
|
# PATCH-FIX-UPSTREAM Based on https://opendev.org/jjb/python-jenkins/commit/63b657fe23c3b33903061a17b88787886be3c6dd
|
|
|
|
Patch1: remove-six.patch
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: %{python_module cmd2}
|
2018-09-04 17:58:39 +00:00
|
|
|
BuildRequires: %{python_module multi_key_dict}
|
2025-07-28 04:08:51 +00:00
|
|
|
BuildRequires: %{python_module multiprocess}
|
2020-03-20 12:27:12 +00:00
|
|
|
BuildRequires: %{python_module pbr >= 0.8.2}
|
2023-04-12 14:17:21 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2025-07-28 04:08:51 +00:00
|
|
|
BuildRequires: %{python_module requests-mock >= 1.11}
|
2018-09-04 17:58:39 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
BuildRequires: %{python_module testscenarios}
|
2023-04-12 14:17:21 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2023-04-12 15:19:20 +00:00
|
|
|
BuildRequires: fdupes
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2018-07-18 11:32:20 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: pkgconfig(krb5-gssapi)
|
2016-02-26 13:56:57 +00:00
|
|
|
Requires: python-multi_key_dict
|
2023-04-12 15:19:20 +00:00
|
|
|
Requires: python-pbr
|
2018-09-04 17:58:39 +00:00
|
|
|
Requires: python-requests
|
2016-02-26 13:56:57 +00:00
|
|
|
Provides: python-jenkins = %{version}
|
2019-05-14 18:56:51 +00:00
|
|
|
Obsoletes: python-jenkins < %{version}
|
2018-07-18 11:32:20 +00:00
|
|
|
BuildArch: noarch
|
2017-09-25 12:39:34 +00:00
|
|
|
%python_subpackages
|
2016-02-26 13:56:57 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides Python bindings for the Jenkins Remote
|
2019-05-14 18:56:51 +00:00
|
|
|
API. It currently supports management of:
|
2016-02-26 13:56:57 +00:00
|
|
|
* Project configuration
|
|
|
|
* Build control
|
|
|
|
* Slave node configuration
|
|
|
|
|
|
|
|
%prep
|
2022-05-04 06:59:03 +00:00
|
|
|
%autosetup -p1 -n python-jenkins-%{version}
|
2016-02-26 13:56:57 +00:00
|
|
|
|
2023-04-12 15:19:20 +00:00
|
|
|
sed -i '1{\@^#!%{_bindir}/env python@d}' jenkins/__init__.py
|
|
|
|
|
2016-02-26 13:56:57 +00:00
|
|
|
%build
|
2023-04-12 14:17:21 +00:00
|
|
|
%pyproject_wheel
|
2016-02-26 13:56:57 +00:00
|
|
|
|
|
|
|
%install
|
2023-04-12 14:17:21 +00:00
|
|
|
%pyproject_install
|
2023-04-12 15:19:20 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-02-26 13:56:57 +00:00
|
|
|
|
2018-09-04 17:58:39 +00:00
|
|
|
%check
|
2023-04-12 15:19:20 +00:00
|
|
|
%pyunittest discover -v tests
|
2018-09-04 17:58:39 +00:00
|
|
|
|
2017-09-25 12:39:34 +00:00
|
|
|
%files %{python_files}
|
2018-07-18 11:32:20 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst
|
2023-04-12 15:19:20 +00:00
|
|
|
%{python_sitelib}/jenkins
|
2025-07-28 04:08:51 +00:00
|
|
|
%{python_sitelib}/python_jenkins-%{version}.dist-info
|
2016-02-26 13:56:57 +00:00
|
|
|
|
|
|
|
%changelog
|