2003-01-07 03:47:33 +08:00
|
|
|
#!/usr/bin/env bash
|
2000-02-26 00:29:44 +08:00
|
|
|
|
|
|
|
DESTDIR="${DESTDIR:-/}"
|
|
|
|
pkglibdir="${pkglibdir:-/usr/lib/rpm}"
|
|
|
|
|
|
|
|
RPMRC="${1:-rpmrc}"
|
|
|
|
MACROS="${2:-macros}"
|
|
|
|
PLATFORM="${3:-platform}"
|
|
|
|
|
2000-06-01 13:36:14 +08:00
|
|
|
if grep /share/ $PLATFORM > /dev/null 2>&1 ; then
|
2000-06-01 21:43:05 +08:00
|
|
|
DEFAULTDOCDIR='%{_usr}/share/doc'
|
2000-06-01 13:36:14 +08:00
|
|
|
else
|
2000-06-01 21:43:05 +08:00
|
|
|
DEFAULTDOCDIR='%{_usr}/doc'
|
2000-06-01 13:36:14 +08:00
|
|
|
fi
|
|
|
|
|
2000-02-26 00:29:44 +08:00
|
|
|
TEMPRC="/tmp/rpmrc.$$"
|
|
|
|
cat << E_O_F > $TEMPRC
|
|
|
|
include: $RPMRC
|
|
|
|
E_O_F
|
|
|
|
|
2007-09-07 17:09:11 +08:00
|
|
|
RPM="./rpm --rcfile=$TEMPRC --macros=$MACROS"
|
2000-02-26 00:29:44 +08:00
|
|
|
|
2007-06-21 20:13:04 +08:00
|
|
|
canonarch_sed='s_i.86_i386_;s_pentium[34]_i386_;s_athlon_i386_;s_sparc[^-]*_sparc_;s_alpha[^-]*_alpha_;s_arm[^-]*_arm_;s_\(powerpc\|ppc\)[^-]*_ppc_'
|
2002-07-31 01:07:39 +08:00
|
|
|
arch="`$RPM --eval '%{_arch}'|sed -e "$canonarch_sed"`"
|
2000-02-28 02:52:30 +08:00
|
|
|
VENDOR="`$RPM --eval '%{_vendor}'`"
|
|
|
|
OS="`$RPM --eval '%{_os}'`"
|
2001-08-15 22:03:03 +08:00
|
|
|
RPMRC_GNU="`$RPM --eval '%{_gnu}'`"
|
2002-07-31 01:07:39 +08:00
|
|
|
target_platform="`$RPM --eval '%{?_gnu:%undefine _gnu}%{_target_platform}'|sed -e "$canonarch_sed"`"
|
|
|
|
target="`$RPM --eval '%{_target}'|sed -e "$canonarch_sed"`"
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
|
|
|
|
case "$arch" in
|
2004-03-28 10:41:32 +08:00
|
|
|
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_' ;;
|
2000-09-14 19:42:48 +08:00
|
|
|
alpha*) SUBSTS='s_alpha_alpha_ s_alpha_alphaev5_ s_alpha_alphaev56_ s_alpha_alphapca56_ s_alpha_alphaev6_ s_alpha_alphaev67_' ;;
|
2007-08-06 19:47:43 +08:00
|
|
|
arm*) SUBSTS='s_arm_armv3l_ s_arm_armv4l_ s_arm_armv4tl_ s_arm_armv5tel_ s_arm_armv5tejl_ s_arm_armv6l_' ;;
|
2007-09-05 21:11:04 +08:00
|
|
|
sparc*) SUBSTS='s_sparc\(64\|64v\|v9v\|v9\)_sparc_ s_sparc64_sparcv9_;s_sparc\([^v]\|$\)_sparcv9\1_ s_sparcv9_sparc64_;s_sparc\([^6]\|$\)_sparc64\1_' ;;
|
2003-12-12 03:09:58 +08:00
|
|
|
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_' ;;
|
2002-10-12 01:22:50 +08:00
|
|
|
s390*) SUBSTS='s_s390x_s390_ s_s390\([^x]\|$\)_s390x\1_' ;;
|
2007-08-28 14:10:11 +08:00
|
|
|
x86_64|amd64|ia32e) SUBSTS='s,x86_64,x86_64, s,x86_64,ia32e, s,x86_64,amd64,' ;;
|
2000-05-03 01:30:49 +08:00
|
|
|
*) SUBSTS=y___ ;;
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
esac
|
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
for SUBST in $SUBSTS ; do
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
ARCH=`echo $arch | sed -e $SUBST`
|
|
|
|
TARGET_PLATFORM=`echo $target_platform | sed -e $SUBST`
|
|
|
|
TARGET=`echo $target | sed -e $SUBST`
|
|
|
|
LIB=lib
|
|
|
|
|
2002-06-10 06:15:16 +08:00
|
|
|
PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${OS}"
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
|
|
|
|
[ -d $PPD ] || mkdir $PPD
|
|
|
|
|
2000-06-01 20:54:06 +08:00
|
|
|
RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
|
2001-03-23 07:39:01 +08:00
|
|
|
case $RPMRC_OPTFLAGS in
|
|
|
|
*-g*) ;;
|
|
|
|
*) RPMRC_OPTFLAGS="$RPMRC_OPTFLAGS -g" ;;
|
|
|
|
esac
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
|
|
|
|
ARCH_INSTALL_POST='%{nil}'
|
2000-07-06 04:39:15 +08:00
|
|
|
MULTILIBNO=
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
case "${ARCH}-${OS}" in
|
2000-07-06 04:39:15 +08:00
|
|
|
sparc-linux) MULTILIBNO=1 ;;
|
2007-09-05 21:11:04 +08:00
|
|
|
sparcv8-linux) MULTILIBNO=1 ;;
|
2000-07-06 04:39:15 +08:00
|
|
|
sparcv9-linux) MULTILIBNO=1 ;;
|
2007-09-05 21:11:04 +08:00
|
|
|
sparcv9v-linux) MULTILIBNO=1 ;;
|
2000-07-06 04:39:15 +08:00
|
|
|
sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux; LIB=lib64; MULTILIBNO=2 ;;
|
2007-09-05 21:11:04 +08:00
|
|
|
sparc64v-linux) ARCH_INSTALL_PORT=${pkglibdir}/brp-sparc64-linux; LIB=lib64; MULTILIBNO=2 ;;
|
2002-10-10 03:13:31 +08:00
|
|
|
s390-linux) MULTILIBNO=1 ;;
|
|
|
|
s390x-linux) LIB=lib64; MULTILIBNO=2 ;;
|
|
|
|
ppc-linux) MULTILIBNO=1 ;;
|
|
|
|
ppc64-linux) LIB=lib64; MULTILIBNO=2 ;;
|
2004-03-28 10:41:32 +08:00
|
|
|
i?86-linux|pentium?-linux|athlon-linux) MULTILIBNO=1 ;;
|
2004-06-15 00:50:14 +08:00
|
|
|
x86_64-linux|amd64-linux|ia32e-linux) LIB=lib64; MULTILIBNO=2 ;;
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
esac
|
|
|
|
|
2000-07-12 00:12:47 +08:00
|
|
|
if [ -n "$MULTILIBNO" ]; then
|
2000-07-06 04:39:15 +08:00
|
|
|
MULTILIBSED='-e /^@MULTILIB/d -e s,@MULTILIBNO@,'$MULTILIBNO,
|
|
|
|
else
|
|
|
|
MULTILIBSED='-e /^@MULTILIBSTART@/,/^@MULTILIBEND@/d'
|
|
|
|
fi
|
|
|
|
|
2001-01-18 00:00:36 +08:00
|
|
|
case $VENDOR in
|
2002-07-25 08:13:25 +08:00
|
|
|
yellowdog)
|
|
|
|
VENDORSED='-e s,^@yellowdog@,,'
|
|
|
|
;;
|
2001-01-18 00:00:36 +08:00
|
|
|
pld)
|
|
|
|
VENDORSED='-e s,^@pld@,,'
|
2002-07-31 01:07:39 +08:00
|
|
|
RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e "s/ -g/ /"`"
|
2001-01-18 00:00:36 +08:00
|
|
|
;;
|
|
|
|
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@,,'
|
|
|
|
;;
|
2005-01-25 13:24:40 +08:00
|
|
|
apple)
|
|
|
|
VENDORSED='-e s,^@apple@,,'
|
|
|
|
;;
|
2001-01-18 00:00:36 +08:00
|
|
|
esac
|
|
|
|
|
|
|
|
cat $PLATFORM \
|
|
|
|
| sed -e "s,@RPMRC_OPTFLAGS@,$RPMRC_OPTFLAGS," \
|
2002-07-31 01:07:39 +08:00
|
|
|
-e "s,@RPMRC_ARCH@,$ARCH," \
|
2001-08-15 22:03:03 +08:00
|
|
|
-e "s,@RPMRC_GNU@,$RPMRC_GNU," \
|
2000-05-31 17:04:55 +08:00
|
|
|
-e "s,@LIB@,$LIB," \
|
|
|
|
-e "s,@ARCH_INSTALL_POST@,$ARCH_INSTALL_POST," \
|
2000-06-01 13:36:14 +08:00
|
|
|
-e "s,@DEFAULTDOCDIR@,$DEFAULTDOCDIR," \
|
2002-07-31 01:07:39 +08:00
|
|
|
-e '/\${\w*:-/!s,\${,%{_,' \
|
2000-07-06 04:39:15 +08:00
|
|
|
$MULTILIBSED \
|
2001-01-18 00:00:36 +08:00
|
|
|
$VENDORSED \
|
|
|
|
| grep -v '^@' \
|
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).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
> ${PPD}/macros
|
|
|
|
|
|
|
|
done
|
2000-02-26 01:30:28 +08:00
|
|
|
|
2002-06-10 06:15:16 +08:00
|
|
|
{ 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
|
2002-06-20 10:19:21 +08:00
|
|
|
# [ -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
|
2002-06-10 06:15:16 +08:00
|
|
|
}
|
|
|
|
|
2000-02-26 00:29:44 +08:00
|
|
|
rm $TEMPRC
|