forked from ninja-build/ninja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ninja-build#369 from maximuska/proposed/packaging-rpm
packaging: added basic RPM building
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Summary: Ninja is a small build system with a focus on speed. | ||
Name: ninja | ||
Version: %{ver} | ||
Release: %{rel}%{?dist} | ||
Group: Development/Tools | ||
License: Apache 2.0 | ||
URL: https://github.com/martine/ninja | ||
|
||
%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. | ||
|
||
Ninja joins a sea of other build systems. Its distinguishing goal is to be fast. It is born from my work on the Chromium browser project, | ||
which has over 30,000 source files and whose other build systems (including one built from custom non-recursive Makefiles) can take ten | ||
seconds to start building after changing one file. Ninja is under a second. | ||
|
||
%build | ||
# Assuming we've bootstrapped already.. | ||
../ninja manual ninja -C .. | ||
|
||
%install | ||
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_docdir} | ||
cp -p ../ninja %{buildroot}%{_bindir}/ | ||
git log --oneline --pretty=format:'%h: %s (%an, %cd)' --abbrev-commit --all > GITLOG | ||
|
||
%files | ||
%defattr(-, root, root) | ||
%doc GITLOG ../COPYING ../README ../doc/manual.html | ||
%{_bindir}/* | ||
|
||
%clean | ||
mv %{_topdir}/*.rpm .. | ||
rm -rf %{_topdir} |