BuildRequires: selinux-policy-devel
BuildRequires: /usr/share/selinux/devel/policyhelp
%endif
+%if 0%{with make_check}
+%if 0%{?fedora} || 0%{?rhel}
+BuildRequires: python-cherrypy
+BuildRequires: python-werkzeug
+%endif
+%if 0%{?suse_version}
+BuildRequires: python-CherryPy
+BuildRequires: python-Werkzeug
+%endif
+BuildRequires: python-pecan
+%endif
BuildRequires: bc
BuildRequires: gperf
BuildRequires: cmake
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-nose
-BuildRequires: python-pecan
BuildRequires: python-requests
BuildRequires: python-virtualenv
-BuildRequires: python-werkzeug
BuildRequires: socat
BuildRequires: snappy-devel
BuildRequires: udev
BuildRequires: libopenssl-devel
BuildRequires: lsb-release
BuildRequires: openldap2-devel
-BuildRequires: python-CherryPy
BuildRequires: python-Cython
BuildRequires: python-PrettyTable
BuildRequires: python-Sphinx
BuildRequires: openssl-devel
BuildRequires: redhat-lsb-core
BuildRequires: Cython
-BuildRequires: python-cherrypy
BuildRequires: python-prettytable
BuildRequires: python-sphinx
%endif
fi
export LC_ALL=C # the following is vulnerable to i18n
+function munge_ceph_spec_in {
+ local OUTFILE=$1
+ sed -e 's/@//g' -e 's/%bcond_with make_check/%bcond_without make_check/g' < ceph.spec.in > $OUTFILE
+}
+
if [ x`uname`x = xFreeBSDx ]; then
$SUDO pkg install -yq \
devel/git \
fi
;;
esac
- sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
+ munge_ceph_spec_in $DIR/ceph.spec
$SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
! grep -q -i error: $DIR/yum-builddep.out || exit 1
;;
opensuse|suse|sles)
echo "Using zypper to install dependencies"
$SUDO zypper --gpg-auto-import-keys --non-interactive install lsb-release systemd-rpm-macros
- sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
+ munge_ceph_spec_in $DIR/ceph.spec
$SUDO zypper --non-interactive install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1
;;
alpine)