forked from pool/ninja
Accepting request 1172879 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1172879 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ninja?expand=0&rev=30
This commit is contained in:
commit
eda3cbd726
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
BIN
ninja-1.11.1.tar.gz
(Stored with Git LFS)
BIN
ninja-1.11.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
ninja-1.12.0.tar.gz
Normal file
3
ninja-1.12.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8b2c86cd483dc7fcb7975c5ec7329135d210099a89bc7db0590a07b0bbfe49a5
|
||||||
|
size 240291
|
@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 7 13:45:10 UTC 2024 - Christoph G <foss@grueninger.de>
|
||||||
|
|
||||||
|
- Move testing and its dependency google-test into a separate
|
||||||
|
package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 4 21:31:20 UTC 2024 - Christoph G <foss@grueninger.de>
|
||||||
|
|
||||||
|
- Use build dependency googletest-devel instead of gtest to
|
||||||
|
break dependency cycle
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 30 17:40:20 UTC 2024 - Christoph G <foss@grueninger.de>
|
||||||
|
|
||||||
|
- update to 1.12.0
|
||||||
|
* Critical path scheduler which orders the jobs by their runtime
|
||||||
|
history. This may break your build if you haven't specified
|
||||||
|
your dependencies correctly.
|
||||||
|
* Resiliency against inputs changing during the build
|
||||||
|
* Reliable ETA and progress percentage in status #1963
|
||||||
|
- Use CMake as build system
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 31 05:32:49 UTC 2022 - Christoph G <foss@grueninger.de>
|
Wed Aug 31 05:32:49 UTC 2022 - Christoph G <foss@grueninger.de>
|
||||||
|
|
||||||
|
42
ninja.spec
42
ninja.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ninja
|
# spec file for package ninja
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,19 +15,31 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define name_ext -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define name_ext %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: ninja
|
Name: ninja%{name_ext}
|
||||||
Version: 1.11.1
|
Version: 1.12.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A small build system closest in spirit to Make
|
Summary: A small build system closest in spirit to Make
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
URL: https://ninja-build.org/
|
URL: https://ninja-build.org/
|
||||||
Source0: https://github.com/ninja-build/ninja/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/ninja-build/ninja/archive/v%{version}/ninja-%{version}.tar.gz
|
||||||
Source1: macros.ninja
|
Source1: macros.ninja
|
||||||
Patch1: ninja-disable-maxprocs-test.patch
|
Patch1: ninja-disable-maxprocs-test.patch
|
||||||
Patch2: ninja-re2c-g.patch
|
Patch2: ninja-re2c-g.patch
|
||||||
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: googletest-devel
|
||||||
|
%endif
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: re2c
|
BuildRequires: re2c
|
||||||
|
|
||||||
@ -37,7 +49,7 @@ of files (typically source code and output executables) and orchestrates
|
|||||||
building them, quickly.
|
building them, quickly.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1 -n ninja-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
@ -45,22 +57,29 @@ export CFLAGS="%{optflags}"
|
|||||||
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
%endif
|
%endif
|
||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
python3 ./configure.py --bootstrap --verbose
|
%if %{without test}
|
||||||
|
%cmake -DBUILD_TESTING=OFF
|
||||||
|
%else
|
||||||
|
%cmake
|
||||||
|
%endif
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -p -m 0755 ninja %{buildroot}%{_bindir}/ninja
|
%if %{without test}
|
||||||
|
%cmake_install
|
||||||
install -D -p -m 0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
|
install -D -p -m 0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
|
||||||
install -D -p -m 0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/site/syntax/ninja.vim
|
install -D -p -m 0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/site/syntax/ninja.vim
|
||||||
install -D -p -m 0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
|
install -D -p -m 0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
|
||||||
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja
|
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./ninja all
|
%if %{with test}
|
||||||
./ninja_test
|
%ctest
|
||||||
python3 ./misc/ninja_syntax_test.py
|
%endif
|
||||||
python3 ./misc/output_test.py
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%if %{without test}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/ninja
|
%{_bindir}/ninja
|
||||||
%{_datadir}/bash-completion
|
%{_datadir}/bash-completion
|
||||||
@ -69,3 +88,4 @@ python3 ./misc/output_test.py
|
|||||||
%{_rpmconfigdir}/macros.d/macros.ninja
|
%{_rpmconfigdir}/macros.d/macros.ninja
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
%endif
|
Loading…
Reference in New Issue
Block a user