From d6fbde2411431b5f3a598e3c6ac7bf05f7f8688f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 28 Jan 2011 10:06:49 +0100 Subject: [PATCH] Add script to allow rpmbuild usage as non-root --- id-rpm-build/id-setup-rpmbuild.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 id-rpm-build/id-setup-rpmbuild.sh diff --git a/id-rpm-build/id-setup-rpmbuild.sh b/id-rpm-build/id-setup-rpmbuild.sh new file mode 100755 index 0000000..52376a2 --- /dev/null +++ b/id-rpm-build/id-setup-rpmbuild.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Thie script will create an .rpmmacros file that will allow rpmbuild +# as non-root. Results will be put in in rpmbuild of your home directory +cd $HOME +if test -f .rpmmacros; then + echo ".rpmmacros already exist" + exit 1 +fi +echo "%_topdir $HOME/rpmbuild" >.rpmmacros +mkdir -p rpmbuild/BUILD +mkdir -p rpmbuild/RPMS/noarch +mkdir -p rpmbuild/RPMS/x86_64 +mkdir -p rpmbuild/SOURCES +mkdir -p rpmbuild/SPECS +mkdir -p rpmbuild/SRPMS -- 1.7.10.4