On Tue, 17 Jan 2023 at 22:28, Till Hofmann <thofmann(a)fedoraproject.org> wrote:
Hi all,
Someone (rightfully) suggested that we should build glfw twice, once
with wayland support and once without:
https://bugzilla.redhat.com/show_bug.cgi?id=2152319
Is there any best practice how to build the same package in two
different flavors, in this case cmake-based? I vaguely remember seeing a
spec file that did that, but I don't remember where.
Thanks for any pointers!
In flexiblas.spec, for 64-bit BLAS, we do
%build
%cmake -B build \
<options>
%make_build -C build
%if 0%{?__isa_bits} == 64
%cmake -B build64 \
<options>
%make_build -C build64
%endif
%install
%make_install -C build
%if 0%{?__isa_bits} == 64
%make_install -C build64
%endif
etc.
--
Iñaki Úcar