114 Star 1 Fork 13

src-openEuler/ninja-build

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ninja-build.spec 2.35 KB
一键复制 编辑 原始数据 按行查看 历史
hua 提交于 2022-12-06 05:39 . upgrade version to 1.11.1
Name: ninja-build
Version: 1.11.1
Release: 1
Summary: A small build system with a focus on speed
License: ASL 2.0
URL: https://ninja-build.org/
Source0: https://github.com/ninja-build/ninja/archive/v%{version}/ninja-%{version}.tar.gz
Source1: macros.ninja
BuildRequires: gcc-c++ python3-devel asciidoc gtest-devel
Requires: emacs-filesystem vim-filesystem
%description
Ninja is a small build system with a focus on speed. It differs from other build systems
in two major respects: it is designed to have its input files generated by a higher-level
build system, and it is designed to run builds as fast as possible.
%prep
%autosetup -n ninja-%{version} -p1
%build
CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \
%{__python3} configure.py --bootstrap --verbose
./ninja -v all
./ninja -v manual
%install
install -Dpm755 ninja -t %{buildroot}%{_bindir}/
install -Dpm644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
install -Dpm644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
install -Dpm644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
install -Dpm644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
install -Dpm644 %{SOURCE1} %{buildroot}%{rpmmacrodir}/macros.ninja
sed -i -e "/^%%__ninja /s| .*$| %{_bindir}/ninja|" %{buildroot}%{rpmmacrodir}/macros.ninja
ln -sf ninja %{buildroot}%{_bindir}/ninja-build
%check
./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
%files
%license COPYING
%doc README.md doc/manual.html
%{_bindir}/{ninja,ninja-build}
%{_datadir}/bash-completion/completions/ninja
%{_datadir}/emacs/site-lisp/ninja-mode.el
%{_datadir}/vim/vimfiles/syntax/ninja.vim
%{_datadir}/zsh/
%{rpmmacrodir}/macros.ninja
%changelog
* Wed Nov 23 2022 hua <dchang@zhixundn.com> - 1.11.1-1
- upgrade version to 1.11.1
* Wed Jun 15 2022 duyiwei <duyiwei@kylinos.cn> - 1.10.2-1
- upgrade version to 1.10.2
* Tue Oct 27 2020 Ge Wang <wangge20@huawei.com> - 1.8.2-9
- remove useless buildrequires of python2-devel
* Fri Jan 17 2020 zhouyihang <zhouyihang1@huawei.com> - 1.8.2-8
- remove useless file and update invalid source address
* Sun Jan 12 2020 chengquan <chengquan3@huawei.com> - 1.8.2-7
- remove useless buildrequires of software
* Mon Nov 04 2019 huzhiyu <huzhiyu1@huawei.com> - 1.8.2-6
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/ninja-build.git
git@gitee.com:src-openeuler/ninja-build.git
src-openeuler
ninja-build
ninja-build
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385