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