490d174
Name:           ninja-build
86d458c
Version:        1.7.1
5604780
Release:        2%{?dist}
490d174
Summary:        A small build system with a focus on speed
490d174
License:        ASL 2.0
490d174
URL:            http://martine.github.com/ninja/
d6ff0da
Source0:        https://github.com/martine/ninja/archive/v%{version}.tar.gz#/ninja-%{version}.tar.gz
5604780
Source1:        macros.ninja
371d0cd
# Rename mentions of the executable name to be ninja-build.
86d458c
Patch1000:      ninja-1.7.1-binary-rename.patch
5c6fd05
# Disable a test which takes too many resources for koji.
5c6fd05
Patch1001:      ninja-1.7.1-resource-intensive-test.patch
490d174
BuildRequires:  asciidoc
9cc8079
BuildRequires:  gtest-devel
d6ff0da
BuildRequires:  python2-devel
d6ff0da
BuildRequires:  re2c >= 0.11.3
490d174
Requires:       emacs-filesystem
490d174
Requires:       vim-filesystem
490d174
490d174
%description
490d174
Ninja is a small build system with a focus on speed. It differs from other
490d174
build systems in two major respects: it is designed to have its input files
490d174
generated by a higher-level build system, and it is designed to run builds as
490d174
fast as possible.
490d174
490d174
%prep
5604780
%autosetup -n ninja-%{version} -p1
5604780
cp -p %{SOURCE1} .
490d174
490d174
%build
d6ff0da
CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \
2657e83
%{__python2} configure.py --bootstrap --verbose
490d174
./ninja -v manual
9cc8079
./ninja -v ninja_test
9cc8079
490d174
%install
490d174
# TODO: Install ninja_syntax.py?
5604780
install -Dpm0755 ninja %{buildroot}%{_bindir}/ninja-build
5604780
install -Dpm0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja-build
5604780
install -Dpm0644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
5604780
install -Dpm0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
5604780
install -Dpm0644 %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
5604780
install -Dpm0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
5604780
install -Dpm0644 macros.ninja %{buildroot}%{rpmmacrodir}/macros.ninja
490d174
d6ff0da
%check
d6ff0da
./ninja_test
490d174
490d174
%files
5604780
%license COPYING
5604780
%doc HACKING.md README doc/manual.html
490d174
%{_bindir}/ninja-build
9e4029f
%{_datadir}/bash-completion/completions/ninja-build
490d174
%{_datadir}/emacs/site-lisp/ninja-mode.el
490d174
%{_datadir}/vim/vimfiles/syntax/ninja.vim
490d174
%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
490d174
# zsh does not have a -filesystem package
490d174
%{_datadir}/zsh/
5604780
%{rpmmacrodir}/macros.ninja
490d174
490d174
%changelog
5604780
* Sat Oct 08 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.1-2
5604780
- Add RPM macro
5604780
86d458c
* Sat Jul 23 2016 Ben Boeckel <mathstuf@gmail.com> - 1.7.1-1
86d458c
- update to 1.7.1
86d458c
- fix bash completion for the binary rename (#1352330)
5c6fd05
- disable test which fails to koji rlimit settings
86d458c
8032d9a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
8032d9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8032d9a
371d0cd
* Mon Nov 16 2015 Ben Boeckel <mathstuf@gmail.com> - 1.6.0-2
371d0cd
- Add patch to rename mentions of the binary name
371d0cd
b3999d4
* Sun Jul 19 2015 Ben Boeckel <mathstuf@gmail.com> - 1.6.0-1
b3999d4
- Update to 1.6.0
b3999d4
aef72e3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-4
aef72e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aef72e3
e919b04
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.5.3-3
e919b04
- Rebuilt for GCC 5 C++11 ABI change
e919b04
13d8bef
* Sun Feb 08 2015 Ben Boeckel <mathstuf@gmail.com> - 1.5.3-2
13d8bef
- Update bash-completions location
13d8bef
2657e83
* Wed Dec 10 2014 Ben Boeckel <mathstuf@gmail.com> - 1.5.3-1
2657e83
- Update to 1.5.3
2657e83
79afcaf
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
79afcaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
79afcaf
d6ff0da
* Tue Aug 05 2014 Christopher Meng <rpm@cicku.me> - 1.5.1-1
d6ff0da
- Update to 1.5.1
d6ff0da
4739f0e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
4739f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4739f0e
8b1faea
* Wed Nov 20 2013 Ben Boeckel <mathstuf@gmail.com> - 1.4.0-1
8b1faea
- Update to 1.4.0
8b1faea
bb559aa
* Sun Nov  3 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.3.4-4
bb559aa
- Use special %%doc to install all docs (#994005).
bb559aa
79d631c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
79d631c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
79d631c
e052365
* Fri Jun 21 2013 Dan Horák <dan[at]danny.cz> - 1.3.4-2
e052365
- workaround possible too low limits for number of processes and open files,
e052365
  fixes build on ppc/ppc64 and s390(x)
e052365
9cc8079
* Sun Jun 09 2013 Ben Boeckel <mathstuf@gmail.com> - 1.3.4-1
9cc8079
- Update to 1.3.4
9cc8079
- Run test suite
9cc8079
117873d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
117873d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
117873d
fe4f84a
* Sun Nov 04 2012 Ben Boeckel <mathstuf@gmail.com> - 1.0.0-1
fe4f84a
- Update to 1.0.0
fe4f84a
490d174
* Thu Jul 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.6.20120719git5dc55a3
490d174
- Update to new snapshot
490d174
490d174
* Mon Jul 09 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.5.20120709gitb90d038
490d174
- Preserve timestamps on install
490d174
- Install as ninja-build to avoid conflicts with the ninja IRC package
490d174
- Update snapshot
490d174
490d174
* Tue Jun 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.4.20120605git54553d3
490d174
- Add an ftdetect file for ninja
490d174
- Fix zsh-stuff directory ownership
490d174
490d174
* Thu Jun 07 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.3.20120605git54553d3
490d174
- Add a Group tag
490d174
490d174
* Tue Jun 05 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.2.20120605git54553d3
490d174
- Update to new snapshot
490d174
490d174
* Fri Mar 30 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.1.20120330gitabd33d5
490d174
- Initial package