forked from pool/python-python-jenkins
- Add pkg_resources.patch (lp#2003556) to use packaging instead of obsolete version of pkg_resources. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-jenkins?expand=0&rev=33
90 lines
3.0 KiB
RPMSpec
90 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-python-jenkins
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-python-jenkins
|
|
Version: 1.8.0
|
|
Release: 0
|
|
Summary: Python bindings for the remote Jenkins API
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://opendev.org/jjb/python-jenkins
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-jenkins/python-jenkins-%{version}.tar.gz
|
|
# https://bugs.launchpad.net/python-jenkins/+bug/1971524
|
|
Patch0: python-python-jenkins-no-mock.patch
|
|
# PATCH-FIX-UPSTREAM pkg_resources.patch lp#2003556 mcepl@suse.com
|
|
# Don't depend on the old version of setuptools, but use packaging
|
|
Patch1: pkg_resources.patch
|
|
# PATCH-FIX-OPENSUSE skip_failing_tests.patch bsc#[0-9]+ mcepl@suse.com
|
|
# skip failing tests (upstream just up-versioned setuptools and cannot be bothered)
|
|
Patch2: skip_failing_tests.patch
|
|
BuildRequires: %{python_module cmd2}
|
|
BuildRequires: %{python_module multi_key_dict}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module pbr >= 0.8.2}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module requests-mock >= 1.4}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module testscenarios}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(krb5-gssapi)
|
|
Requires: python-multi_key_dict
|
|
Requires: python-packaging
|
|
Requires: python-pbr
|
|
Requires: python-requests
|
|
Requires: python-setuptools
|
|
Requires: python-six >= 1.3.0
|
|
Provides: python-jenkins = %{version}
|
|
Obsoletes: python-jenkins < %{version}
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This package provides Python bindings for the Jenkins Remote
|
|
API. It currently supports management of:
|
|
* Project configuration
|
|
* Build control
|
|
* Slave node configuration
|
|
|
|
%prep
|
|
%autosetup -p1 -n python-jenkins-%{version}
|
|
|
|
sed -i '1{\@^#!%{_bindir}/env python@d}' jenkins/__init__.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pyunittest discover -v tests
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc README.rst
|
|
%{python_sitelib}/jenkins
|
|
%{python_sitelib}/python_jenkins-%{version}*-info
|
|
|
|
%changelog
|