Hello community, here is the log from the commit of package cmpi-provider-register for openSUSE:Factory checked in at 2018-03-14 19:40:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cmpi-provider-register (Old) and /work/SRC/openSUSE:Factory/.cmpi-provider-register.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cmpi-provider-register" Wed Mar 14 19:40:43 2018 rev:20 rq:586835 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/cmpi-provider-register/cmpi-provider-register.changes 2018-01-17 21:59:09.324839790 +0100 +++ /work/SRC/openSUSE:Factory/.cmpi-provider-register.new/cmpi-provider-register.changes 2018-03-14 19:41:04.232869876 +0100 @@ -1,0 +2,9 @@ +Wed Mar 14 07:09:09 UTC 2018 - adam.ma...@suse.de + +- Adapt cmpi-provider-register to explicitly require only python3 + for SLE15/Leap15 onward (bnc#1085089) +- minor cleanup of the spec file and description update +- drop all build requires - we are not building anything, just + copying a single file into place. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cmpi-provider-register.spec ++++++ --- /var/tmp/diff_new_pack.4Zb67n/_old 2018-03-14 19:41:05.292832224 +0100 +++ /var/tmp/diff_new_pack.4Zb67n/_new 2018-03-14 19:41:05.304831797 +0100 @@ -23,24 +23,30 @@ License: BSD-3-Clause Group: System/Management Requires: cim-schema +%if 0%{?suse_version} >= 1500 +Requires: python3-pywbem +%else Requires: python-pywbem -BuildRequires: cim-schema -BuildRequires: python-pywbem +%endif BuildArch: noarch Source0: cmpi-provider-register.py BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -A utility allowing CMPI provider packages to register with whatever -CIMOM(s) happens to be present on the system. +A utility allowing CMPI provider packages to register with various +CIMOM(s) present on the system. %prep %build +# For older SUSE distros and others, use whatever default python. +%if 0%{?suse_version} < 1500 +sed -i -e 's,^#!/usr/bin/python3,#!/usr/bin/python,' %{S:0} +%endif %install -%{__mkdir} -p $RPM_BUILD_ROOT/usr/sbin -install -m 755 %{S:0} $RPM_BUILD_ROOT/usr/sbin/cmpi-provider-register +mkdir -p %{buildroot}/usr/sbin +install -m 755 %{S:0} %{buildroot}/usr/sbin/cmpi-provider-register %files %defattr(-,root,root) ++++++ cmpi-provider-register.py ++++++ --- /var/tmp/diff_new_pack.4Zb67n/_old 2018-03-14 19:41:05.356829950 +0100 +++ /var/tmp/diff_new_pack.4Zb67n/_new 2018-03-14 19:41:05.364829666 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #******************************************************************************* # Copyright (C) 2008 Novell, Inc. All rights reserved. #