2013-01-10 20:48:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package ninja
|
|
|
|
#
|
2020-02-04 11:14:02 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-01-10 20:48:37 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-06 11:00:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-01-10 20:48:37 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ninja
|
2020-08-24 22:26:04 +02:00
|
|
|
Version: 1.10.1
|
2016-01-30 22:43:54 +01:00
|
|
|
Release: 0
|
2013-01-10 20:48:37 +01:00
|
|
|
Summary: A small build system closest in spirit to Make
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools/Building
|
2019-09-11 14:50:06 +02:00
|
|
|
URL: https://ninja-build.org/
|
2016-11-13 12:22:15 +01:00
|
|
|
Source0: https://github.com/ninja-build/ninja/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2016-12-06 16:06:14 +01:00
|
|
|
Source1: macros.ninja
|
2014-11-26 09:03:10 +01:00
|
|
|
Patch1: ninja-disable-maxprocs-test.patch
|
2016-01-30 22:43:54 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: re2c
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%description
|
2017-09-12 10:42:01 +02:00
|
|
|
Ninja is yet another build system. It takes as input the interdependencies
|
|
|
|
of files (typically source code and output executables) and orchestrates
|
|
|
|
building them, quickly.
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%prep
|
2019-09-11 14:50:06 +02:00
|
|
|
%autosetup -p0
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%build
|
2016-01-30 22:43:54 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
2020-11-04 18:02:12 +01:00
|
|
|
%if "%__isa_bits" == "32"
|
|
|
|
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
%endif
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2016-01-30 22:43:54 +01:00
|
|
|
python3 ./configure.py --bootstrap --verbose
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%install
|
2016-11-13 12:22:15 +01:00
|
|
|
install -D -p -m 0755 ninja %{buildroot}%{_bindir}/ninja
|
|
|
|
install -D -p -m 0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
|
|
|
|
install -D -p -m 0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/site/syntax/ninja.vim
|
2019-01-15 09:26:40 +01:00
|
|
|
install -D -p -m 0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
|
2017-09-12 10:42:01 +02:00
|
|
|
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja
|
2014-11-26 09:03:10 +01:00
|
|
|
|
|
|
|
%check
|
2019-09-11 14:50:06 +02:00
|
|
|
./ninja all
|
2014-11-26 09:03:10 +01:00
|
|
|
./ninja_test
|
2019-09-11 14:50:06 +02:00
|
|
|
python3 ./misc/ninja_syntax_test.py
|
|
|
|
python3 ./misc/output_test.py
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%files
|
2018-12-06 11:00:19 +01:00
|
|
|
%license COPYING
|
2013-01-10 20:48:37 +01:00
|
|
|
%{_bindir}/ninja
|
2019-01-15 09:26:40 +01:00
|
|
|
%{_datadir}/bash-completion
|
2014-11-26 09:03:10 +01:00
|
|
|
%{_datadir}/vim
|
2018-12-06 11:00:19 +01:00
|
|
|
%{_datadir}/zsh
|
2016-12-06 16:06:14 +01:00
|
|
|
%{_rpmconfigdir}/macros.d/macros.ninja
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%changelog
|