head	2.41;
access;
symbols
	rpm-4_4_8-release:2.40.2.5
	rpm-4_4_7-release:2.40.2.5
	rpm-4_4_6-release:2.40.2.1
	rpm-4_4_5-release:2.40.2.1
	rpm-4_4_4-release:2.40.2.1
	rpm-4_4_3-release:2.40.2.1
	jbj_before_tklcpatches:2.40.2.1
	rpm-4_4_2-release:2.40.2.1
	rpm-4_4_1-release:2.40.2.1
	rpm-4_4-release:2.40
	rpm-4_4:2.40.0.2
	rpm-4_3_1-start:2.38
	rpm-4_3:2.38.0.2
	rpm-4_2_1-release:2.37.2.1
	rpm-4_1_1-release:2.34.2.2
	rpm-4_2-release:2.37
	rpm-4_2:2.37.0.2
	rpm-4_1-release:2.34
	rpm-4_1:2.34.0.2
	rpm-4_0_4-release:2.23.2.8
	jbj-before-beecrypt:2.23.2.7
	rpm-4_0_3-release:2.23.2.7
	jbj_b4_rollback:2.23.2.7
	rpm-4_0_2-release:2.23.2.2
	rpm-4_0_1-release:2.23.2.2
	rpm-3_0_6-release:2.3.2.2.2.1
	rpm-4_0-release:2.23.2.1
	rpm-3_0_6:2.3.2.2.2.1
	rpm-4_0:2.23.0.2
	rpm-3_0_5:2.3.2.2.0.2
	jbj_sparc64:2.9.0.2
	rpm-3_0_4:2.3.0.2;
locks; strict;
comment	@# @;


2.41
date	2005.02.21.15.23.30;	author jbj;	state Exp;
branches;
next	2.40;

2.40
date	2004.06.14.16.50.14;	author arekm;	state Exp;
branches
	2.40.2.1;
next	2.39;

2.39
date	2004.03.28.02.41.32;	author arekm;	state Exp;
branches;
next	2.38;

2.38
date	2003.12.11.19.09.59;	author jbj;	state Exp;
branches;
next	2.37;

2.37
date	2003.01.06.19.47.33;	author jbj;	state Exp;
branches
	2.37.2.1;
next	2.36;

2.36
date	2002.10.11.17.22.50;	author sopwith;	state Exp;
branches;
next	2.35;

2.35
date	2002.10.09.19.13.31;	author jbj;	state Exp;
branches;
next	2.34;

2.34
date	2002.07.30.17.07.39;	author jbj;	state Exp;
branches
	2.34.2.1;
next	2.33;

2.33
date	2002.07.25.00.13.25;	author jbj;	state Exp;
branches;
next	2.32;

2.32
date	2002.06.20.02.19.21;	author jbj;	state Exp;
branches;
next	2.31;

2.31
date	2002.06.09.22.15.16;	author jbj;	state Exp;
branches;
next	2.30;

2.30
date	2002.01.23.00.58.47;	author jbj;	state Exp;
branches;
next	2.29;

2.29
date	2001.08.15.14.03.03;	author jbj;	state Exp;
branches;
next	2.28;

2.28
date	2001.07.31.18.13.23;	author jbj;	state Exp;
branches;
next	2.27;

2.27
date	2001.06.25.20.01.42;	author jbj;	state Exp;
branches;
next	2.26;

2.26
date	2001.03.22.23.39.01;	author jbj;	state Exp;
branches;
next	2.25;

2.25
date	2001.01.17.16.00.36;	author jbj;	state Exp;
branches;
next	2.24;

2.24
date	2000.09.14.11.42.48;	author jbj;	state Exp;
branches;
next	2.23;

2.23
date	2000.07.11.16.12.47;	author jbj;	state Exp;
branches
	2.23.2.1;
next	2.22;

2.22
date	2000.07.05.20.39.15;	author jbj;	state Exp;
branches;
next	2.21;

2.21
date	2000.06.13.09.12.39;	author jbj;	state Exp;
branches;
next	2.20;

2.20
date	2000.06.01.13.43.05;	author jbj;	state Exp;
branches;
next	2.19;

2.19
date	2000.06.01.12.54.06;	author jbj;	state Exp;
branches;
next	2.18;

2.18
date	2000.06.01.06.26.09;	author jbj;	state Exp;
branches;
next	2.17;

2.17
date	2000.06.01.05.36.14;	author jbj;	state Exp;
branches;
next	2.16;

2.16
date	2000.06.01.02.01.02;	author jbj;	state Exp;
branches;
next	2.15;

2.15
date	2000.06.01.02.00.12;	author jbj;	state Exp;
branches;
next	2.14;

2.14
date	2000.06.01.00.54.36;	author jbj;	state Exp;
branches;
next	2.13;

2.13
date	2000.05.31.17.39.01;	author jbj;	state Exp;
branches;
next	2.12;

2.12
date	2000.05.31.15.57.22;	author jbj;	state Exp;
branches;
next	2.11;

2.11
date	2000.05.31.15.53.53;	author jbj;	state Exp;
branches;
next	2.10;

2.10
date	2000.05.31.15.45.35;	author jbj;	state Exp;
branches;
next	2.9;

2.9
date	2000.05.31.09.04.55;	author jbj;	state Exp;
branches
	2.9.2.1;
next	2.8;

2.8
date	2000.05.13.15.52.38;	author jbj;	state Exp;
branches;
next	2.7;

2.7
date	2000.05.02.17.30.49;	author jbj;	state Exp;
branches;
next	2.6;

