Hello community,

here is the log from the commit of package python-jenkins-job-builder for 
openSUSE:Factory checked in at 2017-09-26 21:15:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jenkins-job-builder (Old)
 and      /work/SRC/openSUSE:Factory/.python-jenkins-job-builder.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jenkins-job-builder"

Tue Sep 26 21:15:58 2017 rev:8 rq:528633 version:1.6.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jenkins-job-builder/python-jenkins-job-builder.changes
    2017-05-09 18:02:36.893429243 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jenkins-job-builder.new/python-jenkins-job-builder.changes
       2017-09-26 21:17:30.544359748 +0200
@@ -1,0 +2,5 @@
+Mon Sep 25 12:42:15 UTC 2017 - [email protected]
+
+- convert to singlespec
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jenkins-job-builder.spec ++++++
--- /var/tmp/diff_new_pack.qiYsL7/_old  2017-09-26 21:17:31.084283840 +0200
+++ /var/tmp/diff_new_pack.qiYsL7/_new  2017-09-26 21:17:31.092282715 +0200
@@ -17,6 +17,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-jenkins-job-builder
 Version:        1.6.2
 Release:        0
@@ -24,25 +25,23 @@
 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
+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-pbr
-BuildRequires:  python-setuptools-git
+BuildRequires:  %{python_module pbr}
+BuildRequires:  %{python_module setuptools-git}
 Requires:       python-PyYAML
-Requires:       python-jenkins >= 0.4.8
 Requires:       python-pbr >= 1.0.0
+Requires:       python-python-jenkins >= 0.4.8
 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
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Jenkins Job Builder takes simple descriptions of Jenkins jobs in YAML format,
@@ -58,15 +57,21 @@
 %patch3 -p1
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/jenkins-jobs
 
-%files
-%defattr(-,root,root,-)
+%post
+%python_install_alternative jenkins-jobs
+
+%preun
+%python_uninstall_alternative jenkins-jobs
+
+%files %{python_files}
 %doc ChangeLog README.rst LICENSE AUTHORS
 %{python_sitelib}/*
-%{_bindir}/jenkins-jobs
+%python_alternative %{_bindir}/jenkins-jobs
 
 %changelog


Reply via email to