From Fedora Project Wiki
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
This document provides best-practices for usage of [https://ninja-build.org/ ninja] in packaging RPMs for Fedora. | This document provides best-practices for usage of [https://ninja-build.org/ ninja] in packaging RPMs for Fedora. | ||
== BuildRequires == | |||
You '''MUST''' add following BuildRequires: | |||
<pre> | |||
BuildRequires: ninja-build | |||
</pre> | |||
== RPM Macros == | == RPM Macros == |
Latest revision as of 08:46, 12 October 2016
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