2013-01-10 20:48:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package ninja
|
|
|
|
#
|
2018-12-06 11:00:19 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
2017-09-12 10:42:01 +02:00
|
|
|
Version: 1.8.2
|
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
|
2016-04-28 09:22:29 +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
|
2018-12-06 11:00:19 +01:00
|
|
|
Patch2: ninja-64bit-timestamps.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
|
2013-03-12 16:55:41 +01:00
|
|
|
%setup -q
|
2016-11-13 12:22:15 +01:00
|
|
|
%patch1
|
2018-12-06 11:00:19 +01:00
|
|
|
%patch2 -p1
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%build
|
2016-01-30 22:43:54 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
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
|
2018-12-06 11:00:19 +01:00
|
|
|
install -D -p -m 0644 misc/bash-completion %{buildroot}%{_datadir}/bash_completion.d/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
|
|
|
|
./ninja ninja_test
|
|
|
|
./ninja_test
|
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
|
2018-12-06 11:00:19 +01:00
|
|
|
%{_datadir}/bash_completion.d
|
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
|