Rebase for ninja 1.9.0 76/219476/1
authorWonYoung Choi <wy80.choi@samsung.com>
Thu, 13 Oct 2016 08:15:47 +0000 (17:15 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Thu, 5 Dec 2019 07:16:06 +0000 (16:16 +0900)
Change-Id: I721e1ff9aaf0a11751c7c5fc1324d03550fd8ba9
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
packaging/ninja.manifest [new file with mode: 0644]
packaging/ninja.spec [new file with mode: 0644]

diff --git a/packaging/ninja.manifest b/packaging/ninja.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/ninja.spec b/packaging/ninja.spec
new file mode 100644 (file)
index 0000000..840d2c5
--- /dev/null
@@ -0,0 +1,41 @@
+Name:           ninja
+Version:        1.8.2
+Release:        0
+License:        Apache-2.0
+Summary:        Ninja build system
+Url:            http://martine.github.com/ninja/
+Group:          System/Utilities
+Source:         %{name}.tar.bz2
+Source1001:     ninja.manifest
+
+BuildRequires:  python
+
+%description
+Ninja is a small build system with a focus on speed.
+http://martine.github.com/ninja/
+
+See the manual -- http://martine.github.com/ninja/manual.html or
+doc/manual.asciidoc included in the distribution -- for background
+and more details.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+
+%build
+# Support large file more than 2GB. (e.g., for stat syscall).
+export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1"
+
+python ./bootstrap.py 
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+install -m 0755 ninja %{buildroot}%{_bindir}/ninja
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_bindir}/ninja
+%license COPYING
+