Description
While regular macros can be set and evaluated, I didn't manage to the same with bcon. reference
Example:
%bcond_without perl-libs
%bcond check 1
%bcond_with tests
%if %{with perl-libs}
BuildRequires: perl-libs(x86-64) = 4:5.40.1-515.fc41
%endif
If there is a way to set these and evaluate sections based on their value, I'm happy to know! This also ties in with #231
One workaround is the use of rpmspec, for example:
rpmspec --without perl-libs -P test.spec
results in a specfile without the BuildRequires: perl-libs...
Benefit
This would allow a more broad usage in handling specfiles.
Importance
No response
Workaround
Participation
Description
While regular macros can be set and evaluated, I didn't manage to the same with
bcon. referenceExample:
If there is a way to set these and evaluate sections based on their value, I'm happy to know! This also ties in with #231
One workaround is the use of
rpmspec, for example:results in a specfile without the
BuildRequires: perl-libs...Benefit
This would allow a more broad usage in handling specfiles.
Importance
No response
Workaround
Participation