Add script to allow rpmbuild usage as non-root
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 28 Jan 2011 09:06:49 +0000 (10:06 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 28 Jan 2011 09:06:49 +0000 (10:06 +0100)
id-rpm-build/id-setup-rpmbuild.sh [new file with mode: 0755]

diff --git a/id-rpm-build/id-setup-rpmbuild.sh b/id-rpm-build/id-setup-rpmbuild.sh
new file mode 100755 (executable)
index 0000000..52376a2
--- /dev/null
@@ -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