python-jenkins/python-jenkins.spec

101 lines
2.7 KiB
RPMSpec
Raw Normal View History

2021-07-29 16:32:06 +08:00
Name: python-jenkins
Version: 1.8.0
Release: 1
2021-07-29 16:32:06 +08:00
Summary: Python bindings for the remote Jenkins API
License: BSD-3-Clause
2021-07-29 16:32:06 +08:00
URL: http://git.openstack.org/cgit/openstack/python-jenkins
Source0: https://files.pythonhosted.org/packages/93/2e/8120831ac693483e3ac878c2f1c6bb3535dabb247b4a93117bb2da3b09f8/python-jenkins-1.8.0.tar.gz
# Contributed at https://review.opendev.org/c/jjb/python-jenkins/+/881904
Patch0: 0001-Fix-compatibility-with-setuptools-66.patch
2021-07-29 16:32:06 +08:00
2021-08-20 14:17:47 +08:00
BuildRequires: python3-sphinx
BuildRequires: make
2021-08-20 14:17:47 +08:00
BuildArch: noarch
2021-07-29 16:32:06 +08:00
%description
2021-08-20 14:17:47 +08:00
Python Jenkins is a library for the remote API of the Jenkins continuous
integration server. It is useful for creating and managing jobs as well as
build nodes.
2021-07-29 16:32:06 +08:00
%package -n python3-jenkins
2021-08-20 14:17:47 +08:00
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-kerberos
BuildRequires: python3-mock
BuildRequires: python3-multi_key_dict
BuildRequires: python3-pbr >= 0.8.2
BuildRequires: python3-requests
BuildRequires: python3-requests-mock
BuildRequires: python3-setuptools
BuildRequires: python3-six >= 1.3.0
BuildRequires: python3-testscenarios
BuildRequires: python3-testtools
%{?python_provide:%python_provide python3-jenkins}
%if %{undefined __pythondist_requires}
Requires: python3-multi_key_dict
Requires: python3-pbr >= 0.8.2
Requires: python3-requests
Requires: python3-six >= 1.3.0
%endif
Recommends: python3-kerberos
2021-07-29 16:32:06 +08:00
%description -n python3-jenkins
2021-08-20 14:17:47 +08:00
Python Jenkins is a library for the remote API of the Jenkins continuous
integration server. It is useful for creating and managing jobs as well as
build nodes.
2021-07-29 16:32:06 +08:00
%prep
%autosetup -p1 -n %{name}-%{version}
2021-08-20 14:17:47 +08:00
# Remove env from __init__.py
sed -i '1{s|^#!/usr/bin/env python||}' jenkins/__init__.py
2021-07-29 16:32:06 +08:00
%build
2021-08-20 14:17:47 +08:00
export PBR_VERSION=%{version}
2021-07-29 16:32:06 +08:00
%py3_build
2021-08-20 14:17:47 +08:00
PYTHONDONTWRITEBYTECODE=1 \
PYTHONPATH=$PWD \
%make_build -C doc html man
rm doc/build/html/.buildinfo
2021-07-29 16:32:06 +08:00
%install
2021-08-20 14:17:47 +08:00
export PBR_VERSION=%{version}
2021-07-29 16:32:06 +08:00
%py3_install
2021-08-20 14:17:47 +08:00
install -D -m0644 -p doc/build/man/pythonjenkins.1 %{buildroot}%{_mandir}/man1/pythonjenkins.1
%check
%{__python3} -m testtools.run discover tests
%files -n python3-jenkins
%doc README.rst doc/build/html
%license COPYING
%{python3_sitelib}/jenkins/
%{python3_sitelib}/python_jenkins-%{version}-py%{python3_version}.egg-info/
%{_mandir}/man1/pythonjenkins.1.*
2021-07-29 16:32:06 +08:00
%changelog
* Wed Aug 23 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.8.0-1
- Update package to version 1.8.0
2022-06-28 16:29:04 +08:00
* Tue Jun 28 2022 wangkai <wangkai385@h-partners.com> -1.7.0-3
- Remove buildrequires python-nose
2021-08-20 14:17:47 +08:00
* Fri Aug 20 2021 Pengju Jiang <jiangpengju2@huawei.com> - 1.7.0-2
- bugfix_function_loss.patch
2021-07-29 16:32:06 +08:00
* Tue Jul 27 2021 Python_Bot <Python_Bot@openeuler.org> - 1.7.0-1
- Package Spec generated