[8558] | 1 | Name: ninja |
---|
[11190] | 2 | Version: 1.7.2 |
---|
[8558] | 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: A small build system with a focus on speed |
---|
[9964] | 5 | Summary(ja): スピードを重視した小さなビルドシステム |
---|
[11190] | 6 | Group: Development/Tools |
---|
[8558] | 7 | License: ASL 2.0 |
---|
| 8 | URL: http://martine.github.com/ninja/ |
---|
[11189] | 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
[9964] | 12 | Source0: https://github.com/martine/ninja/archive/v%{version}.tar.gz#/ninja-%{version}.tar.gz |
---|
[11190] | 13 | Source1: macros.ninja |
---|
| 14 | Source2: ninja.vim |
---|
[8558] | 15 | BuildRequires: asciidoc |
---|
| 16 | BuildRequires: gtest-devel |
---|
[9964] | 17 | BuildRequires: python-devel |
---|
| 18 | BuildRequires: re2c >= 0.11.3 |
---|
[8558] | 19 | |
---|
| 20 | %description |
---|
| 21 | Ninja is a small build system with a focus on speed. It differs from other |
---|
| 22 | build systems in two major respects: it is designed to have its input files |
---|
| 23 | generated by a higher-level build system, and it is designed to run builds as |
---|
| 24 | fast as possible. |
---|
| 25 | |
---|
[11190] | 26 | %package vim |
---|
| 27 | Summary: macros and syntax files of ninja for vim |
---|
| 28 | Summary(ja): VIM用のninjaマクロ・文法ファイル |
---|
| 29 | Group: Development/Tools |
---|
| 30 | Requires: vim-common |
---|
| 31 | |
---|
| 32 | %description vim |
---|
| 33 | This package contains macros and syntax files of ninja for vim. |
---|
| 34 | |
---|
[8558] | 35 | %prep |
---|
[9964] | 36 | %setup -qn ninja-%{version} |
---|
[8558] | 37 | |
---|
| 38 | %build |
---|
[9964] | 39 | CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \ |
---|
| 40 | %{__python} configure.py --bootstrap --verbose |
---|
[8558] | 41 | ./ninja -v manual |
---|
| 42 | ./ninja -v ninja_test |
---|
| 43 | |
---|
[9964] | 44 | %install |
---|
| 45 | # TODO: Install ninja_syntax.py? |
---|
| 46 | mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/bash-completion/completions,%{_datadir}/emacs/site-lisp,%{_datadir}/vim/vimfiles/syntax,%{_datadir}/vim/vimfiles/ftdetect,%{_datadir}/zsh/site-functions} |
---|
[8558] | 47 | |
---|
[9964] | 48 | install -pm755 ninja %{buildroot}%{_bindir}/ninja |
---|
| 49 | ln -sf ninja %{buildroot}%{_bindir}/ninja-build |
---|
| 50 | install -pm644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja-bash-completion |
---|
| 51 | install -pm644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el |
---|
| 52 | install -pm644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim |
---|
[11190] | 53 | install -pm644 %{SOURCE2} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim |
---|
[9964] | 54 | install -pm644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja |
---|
| 55 | |
---|
[11190] | 56 | mkdir -p %{buildroot}%{_sysconfdir}/rpm |
---|
| 57 | install -pm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.ninja |
---|
| 58 | |
---|
[8558] | 59 | %check |
---|
| 60 | # workaround possible too low default limits |
---|
[9964] | 61 | ulimit -n 4096 && ulimit -u 4096 |
---|
[8558] | 62 | ./ninja_test |
---|
| 63 | |
---|
| 64 | %files |
---|
[9964] | 65 | %doc COPYING HACKING.md README doc/manual.html |
---|
[11190] | 66 | %{_sysconfdir}/rpm/macros.ninja |
---|
[8558] | 67 | %{_bindir}/ninja |
---|
[9964] | 68 | %{_bindir}/ninja-build |
---|
| 69 | %{_datadir}/bash-completion/completions/ninja-bash-completion |
---|
[8558] | 70 | %{_datadir}/emacs/site-lisp/ninja-mode.el |
---|
| 71 | # zsh does not have a -filesystem package |
---|
| 72 | %{_datadir}/zsh/ |
---|
| 73 | |
---|
[11190] | 74 | |
---|
| 75 | %files vim |
---|
| 76 | %{_datadir}/vim/vimfiles/syntax/ninja.vim |
---|
| 77 | %{_datadir}/vim/vimfiles/ftdetect/ninja.vim |
---|
| 78 | |
---|
| 79 | |
---|
[8558] | 80 | %changelog |
---|
[11190] | 81 | * Mon Sep 18 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.2-1 |
---|
| 82 | - updated to 1.7.2. |
---|
| 83 | - added rpmmacros. |
---|
| 84 | - added a subpackage ninja-vim. |
---|
| 85 | |
---|
[11189] | 86 | * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1 |
---|
| 87 | - updated to 1.7.1. |
---|
| 88 | |
---|
[9964] | 89 | * Mon Jan 18 2016 Daisuke SUZUKI <daisuke@vinelinux.org> 1.6.0-1 |
---|
| 90 | - update to 1.6.0 |
---|
| 91 | - remove R: vim, emacsen |
---|
| 92 | (TODO: vim or el should be splitted to subpackage) |
---|
| 93 | - add ninja-build symlink to compatible with other rpm distros. |
---|
| 94 | |
---|
[8558] | 95 | * Thu Jun 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.4.0-1 |
---|
| 96 | - initial build for Vine Linux |
---|
| 97 | |
---|
| 98 | * Wed Nov 20 2013 Ben Boeckel <mathstuf@gmail.com> - 1.4.0-1 |
---|
| 99 | - Update to 1.4.0 |
---|
| 100 | |
---|
| 101 | * Sun Nov 3 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.3.4-4 |
---|
| 102 | - Use special %%doc to install all docs (#994005). |
---|
| 103 | |
---|
| 104 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3 |
---|
| 105 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
| 106 | |
---|
| 107 | * Fri Jun 21 2013 Dan Horák <dan[at]danny.cz> - 1.3.4-2 |
---|
| 108 | - workaround possible too low limits for number of processes and open files, |
---|
| 109 | fixes build on ppc/ppc64 and s390(x) |
---|
| 110 | |
---|
| 111 | * Sun Jun 09 2013 Ben Boeckel <mathstuf@gmail.com> - 1.3.4-1 |
---|
| 112 | - Update to 1.3.4 |
---|
| 113 | - Run test suite |
---|
| 114 | |
---|
| 115 | * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2 |
---|
| 116 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
| 117 | |
---|
| 118 | * Sun Nov 04 2012 Ben Boeckel <mathstuf@gmail.com> - 1.0.0-1 |
---|
| 119 | - Update to 1.0.0 |
---|
| 120 | |
---|
| 121 | * Thu Jul 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.6.20120719git5dc55a3 |
---|
| 122 | - Update to new snapshot |
---|
| 123 | |
---|
| 124 | * Mon Jul 09 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.5.20120709gitb90d038 |
---|
| 125 | - Preserve timestamps on install |
---|
| 126 | - Install as ninja-build to avoid conflicts with the ninja IRC package |
---|
| 127 | - Update snapshot |
---|
| 128 | |
---|
| 129 | * Tue Jun 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.4.20120605git54553d3 |
---|
| 130 | - Add an ftdetect file for ninja |
---|
| 131 | - Fix zsh-stuff directory ownership |
---|
| 132 | |
---|
| 133 | * Thu Jun 07 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.3.20120605git54553d3 |
---|
| 134 | - Add a Group tag |
---|
| 135 | |
---|
| 136 | * Tue Jun 05 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.2.20120605git54553d3 |
---|
| 137 | - Update to new snapshot |
---|
| 138 | |
---|
| 139 | * Fri Mar 30 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.1.20120330gitabd33d5 |
---|
| 140 | - Initial package |
---|