[et-mgmt-tools] Cobbler Makefile patch

Matt Hyclak hyclak at math.ohiou.edu
Fri Aug 3 17:57:33 UTC 2007


Just a suggested addition to the cobbler Makefile to create only an SRPM -
that allows for building in chroots (e.g. mock) and not having to have
everything installed on the build box.

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263


-------------- next part --------------
--- a/Makefile
+++ b/Makefile
@@ -42,3 +42,15 @@ 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


More information about the et-mgmt-tools mailing list