1
0

Accepting request 586835 from systemsmanagement:wbem

OBS-URL: https://build.opensuse.org/request/show/586835
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmpi-provider-register?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2018-03-14 18:40:43 +00:00 committed by Git OBS Bridge
commit 381ead61df
3 changed files with 22 additions and 7 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Mar 14 07:09:09 UTC 2018 - adam.majer@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.
-------------------------------------------------------------------
Mon Jan 15 16:29:37 UTC 2018 - adam.majer@suse.de

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
#*******************************************************************************
# Copyright (C) 2008 Novell, Inc. All rights reserved.
#

View File

@ -23,24 +23,30 @@ Summary: CIMOM neutral provider registration utility
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)