2.6
date	2000.05.02.16.09.15;	author jbj;	state Exp;
branches;
next	2.5;

2.5
date	2000.05.01.17.50.35;	author jbj;	state Exp;
branches;
next	2.4;

2.4
date	2000.04.19.16.03.49;	author jbj;	state Exp;
branches;
next	2.3;

2.3
date	2000.02.27.18.52.30;	author jbj;	state Exp;
branches
	2.3.2.1;
next	2.2;

2.2
date	2000.02.25.17.30.28;	author jbj;	state Exp;
branches;
next	2.1;

2.1
date	2000.02.25.16.29.44;	author jbj;	state Exp;
branches;
next	;

2.3.2.1
date	2000.05.01.15.38.39;	author jbj;	state Exp;
branches;
next	2.3.2.2;

2.3.2.2
date	2000.06.19.01.07.56;	author jbj;	state Exp;
branches
	2.3.2.2.2.1;
next	;

2.3.2.2.2.1
date	2000.09.13.17.55.15;	author jbj;	state Exp;
branches;
next	;

2.9.2.1
date	2000.05.31.13.56.06;	author jbj;	state Exp;
branches;
next	2.9.2.2;

2.9.2.2
date	2000.05.31.14.06.40;	author jbj;	state Exp;
branches;
next	;

2.23.2.1
date	2000.09.13.18.03.46;	author jbj;	state Exp;
branches;
next	2.23.2.2;

2.23.2.2
date	2001.01.17.17.32.42;	author jbj;	state Exp;
branches;
next	2.23.2.3;

2.23.2.3
date	2001.03.22.17.33.58;	author jbj;	state Exp;
branches;
next	2.23.2.4;

2.23.2.4
date	2001.06.22.18.22.33;	author jbj;	state Exp;
branches;
next	2.23.2.5;

2.23.2.5
date	2001.06.25.17.44.27;	author jbj;	state Exp;
branches;
next	2.23.2.6;

2.23.2.6
date	2001.07.31.18.07.57;	author jbj;	state Exp;
branches;
next	2.23.2.7;

2.23.2.7
date	2001.08.15.14.00.27;	author jbj;	state Exp;
branches;
next	2.23.2.8;

2.23.2.8
date	2002.01.22.20.46.07;	author jbj;	state Exp;
branches;
next	2.23.2.9;

2.23.2.9
date	2002.06.09.14.34.40;	author jbj;	state Exp;
branches;
next	2.23.2.10;

2.23.2.10
date	2002.06.09.20.38.12;	author jbj;	state Exp;
branches;
next	2.23.2.11;

2.23.2.11
date	2002.06.09.22.19.15;	author jbj;	state Exp;
branches;
next	;

2.34.2.1
date	2002.10.09.19.13.35;	author jbj;	state Exp;
branches;
next	2.34.2.2;

2.34.2.2
date	2002.10.11.17.23.27;	author sopwith;	state Exp;
branches;
next	;

2.37.2.1
date	2003.09.25.15.58.39;	author jbj;	state Exp;
branches;
next	;

2.40.2.1
date	2005.01.25.05.24.40;	author jbj;	state Exp;
branches;
next	2.40.2.2;

2.40.2.2
date	2006.07.07.16.53.42;	author jbj;	state Exp;
branches;
next	2.40.2.3;

2.40.2.3
date	2006.07.27.02.48.23;	author jbj;	state Exp;
branches;
next	2.40.2.4;

2.40.2.4
date	2006.08.07.19.22.26;	author jbj;	state Exp;
branches;
next	2.40.2.5;

2.40.2.5
date	2006.10.08.21.41.40;	author jbj;	state Exp;
branches;
next	;


desc
@@


2.41
log
@Blueprint against rpm-4.4.1 changes.
@
text
@#!/usr/bin/env bash

DESTDIR="${DESTDIR:-/}"
pkglibdir="${pkglibdir:-/usr/lib/rpm}"

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
macrofiles:	$MACROS
E_O_F

RPM="./rpm --rcfile $TEMPRC"

canonarch_sed='s_i.86_i386_;s_pentium[34]_i386_;s_athlon_i386_;s_sparc[^-]*_sparc_;s_alpha[^-]*_alpha_;s_\(powerpc\|ppc\)[^-]*_ppc_'
arch="`$RPM --eval '%{_arch}'|sed -e "$canonarch_sed"`"
VENDOR="`$RPM --eval '%{_vendor}'`"
OS="`$RPM --eval '%{_os}'`"
RPMRC_GNU="`$RPM --eval '%{_gnu}'`"
target_platform="`$RPM --eval '%{?_gnu:%undefine _gnu}%{_target_platform}'|sed -e "$canonarch_sed"`"
target="`$RPM --eval '%{_target}'|sed -e "$canonarch_sed"`"

case "$arch" in
  i[3456]86|pentium[34]|athlon) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_ s_i386_pentium3_ s_i386_pentium4_ s_i386_athlon_' ;;
  alpha*) SUBSTS='s_alpha_alpha_ s_alpha_alphaev5_ s_alpha_alphaev56_ s_alpha_alphapca56_ s_alpha_alphaev6_ s_alpha_alphaev67_' ;;
  sparc*) SUBSTS='s_sparc\(64\|v9\)_sparc_ s_sparc64_sparcv9_;s_sparc\([^v]\|$\)_sparcv9\1_ s_sparcv9_sparc64_;s_sparc\([^6]\|$\)_sparc64\1_' ;;
  powerpc*|ppc*) SUBSTS='s_ppc64_ppc_ s_ppc\([^6ip]\|$\)_ppc64\1_ s_ppc\([^6ip]\|$\)_ppciseries_ s_ppc\([^6ip]\|$\)_ppcpseries_ s_ppc\([^6ip]\|$\)_ppc64iseries_ s_ppc\([^6ip]\|$\)_ppc64pseries_' ;;
  s390*) SUBSTS='s_s390x_s390_ s_s390\([^x]\|$\)_s390x\1_' ;;
  *) SUBSTS=y___ ;;
