From Fedora Project Wiki
Guidelines for Ninja
This document provides best-practices for usage of ninja in packaging RPMs for Fedora.
BuildRequires
You MUST add following BuildRequires:
BuildRequires: ninja-build
RPM Macros
%__ninja
-- ninja executable (NOTE: it is /usr/bin/ninja-build)%__ninja_common_opts
-- common options for all commands below (for example, verbose mode and %{?_smp_mflags})%ninja_build
-- run default target (ninja without arugments)%ninja_install
-- set DESTDIR shell variable run install target within ninja%ninja_test
-- run test target