forked from pool/cmpi-provider-register
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:
commit
381ead61df
@ -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
|
Mon Jan 15 16:29:37 UTC 2018 - adam.majer@suse.de
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
#*******************************************************************************
|
#*******************************************************************************
|
||||||
# Copyright (C) 2008 Novell, Inc. All rights reserved.
|
# Copyright (C) 2008 Novell, Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
|
@ -23,24 +23,30 @@ Summary: CIMOM neutral provider registration utility
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Requires: cim-schema
|
Requires: cim-schema
|
||||||
|
%if 0%{?suse_version} >= 1500
|
||||||
|
Requires: python3-pywbem
|
||||||
|
%else
|
||||||
Requires: python-pywbem
|
Requires: python-pywbem
|
||||||
BuildRequires: cim-schema
|
%endif
|
||||||
BuildRequires: python-pywbem
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Source0: cmpi-provider-register.py
|
Source0: cmpi-provider-register.py
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A utility allowing CMPI provider packages to register with whatever
|
A utility allowing CMPI provider packages to register with various
|
||||||
CIMOM(s) happens to be present on the system.
|
CIMOM(s) present on the system.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%build
|
%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
|
%install
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT/usr/sbin
|
mkdir -p %{buildroot}/usr/sbin
|
||||||
install -m 755 %{S:0} $RPM_BUILD_ROOT/usr/sbin/cmpi-provider-register
|
install -m 755 %{S:0} %{buildroot}/usr/sbin/cmpi-provider-register
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user