esac

for SUBST in $SUBSTS ; do
  ARCH=`echo $arch | sed -e $SUBST`
  TARGET_PLATFORM=`echo $target_platform | sed -e $SUBST`
  TARGET=`echo $target | sed -e $SUBST`
  LIB=lib

  PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${OS}"

  [ -d $PPD ] || mkdir $PPD

  RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
  RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
  case $RPMRC_OPTFLAGS in
  *-g*) ;;
  *) RPMRC_OPTFLAGS="$RPMRC_OPTFLAGS -g" ;;
  esac

  ARCH_INSTALL_POST='%{nil}'
  MULTILIBNO=
  case "${ARCH}-${OS}" in
    sparc-linux) MULTILIBNO=1 ;;
    sparcv9-linux) MULTILIBNO=1 ;;
    sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux; LIB=lib64; MULTILIBNO=2 ;;
    s390-linux) MULTILIBNO=1 ;;
    s390x-linux) LIB=lib64; MULTILIBNO=2 ;;
    ppc-linux) MULTILIBNO=1 ;;
    ppc64-linux) LIB=lib64; MULTILIBNO=2 ;;
    i?86-linux|pentium?-linux|athlon-linux) MULTILIBNO=1 ;;
    x86_64-linux|amd64-linux|ia32e-linux) LIB=lib64; MULTILIBNO=2 ;;
  esac

  if [ -n "$MULTILIBNO" ]; then
    MULTILIBSED='-e /^@@MULTILIB/d -e s,@@MULTILIBNO@@,'$MULTILIBNO,
  else
    MULTILIBSED='-e /^@@MULTILIBSTART@@/,/^@@MULTILIBEND@@/d'
  fi

  case $VENDOR in
  yellowdog)
    VENDORSED='-e s,^@@yellowdog@@,,'
    ;;
  pld)
    VENDORSED='-e s,^@@pld@@,,'
    RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e "s/ -g/ /"`"
    ;;
  mandrake)
    VENDORSED='-e s,^@@mandrake@@,,'
    RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e s/i386/i686/`"
    ;;
  conectiva)
    VENDORSED='-e s,^@@conectiva@@,,'
    ;;
  redhat)
    VENDORSED='-e s,^@@redhat@@,,'
    ;;
  apple)
    VENDORSED='-e s,^@@apple@@,,'
    ;;
  esac

  cat $PLATFORM \
  | sed -e "s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS," \
	-e "s,@@RPMRC_ARCH@@,$ARCH," \
	-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,\${,%{_,' \
	$MULTILIBSED \
	$VENDORSED \
  | grep -v '^@@' \
  > ${PPD}/macros

done

{ cd ${DESTDIR}/${pkglibdir}
  [ -L noarch-${OS} ] && rm -f noarch-${OS} 2>/dev/null
  mkdir -p noarch-${OS}
  sed -e "/^%_arch/s,${arch},noarch," ${arch}-${OS}/macros | grep -v '^%optflags' > noarch-${OS}/macros
#  [ -d ${VENDOR} ] || mkdir ${VENDOR}
#  for i in brp-* find-lang.sh find-provides find-requires perl.prov perl.req
#  do
#    sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < $i > ${VENDOR}/$i
#    chmod +x ${VENDOR}/$i
#  done
##  chmod -x ${VENDOR}/perl.req
#  echo "macrofiles:     /usr/lib/rpm/macros:/usr/lib/rpm/${VENDOR}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.cdb" > ${VENDOR}/rpmrc
#  sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < ${arch}-${OS}/macros | grep -v '^%(_arch|optflags)' > ${VENDOR}/macros
}

rm $TEMPRC
@


2.40
log
@Do amd64-linux|ia32e-linux, too.
@
text
@d96 3
@


2.40.2.1
log
@macosx/opendarwin hackery, take 1.
@
text
@a95 3
  apple)
    VENDORSED='-e s,^@@apple@@,,'
    ;;
@


2.40.2.2
log
@- remove SELinux context verification (#193488).
@
text
@a37 1
  x86_64|amd64|ia32e) SUBSTS='s_x86_64_ia32e_ s_x86_64_amd64_' ;;
@


2.40.2.3
log
@Use commas, not underscores, for x86_64 substitutes.
@
text
@d38 1
a38 1
  x86_64|amd64|ia32e) SUBSTS='s,x86_64,ia32e, s,x86_64,amd64,' ;;
@


2.40.2.4
log
@Automagically configure "crux" linux.
@
text
@a99 3
  crux)
    VENDORSED='-e s,^@@crux@@,,'
    ;;
@


2.40.2.5
log
@- merge install/erase interface flags.
- eliminate RPMTRANS_FLAG_REVERSE.
- split rpmtsCheck() and rpmtsOrder() flags from transFlags -> depFlags.
- add --noparentdirs and --nolinktos rpmtsCheck() disablers.
- add --noupgrade/--norequires/--noconflicts/--noobsoletes disablers.
@
text
@d25 6
a30 6
arch="`$RPM --eval '%{_arch}' 2>/dev/null |sed -e "$canonarch_sed"`"
VENDOR="`$RPM --eval '%{_vendor}' 2>/dev/null `"
OS="`$RPM --eval '%{_os}' 2>/dev/null `"
RPMRC_GNU="`$RPM --eval '%{_gnu}' 2>/dev/null `"
target_platform="`$RPM --eval '%{?_gnu:%undefine _gnu}%{_target_platform}' 2>/dev/null |sed -e "$canonarch_sed"`"
target="`$RPM --eval '%{_target}' 2>/dev/null |sed -e "$canonarch_sed"`"
@


