From 5a2369424002d1831dd7664a6e73b2d526b6a576 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 7 Oct 2011 11:10:46 -0700 Subject: ceph.spec.in: build on suse Signed-off-by: Sage Weil --- ceph.spec.in | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'ceph.spec.in') diff --git a/ceph.spec.in b/ceph.spec.in index 986aab36200..702fbc24326 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -21,10 +21,16 @@ Group: System Environment/Base URL: http://ceph.newdream.net/ Source: http://ceph.newdream.net/download/%{name}-%{version}.tar.gz -BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel, +BuildRequires: gcc-c++, +BuildRequires: fuse-devel, libtool, boost-devel, +%if %{defined suse_version} +BuildRequires: mozilla-nss-devel, libatomic-ops-devel, keyutils-devel, libtool, +%else +BuildRequires: nss-devel, libatomic_ops-devel, keyutils-libs-devel, +BuildRequires: libtool-ltdl-devel, +%endif BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm, -BuildRequires: nss-devel, libatomic_ops-devel -BuildRequires: pkgconfig, python, keyutils-libs-devel +BuildRequires: pkgconfig, python %if %{with tcmalloc} # use isa so this will not be satisfied by # google-perftools-devel.i686 on a x86_64 box @@ -32,8 +38,14 @@ BuildRequires: pkgconfig, python, keyutils-libs-devel BuildRequires: google-perftools-devel%{?_isa} %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires(post): chkconfig, binutils, libedit +%if %{defined suse_version} +Requires(post): aaa_base +Requires(preun): aaa_base +%else +Requires(post): chkconfig Requires(preun): chkconfig +%endif +Requires(post): binutils, libedit Requires(preun): initscripts %description -- cgit v1.2.1