Kick out the dumb defaultdocdir logic from installplatform
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 17 Oct 2008 05:11:10 +0000 (08:11 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 18 May 2009 09:26:30 +0000 (12:26 +0300)
- defaultdocdir is simply %{_datadir}/doc
(cherry picked from commit 927f384a9bc058eb6f954e93cc515cc1293fd2a3)

installplatform
platform.in

index cacbeca..9a2486d 100755 (executable)
@@ -8,12 +8,6 @@ RPMRC="${1:-rpmrc}"
 MACROS="${2:-macros}"
 PLATFORM="${3:-platform}"
 
-if grep /share/ $PLATFORM > /dev/null 2>&1 ; then
-    DEFAULTDOCDIR='%{_usr}/share/doc'
-else
-    DEFAULTDOCDIR='%{_usr}/doc'
-fi
-
 TEMPRC="/tmp/rpmrc.$$"
 cat << E_O_F > $TEMPRC
 include:       $RPMRC
@@ -167,7 +161,6 @@ for SUBST in $SUBSTS ; do
        -e "s,@RPMRC_GNU@,$RPMRC_GNU," \
        -e "s,@LIB@,$LIB," \
        -e "s,@ARCH_INSTALL_POST@,$ARCH_INSTALL_POST," \
-       -e "s,@DEFAULTDOCDIR@,$DEFAULTDOCDIR," \
        -e '/\${\w*:-/!s,\${,%{_,' \
        -e "s,@ISANAME@,$ISANAME," \
        -e "s,@ISABITS@,$ISABITS," \
index 4b496a0..9768a8a 100644 (file)
@@ -37,7 +37,7 @@
 # Deprecated misspelling, present for backwards compatibility.
 %_initrddir            %{_initddir}
 
-%_defaultdocdir                @DEFAULTDOCDIR@
+%_defaultdocdir                %{_datadir}/doc
 
 %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
        && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\