Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernie Innocenti <bernie@codewiz.org>2008-12-18 02:38:39 (GMT)
committer Bernie Innocenti <bernie@codewiz.org>2008-12-18 02:38:39 (GMT)
commit55ad78461bde81ece18a78cbe8592aeb747b0479 (patch)
treec22e83334bceaf576216222b3e4f3ae6a6e2d002
parent0814d71b95a7434c174aa9991c3109ba166c7093 (diff)
Default to building rpms in a mock chroot appropriate to the local system.
-rw-r--r--Makefile.package8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.package b/Makefile.package
index 6907347..8bcac42 100644
--- a/Makefile.package
+++ b/Makefile.package
@@ -4,10 +4,10 @@ COMPLETION = 0.2
RELEASE = 1
SOURCES = README AUTHORS COPYING Makefile.build $(wildcard *.c) $(wildcard *.h)
-ARCH = i386
-DIST = olpc
-DISTVER = olpc3
-BUILDROOT = fedora-9-i386
+ARCH = $(shell rpm --eval '%{_arch}')
+DIST = fedora
+DISTVER = $(shell rpm --eval '%{?dist}' | sed -e s/\.//)
+BUILDROOT = $(DIST)-$(shell rpm --eval '%{fedora}')-$(ARCH)
REQ_SUBST =
LOCAL_REPO = $(shell pwd)/rpms