https://bugzilla.redhat.com/show_bug.cgi?id=2569284
--- Comment #10 from Cristian Le <[email protected]> --- > I like to write expressions such that they don't produce unnecessary white > space when they are expanded. `%{nil}` should not produce an empty space. The issue is rather than if you try to build it without tests, it will join up with the `%cmake_build` macro below (as a single command) and blow up > If I write it like this, will it be acceptable? > %cmake -DCMAKE_BUILD_TYPE=Release%{?with_tests: > -Dvalijson_BUILD_TESTS:BOOL=ON} Well, here is the pattern I generally use insted ``` %cmake \ -DCMAKE_BUILD_TYPE=Release \ -Dvalijson_BUILD_TESTS:BOOL=%{with tests} ``` The `%{with ...}`/`%{without ...}` will always evaluate to either 0 or 1, and CMake has various truthy/falsey patterns that it accepts, 0 and 1 being one of them. If you prefer `ON`/`OFF`, you can also get that with `%[ %{with tests} ? "ON" : "OFF" ]`. This is also compatible with `BuildSystem: cmake` if you want to experiment with it. > so the may respond that this option applies to building and running the tests > only. Main thing is to re-establish dialogue. We can get to a agreement somehow. -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2569284 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202569284%23c10 -- _______________________________________________ package-review mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
