|
 |
b36081 |
# Set to bcond_without or use --with bootstrap,
|
|
 |
b36081 |
# when bootstrapping a new architecture.
|
|
 |
b36081 |
%bcond_with bootstrap
|
|
 |
b36081 |
|
|
 |
0782da |
Name: ninja-build
|
|
 |
b36081 |
Version: 1.10.2
|
|
Michel Alexandre Salim |
7ef56e |
Release: 3.2%{?dist}
|
|
 |
b36081 |
Summary: Small build system with a focus on speed
|
|
 |
0782da |
License: ASL 2.0
|
|
 |
b36081 |
URL: https://ninja-build.org/
|
|
 |
b36081 |
Source0: https://github.com/ninja-build/ninja/archive/v%{version}/ninja-%{version}.tar.gz
|
|
 |
0782da |
Source1: ninja.vim
|
|
 |
0782da |
Source2: macros.ninja
|
|
 |
0782da |
BuildRequires: gcc-c++
|
|
 |
0782da |
BuildRequires: python3-devel
|
|
 |
b36081 |
%if %{without bootstrap}
|
|
 |
0782da |
BuildRequires: asciidoc
|
|
 |
0782da |
BuildRequires: gtest-devel
|
|
 |
b36081 |
%endif
|
|
 |
0782da |
BuildRequires: re2c >= 0.11.3
|
|
 |
b36081 |
%if %{without bootstrap}
|
|
 |
0782da |
Requires: emacs-filesystem
|
|
 |
0782da |
Requires: vim-filesystem
|
|
 |
b36081 |
%endif
|
|
 |
0782da |
|
|
 |
0782da |
%description
|
|
 |
0782da |
Ninja is a small build system with a focus on speed. It differs from other
|
|
 |
0782da |
build systems in two major respects: it is designed to have its input files
|
|
 |
0782da |
generated by a higher-level build system, and it is designed to run builds as
|
|
 |
0782da |
fast as possible.
|
|
 |
0782da |
|
|
 |
0782da |
%prep
|
|
 |
0782da |
%autosetup -n ninja-%{version} -p1
|
|
 |
0782da |
|
|
 |
0782da |
%build
|
|
 |
b36081 |
%set_build_flags
|
|
 |
b36081 |
%python3 configure.py --bootstrap --verbose
|
|
 |
0782da |
./ninja -v all
|
|
 |
b36081 |
%if %{without bootstrap}
|
|
 |
0782da |
./ninja -v manual
|
|
 |
b36081 |
%endif
|
|
 |
0782da |
|
|
 |
0782da |
%install
|
|
 |
0782da |
install -Dpm0755 ninja -t %{buildroot}%{_bindir}/
|
|
 |
b36081 |
%if %{without bootstrap}
|
|
 |
0782da |
install -Dpm0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
|
|
 |
0782da |
install -Dpm0644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
|
|
 |
0782da |
install -Dpm0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
|
|
 |
0782da |
install -Dpm0644 %{S:1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
|
|
 |
0782da |
install -Dpm0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
|
|
 |
b36081 |
install -Dpm0644 misc/ninja_syntax.py %{buildroot}%{python3_sitelib}/ninja_syntax.py
|
|
 |
b36081 |
%endif
|
|
 |
b36081 |
install -Dpm0644 %{S:2} %{buildroot}%{_rpmmacrodir}/macros.ninja
|
|
 |
b36081 |
|
|
 |
b36081 |
# Macro should not change when we are redefining bindir
|
|
 |
b36081 |
sed -i -e "/^%%__ninja /s| .*$| %{_bindir}/ninja|" %{buildroot}%{_rpmmacrodir}/macros.ninja
|
|
 |
0782da |
|
|
 |
0782da |
ln -s ninja %{buildroot}%{_bindir}/ninja-build
|
|
 |
0782da |
|
|
 |
b36081 |
%if %{without bootstrap}
|
|
 |
0782da |
%check
|
|
 |
0782da |
./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
|
|
 |
b36081 |
%endif
|
|
 |
0782da |
|
|
 |
0782da |
%files
|
|
 |
0782da |
%license COPYING
|
|
 |
b36081 |
%doc README.md
|
|
 |
b36081 |
%if %{without bootstrap}
|
|
 |
b36081 |
%doc doc/manual.html
|
|
 |
b36081 |
%endif
|
|
 |
0782da |
%{_bindir}/ninja
|
|
 |
0782da |
%{_bindir}/ninja-build
|
|
 |
b36081 |
%if %{without bootstrap}
|
|
 |
0782da |
%{_datadir}/bash-completion/completions/ninja
|
|
 |
0782da |
%{_datadir}/emacs/site-lisp/ninja-mode.el
|
|
 |
0782da |
%{_datadir}/vim/vimfiles/syntax/ninja.vim
|
|
 |
0782da |
%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
|
|
 |
0782da |
# zsh does not have a -filesystem package
|
|
 |
b36081 |
%dir %{_datadir}/zsh
|
|
 |
b36081 |
%dir %{_datadir}/zsh/site-functions
|
|
 |
b36081 |
%{_datadir}/zsh/site-functions/_ninja
|
|
 |
b36081 |
%pycached %{python3_sitelib}/ninja_syntax.py
|
|
 |
b36081 |
%endif
|
|
 |
b36081 |
%{_rpmmacrodir}/macros.ninja
|
|
 |
0782da |
|
|
 |
0782da |
%changelog
|
|
Michel Alexandre Salim |
7ef56e |
* Wed Mar 01 2023 Michel Alexandre Salim <salimma@centosproject.org> - 1.10.2-3.2
|
|
Michel Alexandre Salim |
7ef56e |
- Rebuild to fix vendor tag
|
|
Michel Alexandre Salim |
7ef56e |
|
|
Justin Vreeland |
d73891 |
* Tue Oct 19 2021 Justin Vreeland <jvreeland@twitter.com> - 1.10.2-3.1
|
|
Justin Vreeland |
d73891 |
- Bump/Add extraver for aarch64 rebuild
|
|
Justin Vreeland |
d73891 |
|
|
 |
b36081 |
* Fri Mar 05 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.10.2-3
|
|
 |
b36081 |
- import ninja-build-1.10.2-3.fc35
|
|
 |
0782da |
|