File python-jenkins-job-builder.spec of Package python-jenkins-job-builder

#
# spec file for package python-jenkins-job-builder
#
# Copyright (c) 2017 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/
#


Name:           python-jenkins-job-builder
Version:        1.6.1
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://pypi.io/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
BuildRequires:  python-pbr
BuildRequires:  python-setuptools-git
Requires:       python-PyYAML
Requires:       python-jenkins >= 0.4.8
Requires:       python-pbr >= 1.0.0
Requires:       python-six >= 1.5.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%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

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc ChangeLog README.rst LICENSE AUTHORS
%{python_sitelib}/*
%{_bindir}/jenkins-jobs

%changelog
openSUSE Build Service is sponsored by