2.39
log
@pentium3/pentium4 support by Pawe Sikora <pluto/at/pld-linux.org>.
Modified Files: installplatform macros.in rpmrc.in lib/rpmrc.c lib/rpmts.c
@
text
@d69 1
a69 1
    x86_64-linux) LIB=lib64; MULTILIBNO=2 ;;
@


2.38
log
@- only internal Berkeley db from now on.
- revive "make dist".
@
text
@d24 1
a24 1
canonarch_sed='s_i.86_i386_;s_athlon_i386_;s_sparc[^-]*_sparc_;s_alpha[^-]*_alpha_;s_\(powerpc\|ppc\)[^-]*_ppc_'
d33 1
a33 1
  i[3456]86|athlon) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_ s_i386_athlon_' ;;
d68 1
a68 1
    i?86-linux|athlon-linux) MULTILIBNO=1 ;;
@


2.37
log
@- portabilitly: solaris fixes.
@
text
@d36 1
a36 1
  powerpc*|ppc*) SUBSTS='s_ppc64_ppc_ s_ppc\([^6]\|$\)_ppc64\1_' ;;
@


2.37.2.1
log
@Sanity.
@
text
@d36 1
a36 1
  powerpc*|ppc*) SUBSTS='s_ppc64_ppc_ s_ppc\([^6ip]\|$\)_ppc64\1_ s_ppc\([^6ip]\|$\)_ppciseries_ s_ppc\([^6ip]\|$\)_ppcpseries_ s_ppc\([^6ip]\|$\)_ppc64iseries_ s_ppc\([^6ip]\|$\)_ppc64pseries_' ;;
@


2.36
log
@Fix s390 typo
@
text
@d1 1
a1 1
#!/bin/sh
@


2.35
log
@Add multilib platforms.
@
text
@d37 1
a37 1
  s390*) SUBST='s_s390x_s390_ s_s390\([^x]\|$\)_s390x\1_' ;;
@


2.34
log
@installplatform clean up, add athlon (PLD).
@
text
@d37 1
d64 6
@


2.34.2.1
log
@Add multilib platforms.
@
text
@a36 1
  s390*) SUBST='s_s390x_s390_ s_s390\([^x]\|$\)_s390x\1_' ;;
a62 6
    s390-linux) MULTILIBNO=1 ;;
    s390x-linux) LIB=lib64; MULTILIBNO=2 ;;
    ppc-linux) MULTILIBNO=1 ;;
    ppc64-linux) LIB=lib64; MULTILIBNO=2 ;;
    i?86-linux|athlon-linux) MULTILIBNO=1 ;;
    x86_64-linux) LIB=lib64; MULTILIBNO=2 ;;
@


2.34.2.2
log
@Fix s390 typo
@
text
@d37 1
a37 1
  s390*) SUBSTS='s_s390x_s390_ s_s390\([^x]\|$\)_s390x\1_' ;;
@


2.33
log
@- python: add ts.hdrCheck(), ts.rebuildDB() methods.
- python: iterating on an ts object returns transaction elements now.
- add yellowdog as vendor.
@
text
@d24 2
a25 1
arch="`$RPM --eval '%{_arch}'`"
d29 2
a30 2
target_platform="`$RPM --eval '%{?_gnu:%undefine _gnu}%{_target_platform}'`"
target="`$RPM --eval '%{_target}'`"
d33 1
a33 1
  i[3456]86) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_ s_i386_athlon_' ;;
a38 1
base_arch=`echo $arch | sed -e 's_i?86_i386_;s_sparc.*_sparc_;s_alpha.*_alpha_;s_\(powerpc\|ppc\).*_ppc_'`
d77 1
d93 1
a93 1
	-e "s,@@RPMRC_ARCH@@,$base_arch," \
d98 1
a98 1
	-e '/FLAGS:-/!s,\${,%{_,' \
@


2.32
log
@- make sure that rpm can verify prelinked shared libraries.
- don't install /usr/lib/rpm/redhat per-vendor configuration anymore.
@
text
@d72 3
@


2.31
log
@Sanity.
@
text
@d106 9
a114 9
  [ -d ${VENDOR} ] || mkdir ${VENDOR}
  for i in brp-* find-lang.sh find-provides find-requires perl.prov perl.req
  do
    sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < $i > ${VENDOR}/$i
    chmod +x ${VENDOR}/$i
  done
#  chmod -x ${VENDOR}/perl.req
  echo "macrofiles:     /usr/lib/rpm/macros:/usr/lib/rpm/${VENDOR}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.cdb" > ${VENDOR}/rpmrc
  sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < ${arch}-${OS}/macros | grep -v '^%(_arch|optflags)' > ${VENDOR}/macros
@


2.30
log
@- turn on auto-generated perl requirements (#58519, #58536, #58537).
Sanity.
@
text
@a30 5
rm -f ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS}
ln -s ${arch}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS}
rm -f ${DESTDIR}/${pkglibdir}/noarch-${OS}
ln -s ${arch}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${OS}

d46 1
a46 1
  PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${VENDOR}-${OS}"
