|
Panu Matilainen |
43b33f |
commit 927f384a9bc058eb6f954e93cc515cc1293fd2a3
|
|
Panu Matilainen |
43b33f |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
43b33f |
Date: Fri Oct 17 08:11:10 2008 +0300
|
|
Panu Matilainen |
43b33f |
|
|
Panu Matilainen |
43b33f |
Kick out the dumb defaultdocdir logic from installplatform
|
|
Panu Matilainen |
43b33f |
- defaultdocdir is simply %{_datadir}/doc
|
|
Panu Matilainen |
43b33f |
|
|
Panu Matilainen |
43b33f |
diff --git a/installplatform b/installplatform
|
|
Panu Matilainen |
43b33f |
index 8861df0..266d877 100755
|
|
Panu Matilainen |
43b33f |
--- a/installplatform
|
|
Panu Matilainen |
43b33f |
+++ b/installplatform
|
|
Panu Matilainen |
43b33f |
@@ -8,12 +8,6 @@ RPMRC="${1:-rpmrc}"
|
|
Panu Matilainen |
43b33f |
MACROS="${2:-macros}"
|
|
Panu Matilainen |
43b33f |
PLATFORM="${3:-platform}"
|
|
Panu Matilainen |
43b33f |
|
|
Panu Matilainen |
43b33f |
-if grep /share/ $PLATFORM > /dev/null 2>&1 ; then
|
|
Panu Matilainen |
43b33f |
- DEFAULTDOCDIR='%{_usr}/share/doc'
|
|
Panu Matilainen |
43b33f |
-else
|
|
Panu Matilainen |
43b33f |
- DEFAULTDOCDIR='%{_usr}/doc'
|
|
Panu Matilainen |
43b33f |
-fi
|
|
Panu Matilainen |
43b33f |
-
|
|
Panu Matilainen |
43b33f |
TEMPRC="/tmp/rpmrc.$$"
|
|
Panu Matilainen |
43b33f |
cat << E_O_F > $TEMPRC
|
|
Panu Matilainen |
43b33f |
include: $RPMRC
|
|
Panu Matilainen |
43b33f |
@@ -155,7 +149,6 @@ for SUBST in $SUBSTS ; do
|
|
Panu Matilainen |
43b33f |
-e "s,@RPMRC_GNU@,$RPMRC_GNU," \
|
|
Panu Matilainen |
43b33f |
-e "s,@LIB@,$LIB," \
|
|
Panu Matilainen |
43b33f |
-e "s,@ARCH_INSTALL_POST@,$ARCH_INSTALL_POST," \
|
|
Panu Matilainen |
43b33f |
- -e "s,@DEFAULTDOCDIR@,$DEFAULTDOCDIR," \
|
|
Panu Matilainen |
43b33f |
-e '/\${\w*:-/!s,\${,%{_,' \
|
|
Panu Matilainen |
43b33f |
-e "s,@ISANAME@,$ISANAME," \
|
|
Panu Matilainen |
43b33f |
-e "s,@ISABITS@,$ISABITS," \
|
|
Panu Matilainen |
43b33f |
diff --git a/platform.in b/platform.in
|
|
Panu Matilainen |
43b33f |
index 4b496a0..9768a8a 100644
|
|
Panu Matilainen |
43b33f |
--- a/platform.in
|
|
Panu Matilainen |
43b33f |
+++ b/platform.in
|
|
Panu Matilainen |
43b33f |
@@ -37,7 +37,7 @@
|
|
Panu Matilainen |
43b33f |
# Deprecated misspelling, present for backwards compatibility.
|
|
Panu Matilainen |
43b33f |
%_initrddir %{_initddir}
|
|
Panu Matilainen |
43b33f |
|
|
Panu Matilainen |
43b33f |
-%_defaultdocdir @DEFAULTDOCDIR@
|
|
Panu Matilainen |
43b33f |
+%_defaultdocdir %{_datadir}/doc
|
|
Panu Matilainen |
43b33f |
|
|
Panu Matilainen |
43b33f |
%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
|
|
Panu Matilainen |
43b33f |
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
|