Set up configparms only if @prefix@ is in fact /usr.
* rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
+ * rpm/template (%build): Use @prefix@ instead of always /usr.
+ Set up configparms only if @prefix@ is in fact /usr.
+ * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
+
* elf/Makefile: Add missing endif.
* nss/nss_files/files-ethers.c (ntohost): Fix db key.
# 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 \
%setup
%build
-configure --prefix=/usr
-cat >configparms <<EOF
+configure --prefix=@prefix@
+if test x@prefix@ = /usr; then
+ cat >configparms <<EOF
slibdir=/lib
sysconfdir=/etc
EOF
+fi
make
%install