Update to 1.5.1
This commit is contained in:
parent
4739f0e7bd
commit
d6ff0da157
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
/v1.0.0.tar.gz
|
/v1.0.0.tar.gz
|
||||||
/v1.3.4.tar.gz
|
/v1.3.4.tar.gz
|
||||||
/v1.4.0.tar.gz
|
/v1.4.0.tar.gz
|
||||||
|
/ninja-1.5.1.tar.gz
|
||||||
|
@ -1,23 +1,15 @@
|
|||||||
#global githash 5dc55a3
|
|
||||||
|
|
||||||
Name: ninja-build
|
Name: ninja-build
|
||||||
Version: 1.4.0
|
Version: 1.5.1
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Group: Development/Tools
|
|
||||||
Summary: A small build system with a focus on speed
|
Summary: A small build system with a focus on speed
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://martine.github.com/ninja/
|
URL: http://martine.github.com/ninja/
|
||||||
#VCS: git://github.com/martine/ninja.git
|
Source0: https://github.com/martine/ninja/archive/v%{version}.tar.gz#/ninja-%{version}.tar.gz
|
||||||
# Snapshot from github
|
|
||||||
# Downloaded from https://github.com/martine/ninja/tarball/%{githash}
|
|
||||||
#Source0: martine-ninja-%{githash}.tar.gz
|
|
||||||
Source0: https://github.com/martine/ninja/archive/v%{version}.tar.gz
|
|
||||||
Source1: ninja.vim
|
Source1: ninja.vim
|
||||||
|
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
BuildRequires: gtest-devel
|
BuildRequires: gtest-devel
|
||||||
BuildRequires: re2c
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: re2c >= 0.11.3
|
||||||
Requires: emacs-filesystem
|
Requires: emacs-filesystem
|
||||||
Requires: vim-filesystem
|
Requires: vim-filesystem
|
||||||
|
|
||||||
@ -27,49 +19,33 @@ 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
|
generated by a higher-level build system, and it is designed to run builds as
|
||||||
fast as possible.
|
fast as possible.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ninja-%{version}
|
%setup -qn ninja-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}"
|
CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \
|
||||||
export CFLAGS
|
%{__python2} bootstrap.py --verbose --debug
|
||||||
./bootstrap.py --verbose -- --debug
|
|
||||||
./ninja -v manual
|
./ninja -v manual
|
||||||
./ninja -v ninja_test
|
./ninja -v ninja_test
|
||||||
|
|
||||||
|
%install
|
||||||
|
# TODO: Install ninja_syntax.py?
|
||||||
|
mkdir -p %{buildroot}/{%{_bindir},%{_sysconfdir}/bash_completion.d,%{_datadir}/emacs/site-lisp,%{_datadir}/vim/vimfiles/syntax,%{_datadir}/vim/vimfiles/ftdetect,%{_datadir}/zsh/site-functions}
|
||||||
|
|
||||||
|
install -pm755 ninja %{buildroot}%{_bindir}/ninja-build
|
||||||
|
install -pm644 misc/bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/ninja-bash-completion
|
||||||
|
install -pm644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
|
||||||
|
install -pm644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
|
||||||
|
install -pm644 %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
|
||||||
|
install -pm644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# workaround possible too low default limits
|
# workaround possible too low default limits
|
||||||
ulimit -n 2048
|
ulimit -n 2048 && ulimit -u 2048
|
||||||
ulimit -u 2048
|
|
||||||
|
|
||||||
./ninja_test
|
./ninja_test
|
||||||
|
|
||||||
|
|
||||||
%install
|
|
||||||
# TODO: Install ninja_syntax.py?
|
|
||||||
install -p -m 755 -d %{buildroot}%{_bindir}
|
|
||||||
install -p -m 755 ninja %{buildroot}%{_bindir}/ninja-build
|
|
||||||
|
|
||||||
install -p -m 755 -d %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
||||||
install -p -m 644 misc/bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/ninja-bash-completion
|
|
||||||
|
|
||||||
install -p -m 755 -d %{buildroot}%{_datadir}/emacs/site-lisp
|
|
||||||
install -p -m 644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
|
|
||||||
|
|
||||||
install -p -m 755 -d %{buildroot}%{_datadir}/vim/vimfiles/syntax
|
|
||||||
install -p -m 644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
|
|
||||||
install -p -m 755 -d %{buildroot}%{_datadir}/vim/vimfiles/ftdetect
|
|
||||||
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
|
|
||||||
|
|
||||||
install -p -m 755 -d %{buildroot}%{_datadir}/zsh/site-functions
|
|
||||||
install -p -m 644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING README doc/manual.html
|
%doc COPYING HACKING.md README doc/manual.html
|
||||||
%{_bindir}/ninja-build
|
%{_bindir}/ninja-build
|
||||||
# bash-completion does not own this
|
# bash-completion does not own this
|
||||||
%{_sysconfdir}/bash_completion.d/
|
%{_sysconfdir}/bash_completion.d/
|
||||||
@ -79,8 +55,10 @@ install -p -m 644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions
|
|||||||
# zsh does not have a -filesystem package
|
# zsh does not have a -filesystem package
|
||||||
%{_datadir}/zsh/
|
%{_datadir}/zsh/
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 05 2014 Christopher Meng <rpm@cicku.me> - 1.5.1-1
|
||||||
|
- Update to 1.5.1
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user