2020-02-05 12:34:21 +00:00
|
|
|
# Set to bcond_without or use --with bootstrap,
|
|
|
|
# when bootstrapping a new architecture.
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
2012-07-20 03:46:08 +00:00
|
|
|
Name: ninja-build
|
2020-02-05 12:40:42 +00:00
|
|
|
Version: 1.10.0
|
|
|
|
Release: 1%{?dist}
|
2018-12-08 13:30:49 +00:00
|
|
|
Summary: Small build system with a focus on speed
|
2012-07-20 03:46:08 +00:00
|
|
|
License: ASL 2.0
|
2018-12-08 13:30:49 +00:00
|
|
|
URL: https://ninja-build.org/
|
|
|
|
Source0: https://github.com/ninja-build/ninja/archive/v%{version}/ninja-%{version}.tar.gz
|
2016-10-10 13:30:27 +00:00
|
|
|
Source1: ninja.vim
|
|
|
|
Source2: macros.ninja
|
2016-11-28 19:14:46 +00:00
|
|
|
BuildRequires: gcc-c++
|
2016-12-03 22:13:03 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
%else
|
2016-11-28 19:14:46 +00:00
|
|
|
BuildRequires: python3-devel
|
2016-12-03 22:13:03 +00:00
|
|
|
%endif
|
2020-02-05 12:34:21 +00:00
|
|
|
%if %{without bootstrap}
|
2012-07-20 03:46:08 +00:00
|
|
|
BuildRequires: asciidoc
|
2013-06-10 03:30:14 +00:00
|
|
|
BuildRequires: gtest-devel
|
2020-02-05 12:34:21 +00:00
|
|
|
%endif
|
2014-08-05 07:21:44 +00:00
|
|
|
BuildRequires: re2c >= 0.11.3
|
2020-02-05 12:34:21 +00:00
|
|
|
%if %{without bootstrap}
|
2012-07-20 03:46:08 +00:00
|
|
|
Requires: emacs-filesystem
|
|
|
|
Requires: vim-filesystem
|
2020-02-05 12:34:21 +00:00
|
|
|
%endif
|
2012-07-20 03:46:08 +00:00
|
|
|
|
|
|
|
%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
|
2016-10-08 15:18:14 +00:00
|
|
|
%autosetup -n ninja-%{version} -p1
|
2012-07-20 03:46:08 +00:00
|
|
|
|
|
|
|
%build
|
2020-02-05 12:26:07 +00:00
|
|
|
%if 0%{?set_build_flags:1}
|
|
|
|
%{set_build_flags}
|
|
|
|
%else
|
|
|
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
|
|
|
|
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
|
|
|
|
FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS
|
|
|
|
FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS
|
|
|
|
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
|
|
|
|
%endif
|
2016-12-03 22:13:03 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
%{__python2} \
|
|
|
|
%else
|
|
|
|
%{__python3} \
|
|
|
|
%endif
|
|
|
|
configure.py --bootstrap --verbose
|
2017-09-05 06:17:38 +00:00
|
|
|
./ninja -v all
|
2020-02-05 12:34:21 +00:00
|
|
|
%if %{without bootstrap}
|
2012-07-20 03:46:08 +00:00
|
|
|
./ninja -v manual
|
2020-02-05 12:34:21 +00:00
|
|
|
%endif
|
2013-06-10 03:30:14 +00:00
|
|
|
|
2012-07-20 03:46:08 +00:00
|
|
|
%install
|
|
|
|
# TODO: Install ninja_syntax.py?
|
2017-04-21 18:58:31 +00:00
|
|
|
install -Dpm0755 ninja -t %{buildroot}%{_bindir}/
|
2020-02-05 12:34:21 +00:00
|
|
|
%if %{without bootstrap}
|
2017-04-21 18:58:31 +00:00
|
|
|
install -Dpm0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
|
2016-10-08 15:18:14 +00:00
|
|
|
install -Dpm0644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
|
|
|
|
install -Dpm0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
|
2016-10-10 13:30:27 +00:00
|
|
|
install -Dpm0644 %{S:1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
|
2016-10-08 15:18:14 +00:00
|
|
|
install -Dpm0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
|
2020-02-05 12:34:21 +00:00
|
|
|
%endif
|
2018-12-08 13:30:49 +00:00
|
|
|
install -Dpm0644 %{S:2} %{buildroot}%{_rpmmacrodir}/macros.ninja
|
2012-07-20 03:46:08 +00:00
|
|
|
|
2018-03-06 19:02:37 +00:00
|
|
|
# Macro should not change when we are redefining bindir
|
2018-12-08 13:30:49 +00:00
|
|
|
sed -i -e "/^%%__ninja /s| .*$| %{_bindir}/ninja|" %{buildroot}%{_rpmmacrodir}/macros.ninja
|
2018-03-06 19:02:37 +00:00
|
|
|
|
2017-04-21 18:58:31 +00:00
|
|
|
ln -s ninja %{buildroot}%{_bindir}/ninja-build
|
|
|
|
|
2020-02-05 12:34:21 +00:00
|
|
|
%if %{without bootstrap}
|
2014-08-05 07:21:44 +00:00
|
|
|
%check
|
2017-09-04 07:17:34 +00:00
|
|
|
./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
|
2020-02-05 12:34:21 +00:00
|
|
|
%endif
|
2012-07-20 03:46:08 +00:00
|
|
|
|
|
|
|
%files
|
2016-10-08 15:18:14 +00:00
|
|
|
%license COPYING
|
2020-02-05 12:40:42 +00:00
|
|
|
%doc README.md
|
2020-02-05 12:34:21 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
%doc doc/manual.html
|
|
|
|
%endif
|
2017-04-21 18:58:31 +00:00
|
|
|
%{_bindir}/ninja
|
2012-07-20 03:46:08 +00:00
|
|
|
%{_bindir}/ninja-build
|
2020-02-05 12:34:21 +00:00
|
|
|
%if %{without bootstrap}
|
2017-04-21 18:58:31 +00:00
|
|
|
%{_datadir}/bash-completion/completions/ninja
|
2012-07-20 03:46:08 +00:00
|
|
|
%{_datadir}/emacs/site-lisp/ninja-mode.el
|
|
|
|
%{_datadir}/vim/vimfiles/syntax/ninja.vim
|
|
|
|
%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
|
|
|
|
# zsh does not have a -filesystem package
|
|
|
|
%{_datadir}/zsh/
|
2020-02-05 12:34:21 +00:00
|
|
|
%endif
|
2016-10-08 15:18:14 +00:00
|
|
|
%{rpmmacrodir}/macros.ninja
|
2012-07-20 03:46:08 +00:00
|
|
|
|
|
|
|
%changelog
|
2020-02-05 12:40:42 +00:00
|
|
|
* Wed Feb 05 2020 Björn Esser <besser82@fedoraproject.org> - 1.10.0-1
|
|
|
|
- Update to 1.10.0
|
|
|
|
|
2020-02-05 12:34:21 +00:00
|
|
|
* Wed Feb 05 2020 Björn Esser <besser82@fedoraproject.org> - 1.9.0-5
|
|
|
|
- Add conditional for bootstrapping new architectures
|
2020-02-05 12:26:07 +00:00
|
|
|
- Use %%set_build_flags macro to export buildflags, if available
|
2020-02-05 12:34:21 +00:00
|
|
|
|
2020-01-29 15:01:56 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 18:42:29 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 12:23:03 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-31 01:22:20 +00:00
|
|
|
* Thu Jan 31 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.9.0-1
|
|
|
|
- Update to 1.9.0
|
|
|
|
|
2018-03-06 19:02:37 +00:00
|
|
|
* Thu Aug 16 2018 Owen Taylor <otaylor@redhat.com> - 1.8.2-5
|
|
|
|
- Fix binddir usage in macros.ninja
|
|
|
|
|
2018-07-13 11:38:16 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-19 08:48:31 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8.2-3
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-08 04:15:36 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-09-12 08:42:01 +00:00
|
|
|
* Tue Sep 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.2-1
|
|
|
|
- Update to 1.8.2
|
|
|
|
|
2017-09-07 14:52:38 +00:00
|
|
|
* Thu Sep 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-1
|
|
|
|
- Update to 1.8.1
|
|
|
|
|
2017-09-05 06:17:38 +00:00
|
|
|
* Sat Sep 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.0-1
|
|
|
|
- Update to 1.8.0
|
|
|
|
|
2017-08-01 19:32:19 +00:00
|
|
|
* Tue Aug 01 2017 Kalev Lember <klember@redhat.com> - 1.7.2-6
|
|
|
|
- Backport an upstream patch to handle ostree setting 0 mtime
|
|
|
|
|
2017-07-26 22:58:36 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-04-21 18:58:31 +00:00
|
|
|
* Fri Apr 21 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.2-4
|
|
|
|
- Rename main executable to ninja (#1166135)
|
|
|
|
(compatibility symlink is added)
|
|
|
|
|
2017-02-10 22:19:25 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-03 22:13:03 +00:00
|
|
|
* Sat Dec 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.2-2
|
|
|
|
- Add EPEL hacks
|
|
|
|
|
2016-11-28 19:14:46 +00:00
|
|
|
* Mon Nov 28 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.2-1
|
|
|
|
- Update to 1.7.2
|
|
|
|
|
2016-10-10 13:30:27 +00:00
|
|
|
* Mon Oct 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.1-3
|
|
|
|
- Fix install ninja.vim
|
|
|
|
|
2016-10-08 15:18:14 +00:00
|
|
|
* Sat Oct 08 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.1-2
|
|
|
|
- Add RPM macro
|
|
|
|
|
2016-07-24 02:36:25 +00:00
|
|
|
* Sat Jul 23 2016 Ben Boeckel <mathstuf@gmail.com> - 1.7.1-1
|
|
|
|
- update to 1.7.1
|
|
|
|
- fix bash completion for the binary rename (#1352330)
|
2016-07-24 21:31:08 +00:00
|
|
|
- disable test which fails to koji rlimit settings
|
2016-07-24 02:36:25 +00:00
|
|
|
|
2016-02-04 09:22:37 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-16 22:59:51 +00:00
|
|
|
* Mon Nov 16 2015 Ben Boeckel <mathstuf@gmail.com> - 1.6.0-2
|
|
|
|
- Add patch to rename mentions of the binary name
|
|
|
|
|
2015-07-19 17:03:12 +00:00
|
|
|
* Sun Jul 19 2015 Ben Boeckel <mathstuf@gmail.com> - 1.6.0-1
|
|
|
|
- Update to 1.6.0
|
|
|
|
|
2015-06-17 21:51:06 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-02 14:12:30 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.5.3-3
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-02-08 22:43:12 +00:00
|
|
|
* Sun Feb 08 2015 Ben Boeckel <mathstuf@gmail.com> - 1.5.3-2
|
|
|
|
- Update bash-completions location
|
|
|
|
|
2014-12-11 03:57:13 +00:00
|
|
|
* Wed Dec 10 2014 Ben Boeckel <mathstuf@gmail.com> - 1.5.3-1
|
|
|
|
- Update to 1.5.3
|
|
|
|
|
2014-08-17 11:55:49 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-05 07:21:44 +00:00
|
|
|
* Tue Aug 05 2014 Christopher Meng <rpm@cicku.me> - 1.5.1-1
|
|
|
|
- Update to 1.5.1
|
|
|
|
|
2014-06-07 12:54:18 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-21 02:52:37 +00:00
|
|
|
* Wed Nov 20 2013 Ben Boeckel <mathstuf@gmail.com> - 1.4.0-1
|
|
|
|
- Update to 1.4.0
|
|
|
|
|
2013-11-03 12:07:20 +00:00
|
|
|
* Sun Nov 3 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.3.4-4
|
|
|
|
- Use special %%doc to install all docs (#994005).
|
|
|
|
|
2013-08-03 13:23:45 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-21 11:43:46 +00:00
|
|
|
* Fri Jun 21 2013 Dan Horák <dan[at]danny.cz> - 1.3.4-2
|
|
|
|
- workaround possible too low limits for number of processes and open files,
|
|
|
|
fixes build on ppc/ppc64 and s390(x)
|
|
|
|
|
2013-06-10 03:30:14 +00:00
|
|
|
* Sun Jun 09 2013 Ben Boeckel <mathstuf@gmail.com> - 1.3.4-1
|
|
|
|
- Update to 1.3.4
|
|
|
|
- Run test suite
|
|
|
|
|
2013-02-14 08:19:26 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-05 02:54:26 +00:00
|
|
|
* Sun Nov 04 2012 Ben Boeckel <mathstuf@gmail.com> - 1.0.0-1
|
|
|
|
- Update to 1.0.0
|
|
|
|
|
2012-07-20 03:46:08 +00:00
|
|
|
* Thu Jul 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.6.20120719git5dc55a3
|
|
|
|
- Update to new snapshot
|
|
|
|
|
|
|
|
* Mon Jul 09 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.5.20120709gitb90d038
|
|
|
|
- Preserve timestamps on install
|
|
|
|
- Install as ninja-build to avoid conflicts with the ninja IRC package
|
|
|
|
- Update snapshot
|
|
|
|
|
|
|
|
* Tue Jun 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.4.20120605git54553d3
|
|
|
|
- Add an ftdetect file for ninja
|
|
|
|
- Fix zsh-stuff directory ownership
|
|
|
|
|
|
|
|
* Thu Jun 07 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.3.20120605git54553d3
|
|
|
|
- Add a Group tag
|
|
|
|
|
|
|
|
* Tue Jun 05 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.2.20120605git54553d3
|
|
|
|
- Update to new snapshot
|
|
|
|
|
|
|
|
* Fri Mar 30 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.1.20120330gitabd33d5
|
|
|
|
- Initial package
|