From db4fee293362c6967a4db995c4a4c0fb113b5d11 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 11:51:26 +0100 Subject: [PATCH] ceph.spec.in: fix 'Requires:' to get sgdisk into the system Fix package Requirements to get sgdisk. On RHEL/CentOS/Fedora the package is gdisk. On SUSE/openSUSE < 12.2 it's scsirastools on openSUSE >= 12.2 it's in gptfdisk. Signed-off-by: Danny Al-Gaaf --- ceph.spec.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 4eb1e04794f..7b245436647 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -26,7 +26,6 @@ Requires: librados2 = %{version}-%{release} Requires: libcephfs1 = %{version}-%{release} Requires: python Requires: cryptsetup -Requires: gdisk Requires: parted Requires: util-linux Requires(post): binutils @@ -49,12 +48,18 @@ BuildRequires: leveldb-devel > 1.2 # specific ################################################################################# %if 0%{defined suse_version} -BuildRequires: %insserv_prereq +%if 0%{?suse_version} > 1210 +Requires: gptfdisk +%else +Requires: scsirastools +%endif Recommends: logrotate +BuildRequires: %insserv_prereq BuildRequires: mozilla-nss-devel BuildRequires: keyutils-devel BuildRequires: libatomic-ops-devel %else +Requires: gdisk BuildRequires: nss-devel BuildRequires: keyutils-libs-devel BuildRequires: libatomic_ops-devel