summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorMaxim Kalaev <maximk@il.ibm.com>2012-09-14 10:46:01 (GMT)
committerMaxim Kalaev <maximk@il.ibm.com>2012-09-23 12:37:11 (GMT)
commit1cdfae5a8824cbe7cb583599c92e9d385d5501e4 (patch)
tree5a668656a560868fa912fb549c92cf0a71cd1914 /configure.py
parente4eef72db86cc321a73da03bd7b7a9b2df83b1af (diff)
downloadNinja-1cdfae5a8824cbe7cb583599c92e9d385d5501e4.zip
Ninja-1cdfae5a8824cbe7cb583599c92e9d385d5501e4.tar.gz
Ninja-1cdfae5a8824cbe7cb583599c92e9d385d5501e4.tar.bz2
packaging: refactored rpm building
Now passing through a valid SRPM, working in a standard way.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py18
1 files changed, 3 insertions, 15 deletions
diff --git a/configure.py b/configure.py
index 8d9f31e..f8e82f0 100755
--- a/configure.py
+++ b/configure.py
@@ -429,21 +429,9 @@ n.newline()
if host == 'linux':
n.comment('Packaging')
n.rule('rpmbuild',
- command="rpmbuild \
- --define 'ver git' \
- --define \"rel `git rev-parse --short HEAD`\" \
- --define '_topdir %(pwd)/rpm-build' \
- --define '_builddir %{_topdir}' \
- --define '_rpmdir %{_topdir}' \
- --define '_srcrpmdir %{_topdir}' \
- --define '_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' \
- --define '_specdir %{_topdir}' \
- --define '_sourcedir %{_topdir}' \
- --quiet \
- -bb misc/packaging/ninja.spec",
- description='Building RPM..')
- n.build('rpm', 'rpmbuild',
- implicit=['ninja','README', 'COPYING', doc('manual.html')])
+ command="misc/packaging/rpmbuild.sh",
+ description='Building rpms..')
+ n.build('rpm', 'rpmbuild')
n.newline()
n.build('all', 'phony', all_targets)