]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: tests for rhel or centos need to not include _version
authorDan Mick <dan.mick@inktank.com>
Tue, 12 Aug 2014 23:31:22 +0000 (16:31 -0700)
committerDan Mick <dan.mick@inktank.com>
Wed, 27 Aug 2014 19:56:08 +0000 (12:56 -0700)
rhel_version and centos_version are apparently the OpenSUSE Build
names; the native macros are just "rhel" and "centos" (and contain
a version number, should it be necessary).

Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph.spec.in

index bebb73f4ba079af74f82b3e6c27c39da2ea021e6..36cfcce8c9288364e9dc904f57f4d1b8052b1f82 100644 (file)
@@ -16,7 +16,7 @@ License:      GPL-2.0
 Group:         System Environment/Base
 URL:           http://ceph.com/
 Source0:       http://ceph.com/download/%{name}-%{version}.tar.bz2
-%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel_version}
+%if 0%{?fedora} || 0%{?centos} || 0%{?rhel}
 Patch0:                init-ceph.in-fedora.patch
 %endif
 Requires:      librbd1 = %{version}-%{release}
@@ -54,7 +54,7 @@ BuildRequires:        libudev-devel
 BuildRequires: leveldb-devel > 1.2
 BuildRequires: xfsprogs-devel
 BuildRequires: yasm
-%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?centos} || 0%{?fedora}
 BuildRequires: snappy-devel
 %endif
 
@@ -178,7 +178,7 @@ managers such as Pacemaker.
 Summary:       RADOS distributed object store client library
 Group:         System Environment/Libraries
 License:       LGPL-2.0
-%if 0%{?rhel} || 0%{?centos_version} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?centos} || 0%{?fedora}
 Obsoletes:     ceph-libs < %{version}-%{release}
 %endif
 %description -n librados2
@@ -202,7 +202,7 @@ Summary:    RADOS block device client library
 Group:         System Environment/Libraries
 License:       LGPL-2.0
 Requires:      librados2 = %{version}-%{release}
-%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?centos} || 0%{?fedora}
 Obsoletes:     ceph-libs < %{version}-%{release}
 %endif
 %description -n librbd1
@@ -215,7 +215,7 @@ shared library allowing applications to manage these block devices.
 Summary:       Ceph distributed file system client library
 Group:         System Environment/Libraries
 License:       LGPL-2.0
-%if 0%{?rhel} || 0%{?centos_version} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?centos} || 0%{?fedora}
 Obsoletes:     ceph-libs < %{version}-%{release}
 Obsoletes:     ceph-libcephfs
 %endif
@@ -310,7 +310,7 @@ librbd1 or libcephfs1 instead.
 #################################################################################
 %prep
 %setup -q
-%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
+%if 0%{?fedora} || 0%{?rhel} || 0%{?centos}
 %patch0 -p1 -b .init
 %endif