From 71afeead9f419f547b81c7440124efe7d27960fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Thu, 24 Feb 2005 09:01:36 +0000 Subject: multiarch_distro is defined in the Makefile --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 94b9c30..516b6f0 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ PACKAGE = multiarch-utils VERSION := $(shell rpm -q --qf %{VERSION} --specfile $(PACKAGE).spec) RELEASE := $(shell rpm -q --qf %{RELEASE} --specfile $(PACKAGE).spec) TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') +MULTIARCH_DIST := $(shell sed -n '/^%define *multiarch_distro *\([0-9]*\)/s//\1/p' $(PACKAGE).spec) RPMOPT = --clean --rmspec @@ -33,7 +34,9 @@ clean: cleandist install: -mkdir -p $(DESTDIR)/etc/rpm - install -m644 $(RPM_MACRO_FILES) $(DESTDIR)/etc/rpm/ + for f in $(RPM_MACRO_FILES); do \ + perl -pe 's/%MULTIARCH_DISTRO%/$(MULTIARCH_DIST)/' $$f > $(DESTDIR)/etc/rpm/$$f; \ + done -mkdir -p $(DESTDIR)$(prefix)/lib/rpm install -m755 $(RPM_BIN_FILES) $(DESTDIR)$(prefix)/lib/rpm/ -mkdir -p $(DESTDIR)$(bindir) -- cgit v1.2.1