d100 1
a100 10
  #
  # Better try to create these too until the smoke clears. Yuck.
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET}" ] || {
    rm -f ${DESTDIR}/${pkglibdir}/${TARGET}
    ln -s ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET}
  }
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET_PLATFORM}" ] || {
    rm -f ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM}
    ln -s ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM}
  }
d102 14
a115 1
done
@


2.29
log
@- always use dl size in regionSwab() return.
- ppc: revert ppcmac to ppc.
- ppc: autoconf test for va_copy.
@
text
@d40 1
a40 1
  powerpc*|ppc*) SUBSTS='s_\(powerpc\|ppc\)_ppc_' ;;
@


2.28
log
@- add support for mips (#49283).
- add __as, _build_arch, and __cxx macros (#36662, #36663, #49280).
- detailed build package error messages.
@
text
@d27 2
a28 1
target_platform="`$RPM --eval '%{_target_platform}'`"
d37 1
a37 1
  i[3456]86) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_' ;;
d40 1
a40 1
  powerpc*|ppc*) 's_\(powerpc\|ppc\)_ppc_' ;;
d95 1
@


2.27
log
@Yet another patial harlink set fix.
@
text
@d39 1
d42 1
a42 1
base_arch=`echo $arch | sed -e 's_i?86_i386_;s_sparc.*_sparc_;s_alpha.*_alpha_'`
@


2.26
log
@- python: strip header regions during unload.
- add -g to optflags in per-platform config.
- permit confgure/compile with db3-3.2.9.
- permit manifest files as args to query/verify modes.
@
text
@d96 1
a96 1
	-e 's,\${,%{_,' \
@


2.25
log
@- 1st crack at Mandrake specific per-platform macros.
@
text
@a52 1
#  RPMRC_OPTFLAGS="`$RPM --target $TARGET --eval '%{optflags}'`"
d55 4
@


2.24
log
@Revert rpmrc excision for now.
rpmio: add rpmlog.c/rpmlog.h.
@
text
@d71 18
a88 2
  cat $PLATFORM | \
    sed -e "s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS," \
d95 2
@


2.23
log
@- fix: set multilibno on sparc per-platform config.
@
text
@d37 1
d41 1
a41 1
base_arch=`echo $arch | sed -e 's_i?86_i386_;s_sparc.*_sparc_'`
@


2.23.2.1
log
@- add alpha* architectures.
@
text
@a36 1
  alpha*) SUBSTS='s_alpha_alpha_ s_alpha_alphaev5_ s_alpha_alphaev56_ s_alpha_alphapca56_ s_alpha_alphaev6_ s_alpha_alphaev67_' ;;
d40 1
a40 1
base_arch=`echo $arch | sed -e 's_i?86_i386_;s_sparc.*_sparc_;s_alpha.*_alpha_'`
@


2.23.2.2
log
@Sync with rpm-4.0.2.
@
text
@d71 2
a72 18
  case $VENDOR in
  pld)
    VENDORSED='-e s,^@@pld@@,,'
    ;;
  mandrake)
    VENDORSED='-e s,^@@mandrake@@,,'
    RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e s/i386/i686/`"
    ;;
  conectiva)
    VENDORSED='-e s,^@@conectiva@@,,'
    ;;
  redhat)
    VENDORSED='-e s,^@@redhat@@,,'
    ;;
  esac

  cat $PLATFORM \
  | sed -e "s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS," \
a78 2
	$VENDORSED \
  | grep -v '^@@' \
@


2.23.2.3
log
@- python: strip header regions during unload.
- add -g to optflags in per-platform config.
- permit confgure/compile with db3-3.2.9.
@
text
@d53 1
a55 4
  case $RPMRC_OPTFLAGS in
  *-g*) ;;
  *) RPMRC_OPTFLAGS="$RPMRC_OPTFLAGS -g" ;;
  esac
@


2.23.2.4
log
@- fix: parameterized macros with massive mumber of options need
  "optind = 1" "Dmitry V. Levin" <ldv@@alt-linux.org>.
- add athlon per-platform configuration.
- remove executable bit to disable autogenerated perl requires until
  perl provides can be vetted.
- disable per-platform %%configure use of %%_gnu until libtool package
  stabilizes.
@
text
@d27 1
a27 2
RPMRC_GNU="`$RPM --eval '%{_gnu}'`"
target_platform="`$RPM --eval '%{?_gnu:%undefine _gnu}%{_target_platform}'`"
d36 1
a36 1
  i[3456]86) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_ s_i386_athlon_' ;;
a92 1
	-e "s,@@RPMRC_GNU@@,$RPMRC_GNU," \
@


2.23.2.5
log
@- fix: permit partially enumerated hardlink file sets during build.
- fix: resurrect rpm signature modes.
@
text
@d98 1
a98 1
	-e '/FLAGS:-/!s,\${,%{_,' \
@


2.23.2.6
log
@- add support for mips (#49283).
- add __as, _build_arch, and __cxx macros (#36662, #36663, #49280).
- detailed build package error messages.
@
text
@a39 1
  powerpc*|ppc*) 's_\(powerpc\|ppc\)_ppc_' ;;
d42 1
a42 1
base_arch=`echo $arch | sed -e 's_i?86_i386_;s_sparc.*_sparc_;s_alpha.*_alpha_;s_\(powerpc\|ppc\).*_ppc_'`
@


2.23.2.7
log
@- always use dl size in regionSwab() return.
- ppc: revert ppcmac to ppc.
- ppc: autoconf test for va_copy.
@
text
@d40 1
a40 1
  powerpc*|ppc*) SUBSTS='s_\(powerpc\|ppc\)_ppc_' ;;
@


2.23.2.8
log
@- fix: query format qualifiers needed header.c merge.
- ppc64 arch added (#58634,#58636).
@
text
@d40 1
a40 1
  powerpc*|ppc*) SUBSTS='s_ppc64_ppc_ s_ppc\([^6]\|$\)_ppc64\1_' ;;
@


2.23.2.9
log
@- add /usr/lib/rpm/redhat/* per-vendor configuration.
doxygen warnings removed.
@
text
@d31 5
d51 1
a51 1
  PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${OS}"
a106 1
  AODIR=${DESTDIR}/${pkglibdir}/${ARCH}-${VENDOR}-${OS}
d108 2
a109 5
    [ -L ${AODIR} ] && {
	rm -f ${AODIR}
	mkdir ${AODIR}
    }
    cp ${PPD}/macros ${AODIR}/macros
d112 2
a113 5
    [ -L ${AODIR} ] && {
	rm -f ${AODIR}
	mkdir ${AODIR}
    }
    cp ${PPD}/macros ${AODIR}/macros
a116 16

{ cd ${DESTDIR}/${pkglibdir}
  [ ! -d noarch-${OS} -o -L noarch-${OS} ] && rm -f noarch-${OS} 2>/dev/null
  mkdir -p noarch-${OS}
  cp ${ARCH}-${OS}/macros noarch-${OS}/macros
  [ ! -d noarch-${VENDOR}-${OS} -o -L noarch-${VENDOR}-${OS} ] && rm -f noarch-${VENDOR}-${OS} 2>/dev/null
  mkdir -p noarch-${VENDOR}-${OS}
  cp ${ARCH}-${VENDOR}-${OS}/macros noarch-${VENDOR}-${OS}/macros
  [ -d ${VENDOR} ] || mkdir ${VENDOR}
  for i in brp-* find-lang.sh find-provides find-requires perl.prov perl.req
  do
    sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < $i > ${VENDOR}/$i
  done
  echo "macrofiles:     /usr/lib/rpm/macros:/usr/lib/rpm/%{_target_platform}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.db1:/etc/rpm/macros.cdb:/etc/rpm/macros:/etc/rpm/%{_target_platform}/macros:~/.rpmmacros" > ${VENDOR}/rpmrc
  sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < ${ARCH}-${VENDOR}-${OS}/macros | grep -v '^%optflags' > ${VENDOR}/macros
}
@


2.23.2.10
log
@Remove sprawl of *-redhat-* per-platform configuration hierarchy.
@
text
@d100 18
d121 1
a121 2

  [ -L noarch-${OS} ] && rm -f noarch-${OS} 2>/dev/null
d124 3
a126 1

d132 2
a133 3
  chmod -x ${VENDOR}/perl.req
  echo "macrofiles:     /usr/lib/rpm/macros:/usr/lib/rpm/${VENDOR}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.db1:/etc/rpm/macros.cdb" > ${VENDOR}/rpmrc
  sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < ${arch}-${OS}/macros | grep -v '^%optflags' > ${VENDOR}/macros
@


2.23.2.11
log
@Sanity.
@
text
@d103 1
d106 2
a107 1
  sed -e "/^%_arch/s,${arch},noarch," ${arch}-${OS}/macros | grep -v '^%optflags' > noarch-${OS}/macros
a111 1
    chmod +x ${VENDOR}/$i
d114 2
a115 2
  echo "macrofiles:     /usr/lib/rpm/macros:/usr/lib/rpm/${VENDOR}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.cdb" > ${VENDOR}/rpmrc
  sed -e "s,/usr/lib/rpm,/usr/lib/rpm/${VENDOR},g" < ${arch}-${OS}/macros | grep -v '^%(_arch|optflags)' > ${VENDOR}/macros
@


2.22
log
@- change optflags for i386.
- multilib patch, take 1.
@
text
@a58 1
    sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux; LIB=lib64 ;;
d64 1
a64 1
  if [ "$MULTILIBNO" ]; then
@


2.21
log
@Solaris per-platform macros.
@
text
@d57 1
d60 3
d65 6
d78 1
@


2.20
log
@Use %{_usr} not %{_prefix} for %_defaultdocdir path.
@
text
@d30 4
a33 2
ln -sf ${arch}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS}
ln -sf ${arch}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${OS}
d72 8
a79 2
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET}
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET_PLATFORM}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM}
@


2.19
log
@Get per-platform optflags correct.
@
text
@d11 1
a11 1
    DEFAULTDOCDIR='%{_prefix}/share/doc'
d13 1
a13 1
    DEFAULTDOCDIR='%{_prefix}/doc'
@


2.18
log
@Restore value of %_arch in per-platform macros.
@
text
@d35 1
a35 1
  sparc*) SUBSTS='s_sparc64_sparc_ s_sparc\([^6]\|$\)_sparc64\1_' ;;
d38 1
d50 2
a51 1
  RPMRC_OPTFLAGS="`$RPM --eval '%{optflags}'`"
d61 1
a61 1
	-e "s,@@RPMRC_ARCH@@,$arch," \
a71 3

  [ "$ARCH" = sparc ] && ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/sparcv9-${OS}
  [ "$ARCH" = sparc ] && ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/sparcv9-${VENDOR}-${OS}
@


2.17
log
@Move noLang to rpmlib.
Add defaultdocdir to per-platform macros.
@
text
@d59 1
a59 1
	-e "s,@@RPMRC_ARCH@@,$ARCH," \
@


2.16
log
@Create vendor-less noarch link as well.
@
text
@d10 6
d62 1
@


2.15
log
@Hack to pass build args correctly.
Create noarch symlink to canonical arch directory.
@
text
@d25 1
@


2.14
log
@Add athlon rpmrc config.
Add sparcv9 per-platform config.
@
text
@d24 2
a66 2

ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS}
@


2.13
log
@Duplicate query aliases onto rpmq.
@
text
@d61 3
@


2.12
log
@Typo.
@
text
@d26 1
a26 1
  sparc*) SUBSTS='s_sparc64_sparc_ s_sparc\([^6]\)_sparc64\1_' ;;
d30 1
a30 1
for SUBST in $SUBSTS 's_^[^-]*-_noarch-_' ; do
d62 2
@


2.11
log
@Add noarch as well.
@
text
@d30 1
a30 1
for SUBST in $SUBSTS 's_^[^-]*-_noarch_' ; do
@


2.10
log
@Create i[3456]86 platform directories.
@
text
@d25 1
a25 1
  i[3456]86) SUBSTS='s_i386_i486_ s_i386_i586_ s_i386_i686_' ;;
d30 1
a30 1
for SUBST in $SUBSTS; do
@


2.9
log
@installplatform: quote ars passed to sed.
@
text
@d25 1
@


2.9.2.1
log
@Patch Q1 from Jakub.
@
text
@d25 1
a25 1
  sparc*) SUBSTS='s_sparc64_sparc_ s_sparc\([^6]\|\)_sparc64\1_' ;;
a58 3

  [ "$ARCH" = sparc ] && ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/sparcv9-${OS}
  [ "$ARCH" = sparc ] && ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/sparcv9-${VENDOR}-${OS}
@


2.9.2.2
log
@Patch Q2 from Jakub.
@
text
@a42 1
  MULTILIBNO=
d44 1
a44 2
    sparc-linux) MULTILIBNO=1 ;;
    sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux; LIB=lib64 ; MULTILIBNO=2 ;;
a46 6
  if [ "$MULTILIBNO" ]; then
    MULTILIBSED='-e /^@@MULTILIB/d -e s,@@MULTILIBNO@@,'$MULTILIBNO,
  else
    MULTILIBSED='-e /^@@MULTILIBSTART@@/,/^@@MULTILIBEND@@/d'
  fi

a52 1
	$MULTILIBSED \
@


2.8
log
@fix: sparc64 per-platform directory shouldn't be sparc64linux.
@
text
@d48 4
a51 4
    sed -e s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS, \
	-e s,@@RPMRC_ARCH@@,$ARCH, \
	-e s,@@LIB@@,$LIB, \
	-e s,@@ARCH_INSTALL_POST@@,$ARCH_INSTALL_POST, \
@


2.7
log
@installplatform: typo.
@
text
@d25 1
a25 1
  sparc*) SUBSTS="s_sparc64_sparc_ s_sparc[^6]_sparc64_" ;;
@


2.6
log
@fix: don't generate sparc6464 names when creating platform directories.
@
text
@d26 1
a26 1
  *) SUBST=y___ ;;
@


2.5
log
@Rename db0.c to db1.c, resurrect db2.c (from db3.c).
Add ia64 and sparc64 changes.
rpm.spec: add per-platform sub-directories.
Add rpmdbSync to API.
installplatform: pass LIB=lib64 on sparc64.
db3.c: Add nodbsync, lockdbfd, debug dbi configuration.
db3.c: don't check dbi_mode when deciding on DB_WRITECURSOR.
@
text
@d25 1
a25 1
  sparc*) SUBSTS="s_sparc64_sparc_ s_sparc_sparc64_" ;;
@


2.4
log
@Hi!

I'd like to start building sparc64 packages (eventhough the install rule
details are yet to be designed - IMHO if 64bit SPARC userland is going into
7.0 we should rebuild all packages into 64bit in the next months or so to
have time to chase bugs etc.), and this is about what I need.
Basically I'd like to have %{_lib} to stand for the last part (normally
"lib") of dirname for directories like /lib, /usr/lib, /usr/X11R6/lib
because on sparc64-linux they are /lib64, /usr/lib64, /usr/X11R6/lib64 (and
on Solaris /lib/sparcv9, /usr/lib/sparcv9 etc.), so that one can use things
like
/usr/%{_lib} in the spec files.
Another thing which I need is an arch specific build root policy.
This patch does a few things:
1) add installplatform into EXTRA_DIST files, so that it is actually invoked
   during rpm build not from CVS
2) Define %_lib lib and let target specific macros override it
3) Split __spec_install_post into __arch_install_post and __os_install_post,
   --buildpolicy now specifies the __os_install_post part only. spec files
   can still override the __arch_install_post if the want to.
   brp-sparc64-linux is used to move 64bit libraries to */lib64 directories
   from */lib directories if make install of some package left them there.
4) Change installplatform so that on sparc* it creates both sparc and
   sparc64 target macro dirs (/usr/lib/rpm/sparc{,64}-redhat-linux in
   sparc*-redhat-linux case).
@
text
@d44 1
a44 1
    sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux ;;
@


2.3
log
@Solaris2.6 portability.
@
text
@d18 1
a18 1
ARCH="`$RPM --eval '%{_arch}'`"
d21 2
a22 2
TARGET_PLATFORM="`$RPM --eval '%{_target_platform}'`"
TARGET="`$RPM --eval '%{_target}'`"
d24 35
a58 1
PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${VENDOR}-${OS}"
d60 1
a60 14
[ -d $PPD ] || mkdir $PPD

RPMRC_OPTFLAGS="`$RPM --eval '%{optflags}'`"
RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"


cat $PLATFORM | \
  sed -e s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS, -e 's,\${,%{_,' \
> ${PPD}/macros

#
# Better try to create these too until the smoke clears. Yuck.
[ "${ARCH}-${VENDOR}-${OS}" = "${TARGET}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET}
[ "${ARCH}-${VENDOR}-${OS}" = "${TARGET_PLATFORM}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM}
@


2.3.2.1
log
@Sparc64 changes.
@
text
@d18 1
a18 1
arch="`$RPM --eval '%{_arch}'`"
d21 2
a22 2
target_platform="`$RPM --eval '%{_target_platform}'`"
target="`$RPM --eval '%{_target}'`"
d24 1
a24 35
case "$arch" in
  sparc*) SUBSTS="s_sparc64_sparc_ s_sparc_sparc64_" ;;
  *) SUBST=y___ ;;
esac

for SUBST in $SUBSTS; do
  ARCH=`echo $arch | sed -e $SUBST`
  TARGET_PLATFORM=`echo $target_platform | sed -e $SUBST`
  TARGET=`echo $target | sed -e $SUBST`
  LIB=lib

  PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${VENDOR}-${OS}"

  [ -d $PPD ] || mkdir $PPD

  RPMRC_OPTFLAGS="`$RPM --eval '%{optflags}'`"
  RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"

  ARCH_INSTALL_POST='%{nil}'
  case "${ARCH}-${OS}" in
    sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux; LIB=lib64 ;;
  esac

  cat $PLATFORM | \
    sed -e s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS, \
	-e s,@@RPMRC_ARCH@@,$ARCH, \
	-e s,@@LIB@@,$LIB, \
	-e s,@@ARCH_INSTALL_POST@@,$ARCH_INSTALL_POST, \
	-e 's,\${,%{_,' \
  > ${PPD}/macros

  #
  # Better try to create these too until the smoke clears. Yuck.
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET}
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET_PLATFORM}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM}
d26 14
a39 1
done
@


2.3.2.2
log
@fix: create per-platform directories correctly.
@
text
@a9 6
if grep /share/ $PLATFORM > /dev/null 2>&1 ; then
    DEFAULTDOCDIR='%{_usr}/share/doc'
else
    DEFAULTDOCDIR='%{_usr}/doc'
fi

a23 5
rm -f ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS}
ln -s ${arch}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS}
rm -f ${DESTDIR}/${pkglibdir}/noarch-${OS}
ln -s ${arch}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${OS}

d25 2
a26 3
  i[3456]86) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_' ;;
  sparc*) SUBSTS='s_sparc\(64\|v9\)_sparc_ s_sparc64_sparcv9_;s_sparc\([^v]\|$\)_sparcv9\1_ s_sparcv9_sparc64_;s_sparc\([^6]\|$\)_sparc64\1_' ;;
  *) SUBSTS=y___ ;;
a27 1
base_arch=`echo $arch | sed -e 's_i?86_i386_;s_sparc.*_sparc_'`
d29 1
a29 1
for SUBST in $SUBSTS ; do
d39 1
a39 2
#  RPMRC_OPTFLAGS="`$RPM --target $TARGET --eval '%{optflags}'`"
  RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
d48 4
a51 5
    sed -e "s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS," \
	-e "s,@@RPMRC_ARCH@@,$base_arch," \
	-e "s,@@LIB@@,$LIB," \
	-e "s,@@ARCH_INSTALL_POST@@,$ARCH_INSTALL_POST," \
	-e "s,@@DEFAULTDOCDIR@@,$DEFAULTDOCDIR," \
d57 2
a58 8
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET}" ] || {
    rm -f ${DESTDIR}/${pkglibdir}/${TARGET}
    ln -s ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET}
  }
  [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET_PLATFORM}" ] || {
    rm -f ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM}
    ln -s ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM}
  }
@


2.3.2.2.2.1
log
@- add alpha* architectures.
@
text
@a36 1
  alpha*) SUBSTS='s_alpha_alpha_ s_alpha_alphaev5_ s_alpha_alphaev56_ s_alpha_alphapca56_ s_alpha_alphaev6_ s_alpha_alphaev67_' ;;
d40 1
a40 1
base_arch=`echo $arch | sed -e 's_i?86_i386_;s_sparc.*_sparc_;s_alpha.*_alpha_'`
@


2.2
log
@Create symlink to platform configuration directory too.
@
text
@d16 1
a16 1
RPM="rpm --rcfile $TEMPRC"
d18 5
a22 4
ARCH="$($RPM --eval '%{_arch}')"
VENDOR="$($RPM --eval '%{_vendor}')"
OS="$($RPM --eval '%{_os}')"
TARGET="$($RPM --eval '%{_target}')"
d28 2
a29 2
RPMRC_OPTFLAGS="$($RPM --eval '%{optflags}')"
RPMRC_OPTFLAGS="$(echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g')"
a30 3
cat $PLATFORM |
    sed	-e s,\\\$\{,\%\{_, \
	-e "s,@@RPMRC_OPTFLAGS@@,$RPMRC_OPTFLAGS," > ${PPD}/macros
d32 8
a39 1
ln -sf ${PPD} ${TARGET}
@


2.1
log
@- fix: filter excluded paths before adding install prefixes (#8709).
- add i18n lookaside to PO catalogue(s) for i18n strings.
- try for /etc/rpm/macros.specspo so that specspo autoconfigures rpm.
- per-platform configuration factored into /usr/lib/rpm subdir.
@
text
@d21 1
d33 2
@

