summaryrefslogtreecommitdiffstats
path: root/openlmi-providers.spec
diff options
context:
space:
mode:
authorKlaus Kaempf <kkaempf@suse.de>2014-01-06 10:44:59 +0100
committerRadek Novacek <rnovacek@redhat.com>2014-01-06 10:44:59 +0100
commit29a12c19741887f80ca92d9c568e317395b1088e (patch)
tree7d291f4c678a2843b6b1550c29183a40883e1a5b /openlmi-providers.spec
parent52a788a0298953ec9c387c6854a01d0d148a1514 (diff)
downloadopenlmi-providers-29a12c19741887f80ca92d9c568e317395b1088e.tar.gz
openlmi-providers-29a12c19741887f80ca92d9c568e317395b1088e.tar.xz
openlmi-providers-29a12c19741887f80ca92d9c568e317395b1088e.zip
spec: SUSE compatible Requires
Diffstat (limited to 'openlmi-providers.spec')
-rw-r--r--openlmi-providers.spec35
1 files changed, 35 insertions, 0 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index d06311c..23b9d1f 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -150,6 +150,11 @@ This package contains the documents for OpenLMI fan provider.
Summary: Power management CIM provider
Requires: %{name}%{?_isa} = %{version}-%{release}
Provides: cura-powermanagement = %{version}-%{release}
+%if 0%{?suse_version}
+Requires: upower
+# For Linux_ComputerSystem
+Requires: sblim-cmpi-base
+%endif
Obsoletes: cura-powermanagement < 0.0.10-1
%description -n openlmi-powermanagement
@@ -185,6 +190,10 @@ Summary: CIM provider for managing accounts on system
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: openlmi-indicationmanager-libs%{?_isa} = %{version}-%{release}
Requires: libuser >= %{required_libuser_ver}
+%if 0%{?suse_version}
+# For Linux_ComputerSystem
+Requires: sblim-cmpi-base
+%endif
Provides: cura-account = %{version}-%{release}
Obsoletes: cura-account < 0.0.10-1
@@ -206,6 +215,10 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%ifarch %{ix86} x86_64 ia64
Requires: dmidecode
%endif
+%if 0%{?suse_version}
+# For Linux_ComputerSystem
+Requires: sblim-cmpi-base
+%endif
Requires: util-linux
Requires: smartmontools
@@ -227,6 +240,13 @@ Requires: cmpi-bindings-pywbem
BuildArch: noarch
Obsoletes: openlmi-python < 0.1.0-1
Provides: openlmi-python = %{version}-%{release}
+%if 0%{?suse_version}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?py_requires: %define py_requires Requires: python}
+%{py_requires}
+%endif
%description -n openlmi-python-base
The openlmi-python-base package contains python namespace package
@@ -257,6 +277,10 @@ classes for provider test cases.
Summary: CIM providers for software management
Requires: %{name} = %{version}-%{release}
Requires: openlmi-python-providers = %{version}-%{release}
+%if 0%{?suse_version}
+# For Linux_ComputerSystem
+Requires: sblim-cmpi-base
+%endif
Provides: cura-software = %{version}-%{release}
Obsoletes: cura-software < 0.0.10-1
BuildArch: noarch
@@ -281,6 +305,10 @@ This package contains the documents for OpenLMI software provider.
%package -n openlmi-logicalfile
Summary: CIM provider for reading files and directories
Requires: %{name}%{?_isa} = %{version}-%{release}
+%if 0%{?suse_version}
+# For Linux_ComputerSystem
+Requires: sblim-cmpi-base
+%endif
%description -n openlmi-logicalfile
%{summary}.
@@ -297,6 +325,10 @@ This package contains the documents for OpenLMI logicalfile provider.
Summary: CIM provider for Realmd
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: realmd
+%if 0%{?suse_version}
+# For Linux_ComputerSystem
+Requires: sblim-cmpi-base
+%endif
%description -n openlmi-realmd
The openlmi-realmd package contains CMPI providers for Realmd, which is an on
@@ -333,6 +365,9 @@ BuildArch: noarch
Requires: python-setuptools
Requires: cmpi-bindings-pywbem
Requires: python-pcp
+%if 0%{?suse_version}
+Requires: cron
+%endif
%description -n openlmi-pcp
openlmi-pcp exposes metrics from a local PMCD (Performance Co-Pilot server)