With ceph#66229 merged, crimson is now enabled by default for all the builds. So if we're trying to build with crimson disabled, the bcond must be reversed to install the relavant dependencies.
Signed-off-by: T K Chandra Hasan <t.k.chandra.hasan@ibm.com>
local OUTFILE=$1
sed -e 's/@//g' < ceph.spec.in > $OUTFILE
# http://rpm.org/user_doc/conditional_builds.html
- if $with_crimson; then
- sed -i -e 's/%bcond_with crimson/%bcond_without crimson/g' $OUTFILE
+ if ! $with_crimson; then
+ sed -i -e 's/%bcond_without crimson/%bcond_with crimson/g' $OUTFILE
fi
if $for_make_check; then
sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE