aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-02 21:57:31 +0000
committerRoland McGrath <roland@gnu.org>1996-07-02 21:57:31 +0000
commit66da789f8dfa5e42ff4aa5d1ca4dab93ed0beb4f (patch)
tree5f258e16fba807e9ca092841e648051cec13340b
parentf49bc43fc0a6879424777f95eff12cb688afe89e (diff)
downloadglibc-66da789f8dfa5e42ff4aa5d1ca4dab93ed0beb4f.zip
glibc-66da789f8dfa5e42ff4aa5d1ca4dab93ed0beb4f.tar.gz
glibc-66da789f8dfa5e42ff4aa5d1ca4dab93ed0beb4f.tar.bz2
* 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@.
-rw-r--r--ChangeLog4
-rw-r--r--rpm/Makefile4
-rw-r--r--rpm/template6
3 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 931f1cd..be5ffce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
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.
diff --git a/rpm/Makefile b/rpm/Makefile
index 148a3a1..2254450 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 \
diff --git a/rpm/template b/rpm/template
index f4c2e9f..7b03ed5 100644
--- a/rpm/template
+++ b/rpm/template
@@ -10,11 +10,13 @@ Source: glibc-@VERSION@.tar.gz
%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