File python-jenkins-job-builder.spec of Package python-jenkins-job-builder
#
# spec file for package python-jenkins-job-builder
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jenkins-job-builder
Version: 1.6.2
Release: 0
Summary: Manage Jenkins jobs with YAML
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/openstack-ci/jenkins-job-builder
Source: https://files.pythonhosted.org/packages/source/j/jenkins-job-builder/jenkins-job-builder-%{version}.tar.gz
# PATCH-FIX-UPSTREAM 0001-Fix-timeout-wrapper-version-detection.patch -- https://review.openstack.org/387799
Patch1: 0001-Fix-timeout-wrapper-version-detection.patch
# PATCH-FIX-UPSTREAM 0002-Update-logparser-plugin.patch -- https://review.openstack.org/379194
Patch2: 0002-Update-logparser-plugin.patch
# PATCH-FIX-UPSTREAM 0003-add-two-new-options-to-Log-Parser-Plugin.patch -- https://review.openstack.org/445509
Patch3: 0003-add-two-new-options-to-Log-Parser-Plugin.patch
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools-git}
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-pbr >= 1.0.0
Requires: python-python-jenkins >= 0.4.8
Requires: python-six >= 1.5.2
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Jenkins Job Builder takes simple descriptions of Jenkins jobs in YAML format,
and uses them to configure Jenkins. You can keep your job descriptions in human
readable text format in a version control system to make changes and auditing
easier. It also has a flexible template system, so creating many similarly
configured jobs is easy.
%prep
%setup -q -n jenkins-job-builder-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/jenkins-jobs
%post
%python_install_alternative jenkins-jobs
%preun
%python_uninstall_alternative jenkins-jobs
%files %{python_files}
%doc ChangeLog README.rst LICENSE AUTHORS
%{python_sitelib}/*
%python_alternative %{_bindir}/jenkins-jobs
%changelog