Hello,

I am confuse about how to use %bcond

Lets say "A" depend on "B" for testing.
But B hard depend on A.

So therefore should the spec file of A be like this?

Code:
%bcond_with test
...
%if %{with test}
BuildRequires:  B
%endif
The reason I ask is because python repo maintainer suggest the correct way to do it is,
Code:
%bcond_without test
...
%if %{with test}
BuildRequires:  B
%endif
But this result in unsolvable (using %bcond_without ): https://build.opensuse.org/package/s...ython-tifffile

The package using %bcond_with that I did which fix the unsolvable is here: https://build.opensuse.org/package/show/home:andythe_great/python-tifffile

Thanks.