]> git.apps.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)
committerSage Weil <sage@redhat.com>
Fri, 3 Oct 2014 18:21:56 +0000 (11:21 -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>
(cherry picked from commit 7474f720c2418cf3d52b755f2b60c524e413570a)

ceph.spec.in

index 978e1599ef414732dd638641bc01adf990eeb55d..38160c25bd838bbc3c7e7f48f961a8c8b88fd556 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:        libblkid-devel >= 2.17
 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
 
@@ -177,7 +177,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
@@ -191,7 +191,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
@@ -204,7 +204,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
@@ -294,7 +294,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