summaryrefslogtreecommitdiffstats
path: root/openlmi-providers.spec
diff options
context:
space:
mode:
authorKlaus Kaempf <kkaempf@suse.de>2014-01-06 10:43:37 +0100
committerRadek Novacek <rnovacek@redhat.com>2014-01-06 10:43:37 +0100
commit52a788a0298953ec9c387c6854a01d0d148a1514 (patch)
tree993c3ca3e52883d57af563474217c78ddcfe8783 /openlmi-providers.spec
parent0033bce647c8835e43120dd4ce14a073026b5b67 (diff)
downloadopenlmi-providers-52a788a0298953ec9c387c6854a01d0d148a1514.tar.gz
openlmi-providers-52a788a0298953ec9c387c6854a01d0d148a1514.tar.xz
openlmi-providers-52a788a0298953ec9c387c6854a01d0d148a1514.zip
spec: SUSE compatible BuildRequires
Diffstat (limited to 'openlmi-providers.spec')
-rw-r--r--openlmi-providers.spec29
1 files changed, 29 insertions, 0 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index 146c1a5..d06311c 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -47,25 +47,51 @@ BuildRequires: cmake
BuildRequires: konkretcmpi-devel >= %{required_konkret_ver}
BuildRequires: sblim-cmpi-devel
BuildRequires: cim-schema
+%if 0%{?suse_version}
+BuildRequires: gcc-c++
+BuildRequires: libselinux-devel
+BuildRequires: libudev-devel
+BuildRequires: pkg-config
+%endif
# For openlmi-fan
+%if 0%{?suse_version}
+BuildRequires: libsensors4-devel
+%else
BuildRequires: lm_sensors-devel
+%endif
# For openlmi-account
BuildRequires: libuser-devel >= %{required_libuser_ver}
+%if 0%{?suse_version}
+BuildRequires: python
+%else
BuildRequires: python2-devel
+%endif
# for openlmi-*-doc packages
BuildRequires: konkretcmpi-python >= %{required_konkret_ver}
+%if 0%{?suse_version}
+BuildRequires: python-Sphinx
+%else
BuildRequires: python-sphinx
+%endif
# For openlmi-hardware
BuildRequires: pciutils-devel
# For openlmi-logicalfile
BuildRequires: libudev-devel
BuildRequires: libselinux-devel
# For openlmi-mof-register script
+%if 0%{?suse_version}
+BuildRequires: python
+%else
Requires: python2
+%endif
# for openlmi-journald
BuildRequires: systemd-devel
# for openlmi-realmd:
+%if 0%{?suse_version} >= 1110
+BuildRequires: dbus-1-devel
+%else
BuildRequires: dbus-devel
+%endif
# sblim-sfcb or tog-pegasus
# (required to be present during install/uninstall for registration)
Requires: cim-server
@@ -83,7 +109,10 @@ Requires: openlmi-python-base = %{version}-%{release}
# XXX
# Just because we have wired python's scripts
# Remove in future
+%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1110
+# SLE_11_SP3: unresolvable: conflict for provider of python-distribute needed by python-Pygments, (provider python-distribute obsoletes installed python-setuptools)
BuildRequires: python-setuptools
+%endif
%description
%{name} is set of (usually) small CMPI providers (agents) for basic