]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: consolidate centos/rhel macros
authorNathan Cutler <ncutler@suse.cz>
Fri, 15 May 2015 19:39:39 +0000 (21:39 +0200)
committerNathan Cutler <ncutler@suse.cz>
Fri, 15 May 2015 19:39:39 +0000 (21:39 +0200)
0%{?rhel} || 0%{?centos} can be simplified to just 0%{?rhel}, since
CentOS defines that macro for compatibility with RHEL.

Signed-off-by: Nathan Cutler <ncutler@suse.cz>
ceph.spec.in

index 7ccd122bbe1772f7f385f3b56297630646584599..a4fc349f2f05148aeb41b0d7c0e848ebfaee18f4 100644 (file)
@@ -26,7 +26,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} || 0%{?rhel}
+%if 0%{?fedora} || 0%{?rhel}
 Patch0:                init-ceph.in-fedora.patch
 %endif
 Requires:      librbd1 = %{epoch}:%{version}-%{release}
@@ -86,7 +86,7 @@ BuildRequires:        xfsprogs
 BuildRequires: xfsprogs-devel
 BuildRequires: xmlstarlet
 BuildRequires: yasm
-%if 0%{?rhel} || 0%{?centos} || 0%{?fedora} || 0%{?suse_version}
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
 BuildRequires: snappy-devel
 %endif
 %if 0%{?suse_version}
@@ -201,7 +201,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} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?fedora}
 Obsoletes:     ceph-libs < %{epoch}:%{version}-%{release}
 %endif
 %description -n librados2
@@ -259,7 +259,7 @@ Summary:    RADOS block device client library
 Group:         System Environment/Libraries
 License:       LGPL-2.0
 Requires:      librados2 = %{epoch}:%{version}-%{release}
-%if 0%{?rhel} || 0%{?centos} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?fedora}
 Obsoletes:     ceph-libs < %{epoch}:%{version}-%{release}
 %endif
 %description -n librbd1
@@ -294,7 +294,7 @@ block device.
 Summary:       Ceph distributed file system client library
 Group:         System Environment/Libraries
 License:       LGPL-2.0
-%if 0%{?rhel} || 0%{?centos} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?fedora}
 Obsoletes:     ceph-libs < %{epoch}:%{version}-%{release}
 Obsoletes:     ceph-libcephfs
 %endif
@@ -444,7 +444,7 @@ python-cephfs instead.
 #################################################################################
 %prep
 %setup -q
-%if 0%{?fedora} || 0%{?rhel} || 0%{?centos}
+%if 0%{?fedora} || 0%{?rhel}
 %patch0 -p1 -b .init
 %endif