about summary refs log tree commit diff
path: root/rpm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/Makefile')
-rw-r--r--rpm/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpm/Makefile b/rpm/Makefile
index 148a3a19d6..22544506f6 100644
--- a/rpm/Makefile
+++ b/rpm/Makefile
@@ -64,7 +64,9 @@ instvars = include lib bin sbin data others
 # Generate the rpm spec file for this configuration.
 $(config): template $(distinfo) Makefile
 	rm -f $@.new
-	(sed -e 's%@VERSION@%$(version)%g' $<; \
+	(sed -e 's%@VERSION@%$(version)%g' \
+	     -e 's%@prefix@%$(prefix)%g' \
+	     $<; \
 	 ($(foreach var,$(instvars),\
 	  list='$(install-$(var))'; \
 	  for f in $$list; do \