summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-08-03 14:31:08 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-08-03 14:31:08 -0400
commit154a42b584c47069cb29d5ddb0e3f86df5f5df62 (patch)
tree00e83ac55826ff94eb8f244402888538ba34742e /Makefile
parentb08e850d7a38f3ba75eab394faddb474a94d8193 (diff)
downloadthird_party-cobbler-154a42b584c47069cb29d5ddb0e3f86df5f5df62.zip
third_party-cobbler-154a42b584c47069cb29d5ddb0e3f86df5f5df62.tar.gz
third_party-cobbler-154a42b584c47069cb29d5ddb0e3f86df5f5df62.tar.xz
Adding srpm make target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6ab2fba..dcfa274 100644
--- a/Makefile
+++ b/Makefile
@@ -42,3 +42,16 @@ rpms: manpage sdist
--define "_specdir %{_topdir}" \
--define "_sourcedir %{_topdir}" \
-ba cobbler.spec
+
+srpm: manpage sdist
+ mkdir -p rpm-build
+ cp dist/*.gz rpm-build/
+ rpmbuild --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}" \
+ -bs --nodeps cobbler.spec
+