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 <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-03-01 11:51:26 +01:00
parent 96e9da1f54
commit db4fee2933

View File

@ -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