From 722e35d16a3229d62774c079794740a8ce0fa91caad6d035210311d08af518aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 10 Jan 2013 19:48:37 +0000 Subject: [PATCH] Accepting request 147968 from home:namtrac:bugfix A build system compared to make OBS-URL: https://build.opensuse.org/request/show/147968 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + ninja-8a4c9e05f7.tar.bz2 | 3 ++ ninja.changes | 5 ++++ ninja.spec | 60 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ninja-8a4c9e05f7.tar.bz2 create mode 100644 ninja.changes create mode 100644 ninja.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ninja-8a4c9e05f7.tar.bz2 b/ninja-8a4c9e05f7.tar.bz2 new file mode 100644 index 0000000..9847629 --- /dev/null +++ b/ninja-8a4c9e05f7.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:542257c71e6edda5984cc2abf75075c024765f165a06b5f4bd8b0f4d91a3694d +size 111624 diff --git a/ninja.changes b/ninja.changes new file mode 100644 index 0000000..e84e6e1 --- /dev/null +++ b/ninja.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Jan 10 19:38:44 UTC 2013 - idonmez@suse.com + +- First release + diff --git a/ninja.spec b/ninja.spec new file mode 100644 index 0000000..85ebd89 --- /dev/null +++ b/ninja.spec @@ -0,0 +1,60 @@ +# +# spec file for package ninja +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define _githash 8a4c9e05f7 + +Name: ninja +Summary: A small build system closest in spirit to Make +License: Apache-2.0 +Group: Development/Tools/Building +Version: 0.0_20121229 +Release: 0 +Url: https://github.com/martine/ninja +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: asciidoc +BuildRequires: gcc-c++ +BuildRequires: python +Source0: ninja-%{_githash}.tar.bz2 + +%description +Ninja is yet another build system. +It takes as input the interdependencies of files (typically source code and output executables) +and orchestrates building them, quickly. + +%prep +%setup -q -n %{name} + +%build +python ./bootstrap.py +./ninja manual + +%install +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_docdir}/html + +install -m 0755 ninja %{buildroot}%{_bindir}/ninja +install -m 0644 doc/manual.html %{buildroot}%{_docdir}/html/manual.html + +%files +%defattr(-,root,root) +%{_bindir}/ninja +%dir %{_docdir}/html +%doc %{_docdir}/html/* +%doc COPYING + +%changelog