From 79fe2379027f0eb48954a580e7985bfc53766c31c266114ef1945eef13048435 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 25 Sep 2017 12:39:34 +0000 Subject: [PATCH] - convert to singlespec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-jenkins?expand=0&rev=8 --- python-python-jenkins.changes | 5 +++++ python-python-jenkins.spec | 17 +++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/python-python-jenkins.changes b/python-python-jenkins.changes index 139e91b..46e50b4 100644 --- a/python-python-jenkins.changes +++ b/python-python-jenkins.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 25 12:39:24 UTC 2017 - dmueller@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Fri Apr 28 10:43:13 UTC 2017 - tbechtold@suse.com diff --git a/python-python-jenkins.spec b/python-python-jenkins.spec index c48f2c1..de930cb 100644 --- a/python-python-jenkins.spec +++ b/python-python-jenkins.spec @@ -17,6 +17,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-jenkins Version: 0.4.14 Release: 0 @@ -25,19 +26,15 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: http://launchpad.net/python-jenkins Source: https://pypi.io/packages/source/p/python-jenkins/python-jenkins-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-pbr -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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pbr} BuildArch: noarch -%endif Requires: python-multi_key_dict Requires: python-setuptools Requires: python-six >= 1.3.0 Provides: python-jenkins = %{version} Obsoletes: python-jenkins <= 0.4.12 +%python_subpackages %description This package provides Python bindings for the Jenkins Remote @@ -50,12 +47,12 @@ API. It current supports management of: %setup -q -n python-jenkins-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc COPYING README.rst %{python_sitelib}/*