8caf39
Name:           ninja-build
8caf39
Version:        1.8.2
8caf39
Release:        1%{?dist}
8caf39
Summary:        A small build system with a focus on speed
8caf39
License:        ASL 2.0
8caf39
URL:            http://martine.github.com/ninja/
8caf39
Source0:        https://github.com/martine/ninja/archive/v%{version}/ninja-%{version}.tar.gz
8caf39
Source1:        ninja.vim
8caf39
Source2:        macros.ninja
8caf39
BuildRequires:  gcc-c++
8caf39
%if 0%{?rhel} && 0%{?rhel} <= 7
8caf39
BuildRequires:  python2-devel
8caf39
%else
8caf39
BuildRequires:  python3-devel
8caf39
%endif
8caf39
BuildRequires:  asciidoc
8caf39
BuildRequires:  gtest-devel
8caf39
BuildRequires:  re2c >= 0.11.3
8caf39
Requires:       emacs-filesystem
8caf39
Requires:       vim-filesystem
8caf39
8caf39
%description
8caf39
Ninja is a small build system with a focus on speed. It differs from other
8caf39
build systems in two major respects: it is designed to have its input files
8caf39
generated by a higher-level build system, and it is designed to run builds as
8caf39
fast as possible.
8caf39
8caf39
%prep
8caf39
%autosetup -n ninja-%{version} -p1
8caf39
8caf39
%build
8caf39
CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \
8caf39
%if 0%{?rhel} && 0%{?rhel} <= 7
8caf39
%{__python2} \
8caf39
%else
8caf39
%{__python3} \
8caf39
%endif
8caf39
  configure.py --bootstrap --verbose
8caf39
./ninja -v all
8caf39
./ninja -v manual
8caf39
8caf39
%install
8caf39
# TODO: Install ninja_syntax.py?
8caf39
install -Dpm0755 ninja -t %{buildroot}%{_bindir}/
8caf39
install -Dpm0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
8caf39
install -Dpm0644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
8caf39
install -Dpm0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
8caf39
install -Dpm0644 %{S:1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
8caf39
install -Dpm0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
8caf39
install -Dpm0644 %{S:2} %{buildroot}%{rpmmacrodir}/macros.ninja
8caf39
8caf39
ln -s ninja %{buildroot}%{_bindir}/ninja-build
8caf39
8caf39
%check
8caf39
./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
8caf39
8caf39
%files
8caf39
%license COPYING
8caf39
%doc HACKING.md README doc/manual.html
8caf39
%{_bindir}/ninja
8caf39
%{_bindir}/ninja-build
8caf39
%{_datadir}/bash-completion/completions/ninja
8caf39
%{_datadir}/emacs/site-lisp/ninja-mode.el
8caf39
%{_datadir}/vim/vimfiles/syntax/ninja.vim
8caf39
%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
8caf39
# zsh does not have a -filesystem package
8caf39
%{_datadir}/zsh/
8caf39
%{rpmmacrodir}/macros.ninja
8caf39
8caf39
%changelog
8caf39
* Tue Sep 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.2-1
8caf39
- Update to 1.8.2
8caf39
8caf39
* Thu Sep 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-1
8caf39
- Update to 1.8.1
8caf39
8caf39
* Sat Sep 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.0-1
8caf39
- Update to 1.8.0
8caf39
8caf39
* Tue Aug 01 2017 Kalev Lember <klember@redhat.com> - 1.7.2-6
8caf39
- Backport an upstream patch to handle ostree setting 0 mtime
8caf39
8caf39
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-5
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8caf39
8caf39
* Fri Apr 21 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.2-4
8caf39
- Rename main executable to ninja (#1166135)
8caf39
  (compatibility symlink is added)
8caf39
8caf39
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8caf39
8caf39
* Sat Dec 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.2-2
8caf39
- Add EPEL hacks
8caf39
8caf39
* Mon Nov 28 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.2-1
8caf39
- Update to 1.7.2
8caf39
8caf39
* Mon Oct 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.1-3
8caf39
- Fix install ninja.vim
8caf39
8caf39
* Sat Oct 08 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.1-2
8caf39
- Add RPM macro
8caf39
8caf39
* Sat Jul 23 2016 Ben Boeckel <mathstuf@gmail.com> - 1.7.1-1
8caf39
- update to 1.7.1
8caf39
- fix bash completion for the binary rename (#1352330)
8caf39
- disable test which fails to koji rlimit settings
8caf39
8caf39
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8caf39
8caf39
* Mon Nov 16 2015 Ben Boeckel <mathstuf@gmail.com> - 1.6.0-2
8caf39
- Add patch to rename mentions of the binary name
8caf39
8caf39
* Sun Jul 19 2015 Ben Boeckel <mathstuf@gmail.com> - 1.6.0-1
8caf39
- Update to 1.6.0
8caf39
8caf39
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-4
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8caf39
8caf39
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.5.3-3
8caf39
- Rebuilt for GCC 5 C++11 ABI change
8caf39
8caf39
* Sun Feb 08 2015 Ben Boeckel <mathstuf@gmail.com> - 1.5.3-2
8caf39
- Update bash-completions location
8caf39
8caf39
* Wed Dec 10 2014 Ben Boeckel <mathstuf@gmail.com> - 1.5.3-1
8caf39
- Update to 1.5.3
8caf39
8caf39
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8caf39
8caf39
* Tue Aug 05 2014 Christopher Meng <rpm@cicku.me> - 1.5.1-1
8caf39
- Update to 1.5.1
8caf39
8caf39
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8caf39
8caf39
* Wed Nov 20 2013 Ben Boeckel <mathstuf@gmail.com> - 1.4.0-1
8caf39
- Update to 1.4.0
8caf39
8caf39
* Sun Nov  3 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.3.4-4
8caf39
- Use special %%doc to install all docs (#994005).
8caf39
8caf39
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8caf39
8caf39
* Fri Jun 21 2013 Dan Horák <dan[at]danny.cz> - 1.3.4-2
8caf39
- workaround possible too low limits for number of processes and open files,
8caf39
  fixes build on ppc/ppc64 and s390(x)
8caf39
8caf39
* Sun Jun 09 2013 Ben Boeckel <mathstuf@gmail.com> - 1.3.4-1
8caf39
- Update to 1.3.4
8caf39
- Run test suite
8caf39
8caf39
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
8caf39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8caf39
8caf39
* Sun Nov 04 2012 Ben Boeckel <mathstuf@gmail.com> - 1.0.0-1
8caf39
- Update to 1.0.0
8caf39
8caf39
* Thu Jul 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.6.20120719git5dc55a3
8caf39
- Update to new snapshot
8caf39
8caf39
* Mon Jul 09 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.5.20120709gitb90d038
8caf39
- Preserve timestamps on install
8caf39
- Install as ninja-build to avoid conflicts with the ninja IRC package
8caf39
- Update snapshot
8caf39
8caf39
* Tue Jun 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.4.20120605git54553d3
8caf39
- Add an ftdetect file for ninja
8caf39
- Fix zsh-stuff directory ownership
8caf39
8caf39
* Thu Jun 07 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.3.20120605git54553d3
8caf39
- Add a Group tag
8caf39
8caf39
* Tue Jun 05 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.2.20120605git54553d3
8caf39
- Update to new snapshot
8caf39
8caf39
* Fri Mar 30 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.1.20120330gitabd33d5
8caf39
- Initial package