RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Anders F. Björklund
  Root:   /v/rpm/cvs                       Email:  a...@rpm5.org
  Module: rpm                              Date:   01-Nov-2010 11:26:08
  Branch: HEAD                             Handle: 2010110110260800

  Modified files:
    rpm                     VENDOR devtool.conf

  Log:
    devtool: remove the defunct rpm4darwin

  Summary:
    Revision    Changes     Path
    2.70        +0  -7      rpm/VENDOR
    2.361       +0  -569    rpm/devtool.conf
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/VENDOR
  ============================================================================
  $ cvs diff -u -r2.69 -r2.70 VENDOR
  --- rpm/VENDOR        18 Apr 2009 16:41:58 -0000      2.69
  +++ rpm/VENDOR        1 Nov 2010 10:26:08 -0000       2.70
  @@ -441,13 +441,6 @@
                        messages!
        ________________________________________________________________________
   
  -  o  Name:           RPM4DARWIN
  -     Vendor:         RPM for Darwin (Mac OS X) 
<http://rpm4darwin.sourceforge.net/>
  -     Representative: Anders F. Bjorklund <a...@users.sourceforge.net> 
<a...@rpm5.org>
  -     Application:    a port of the RPM software (RPM 4.x) to Darwin and Mac 
OS X
  -     Characteristic: standalone installation of RPM that installs into 
/usr/local
  -     ________________________________________________________________________
  -
     o  Name:           FEDORA
        Vendor:         Fedora Project <http://fedoraproject.org/>
        Representative: Robert Scheck <rob...@fedoraproject.org> 
<rob...@rpm5.org>
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/devtool.conf
  ============================================================================
  $ cvs diff -u -r2.360 -r2.361 devtool.conf
  --- rpm/devtool.conf  31 Oct 2010 16:42:26 -0000      2.360
  +++ rpm/devtool.conf  1 Nov 2010 10:26:08 -0000       2.361
  @@ -2035,575 +2035,6 @@
           standalone_testdrive
       }
   
  -%darwin
  -    %macosx
  -
  -%macosx
  -    ##
  -    ##  These tools are built local: m4, autoconf, automake, libtool, gettext
  -    ##  (the system-provided versions are too old, and thus cannot be 
used...)
  -    ##  Note: "libtool" is called "glibtool" on the Darwin platform, due to a
  -    ##  name conflict with the system linker which is also called libtool(1)
  -    ##
  -    ##  These libraries are built internally: db, lua, syck, file, xar, xz
  -    ##  These are statically linked: neon, beecrypt, sqlite, popt, pcre, uuid
  -    ##  (building popt statically requires that the required popt.h header
  -    ##  is included within the rpm headers, so that it can be found later)
  -    ##
  -    ##  The package is configured to install in /usr/local and /var/local,
  -    ##  with the RPM configuration files in /etc. RPM libraries are dynamic.
  -    ##  The Perl module for RPM is included, built in /Library/Perl/
  -    ##  The Python module for RPM is included, built in /Library/Python/
  -    ##
  -
  -    @source %standalone-modules
  -    standalone_defines
  -
  -    #    determine some local tools
  -    SHTOOL="`cd ${DEVTOOL_SRCDIR} && pwd`/devtool.shtool"
  -
  -    #   third-party base directory
  -    basemac="${DEVTOOL_SRCDIR}/../mac"
  -    platform="MacOSX" # needs subdir
  -
  -    #   prepare build environment
  -    prepare () {
  -        echo "++ establishing third-party area under ($basemac)"
  -        for dir in "" src bin bin/$platform run; do
  -            if [ ! -d "$basemac/$dir" ]; then
  -                mkdir $basemac/$dir || exit $?
  -            fi
  -        done
  -
  -        echo "++ establishing third-party distribution files ($basemac/src/)"
  -        for spec in $dist; do
  -            file=`echo "$spec" | sed -e 's;,.*$;;'`
  -            urls=`echo "$spec" | sed -e 's;^[^,]*;;'`
  -            if [ ! -f "$basemac/src/$file" ]; then
  -                standalone_download "$basemac/src/$file" "$urls" || exit $?
  -            fi
  -        done
  -
  -        #   extend environment
  -        prefix_tools="`cd $basemac/run && pwd`"
  -        PATH="$prefix_tools/bin:$prefix_tools/sbin:$PATH"
  -        PATH="$PATH:/bin:/usr/bin:/sbin:/usr/sbin"
  -        export PATH
  -
  -        #   GNU m4 (installed development tool)
  -        if [ ! -d "$basemac/bin/m4-${v_m4}" ]; then
  -            echo "++ building third-party development tool m4-${v_m4}"
  -            (   cd $basemac/bin
  -                rm -rf m4-${v_m4}
  -                gzip -d -c ../src/m4-${v_m4}.tar.gz | gnutar xf -
  -                (   cd m4-${v_m4}
  -                    CC="cc" \
  -                    GREP="grep" \
  -                    ./configure \
  -                        --prefix="$prefix_tools" \
  -                        --disable-nls
  -                    make
  -                    make install
  -                    rm -f $prefix_tools/bin/gm4
  -                    ln $prefix_tools/bin/m4 \
  -                       $prefix_tools/bin/gm4
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   GNU autoconf (installed development tool)
  -        if [ ! -d "$basemac/bin/autoconf-${v_autoconf}" ]; then
  -            echo "++ building third-party development tool 
autoconf-${v_autoconf}"
  -            (   cd $basemac/bin
  -                rm -rf autoconf-${v_autoconf}
  -                gzip -d -c ../src/autoconf-${v_autoconf}.tar.gz | gnutar xf -
  -                (   cd autoconf-${v_autoconf}
  -                    CC="cc" \
  -                    ACLOCAL=true \
  -                    AUTOMAKE=true \
  -                    AUTOCONF=true \
  -                    AUTOHEADER=true \
  -                    MAKEINFO=true \
  -                    GREP=grep \
  -                    ./configure \
  -                        --prefix="$prefix_tools"
  -                    make
  -                    make install
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   GNU automake (installed development tool)
  -        if [ ! -d "$basemac/bin/automake-${v_automake}" ]; then
  -            echo "++ building third-party development tool 
automake-${v_automake}"
  -            (   cd $basemac/bin
  -                rm -rf automake-${v_automake}
  -                gzip -d -c ../src/automake-${v_automake}.tar.gz | gnutar xf -
  -                (   cd automake-${v_automake}
  -                    patch -p0 <../../src/automake-${v_automake}.patch
  -                    $SHTOOL subst \
  -                        -e "s;^\(.SUFFIXES: .*\) \.info \(.*\);\1 \2;" \
  -                        doc/Makefile.in
  -                    CC="cc" \
  -                    ACLOCAL=true \
  -                    AUTOMAKE=true \
  -                    AUTOCONF=true \
  -                    AUTOHEADER=true \
  -                    MAKEINFO=true \
  -                    GREP=grep \
  -                    ./configure \
  -                        --prefix="$prefix_tools"
  -                    make
  -                    make install
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   GNU libtool (installed development tool)
  -        if [ ! -d "$basemac/bin/libtool-${v_libtool_subdir}" ]; then
  -            echo "++ building third-party development tool 
libtool-${v_libtool}"
  -            (   cd $basemac/bin
  -                rm -rf libtool-${v_libtool_subdir}
  -                gzip -d -c ../src/libtool-${v_libtool}.tar.gz | gnutar xf -
  -                (   cd libtool-${v_libtool_subdir}
  -                    $SHTOOL subst \
  -                        -e 's;grep ggrep;grep ggrep egrep;g' \
  -                        -e 's;-e .-(cannot match)-.;;g' \
  -                        `find . -name configure -print`
  -                    CC="cc" \
  -                    GREP=grep \
  -                    ./configure \
  -                        --prefix="$prefix_tools" \
  -                        --program-prefix="g" \
  -                        --enable-static \
  -                        --enable-shared
  -                    make
  -                    make install
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   GNU gettext (installed development tool)
  -        if [ ! -d "$basemac/bin/gettext-${v_gettext}" ]; then
  -            echo "++ building third-party development tool 
gettext-${v_gettext}"
  -            (   cd $basemac/bin
  -                rm -rf gettext-${v_gettext}
  -                gzip -d -c ../src/gettext-${v_gettext}.tar.gz | gnutar xf -
  -                (   cd gettext-${v_gettext}
  -                    patch -p0 <../../src/gettext-${v_gettext}.patch
  -                    $SHTOOL subst \
  -                        -e '/localcharset.\$lo/d' \
  -                        gettext-runtime/intl/Makefile.in
  -                    $SHTOOL subst \
  -                        -e 's;\(SUBDIRS.*=.*\)intl-java ;\1;' \
  -                        -e 's;\(SUBDIRS.*=.*\)intl-csharp ;\1;' \
  -                         gettext-runtime/Makefile.in
  -                    $SHTOOL subst \
  -                        -e 's;^.*intl-java/Makefile.*$;;' \
  -                        -e 's;^.*intl-csharp/Makefile.*$;;' \
  -                        gettext-runtime/configure
  -                    $SHTOOL subst \
  -                        -e 's;@BUILDJAVA@;no;g' \
  -                        -e 's;@BUILDJAVAEXE@;no;g' \
  -                        -e 's;@BUILDCSHARP@;no;g' \
  -                        gettext-tools/src/Makefile.in
  -                    $SHTOOL subst \
  -                        -e 's;^\(SUBDIRS =.*\)tests gnulib-tests 
examples;\1;' \
  -                        gettext-tools/Makefile.in
  -                    $SHTOOL subst \
  -                        -e 's;\#if USEJEXE;#ifdef USEJEXE;' \
  -                        gettext-tools/src/read-java.c \
  -                        gettext-tools/src/urlget.c
  -                    $SHTOOL subst \
  -                        -e 's;\(#define LIBXML_ICONV_ENABLED\);\1_DUMMY;' \
  -                        gnulib-local/lib/libxml/xmlversion.in.h \
  -                        gettext-tools/gnulib-lib/libxml/xmlversion.in.h
  -                    CC="cc" \
  -                    GREP="grep" \
  -                    ./configure \
  -                        --prefix="$prefix_tools" \
  -                        --without-libiconv-prefix \
  -                        --with-included-gettext \
  -                        --without-libexpat-prefix \
  -                        --disable-libasprintf \
  -                        --disable-threads \
  -                        --disable-csharp \
  -                        --disable-java \
  -                        --disable-nls \
  -                        --disable-shared
  -                    make
  -                    make install
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   Expat (uninstalled third-party library)
  -        if [ ! -d "$basemac/bin/$platform/expat-${v_expat}" ]; then
  -            echo "++ building third-party library expat-${v_expat}"
  -            (   cd $basemac/bin/$platform
  -                rm -rf expat-${v_expat}
  -                gzip -d -c ../../src/expat-${v_expat}.tar.gz | gnutar xf -
  -                (   cd expat-${v_expat}
  -                    ./configure \
  -                        --disable-shared
  -                    make libexpat.la
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   Neon (uninstalled third-party library)
  -        if [ ! -d "$basemac/bin/$platform/neon-${v_neon}" ]; then
  -            echo "++ building third-party library neon-${v_neon}"
  -            (   cd $basemac/bin/$platform
  -                rm -rf neon-${v_neon}
  -                gzip -d -c ../../src/neon-${v_neon}.tar.gz | gnutar xf -
  -                (   cd neon-${v_neon}
  -                    ( echo "ac_cv_path_KRB5_CONFIG="
  -                    ) >config.cache
  -                    CPPFLAGS="-I`pwd`/../expat-${v_expat}/lib" \
  -                    LDFLAGS="-L`pwd`/../expat-${v_expat}/lib 
-L`pwd`/../expat-${v_expat}/.libs" \
  -                    ./configure \
  -                        --cache-file=./config.cache \
  -                        --with-libs=/tmp \
  -                        --with-ssl=openssl \
  -                        --without-libxml2 \
  -                        --with-expat \
  -                        --enable-webdav \
  -                        --disable-nls \
  -                        --disable-shared \
  -                        --enable-static
  -                    make
  -                    ( cd src; ln -s . neon )
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   BeeCrypt (uninstalled third-party library)
  -        if [ ! -d "$basemac/bin/$platform/beecrypt-${v_beecrypt}" ]; then
  -            echo "++ building third-party library beecrypt-${v_beecrypt}"
  -            (   cd $basemac/bin/$platform
  -                rm -rf beecrypt-${v_beecrypt}
  -                gzip -d -c ../../src/beecrypt-${v_beecrypt}.tar.gz | gnutar 
xf -
  -                (   cd beecrypt-${v_beecrypt}
  -                    patch -p0 <../../../src/beecrypt-${v_beecrypt}.patch
  -                    cp ../../../src/config.guess-${v_config} config.guess
  -                    cp ../../../src/config.sub-${v_config} config.sub
  -                    $SHTOOL subst \
  -                        -e 's;^[     ][      ]*#;#;' \
  -                        aes.c base64.c blowfish.c entropy.c fips186.c 
fips186.h md5.c \
  -                        md5.h mp.c mtprng.c mtprng.h sha1.c sha1.h sha256.c 
sha256.h timestamp.c
  -                    $SHTOOL subst \
  -                       -e 's;cppglue\.lo;;g' \
  -                       -e 's;cppglue\.cxx;;g' \
  -                       -e '/^CXX = /s;@CXX@;@CC@;g' \
  -                       Makefile.in
  -                    $SHTOOL subst \
  -                        -e '/LINENO: error: C[+]* 
preprocessor/{N;N;N;N;s/.*/  \}/;}' \
  -                        configure
  -                    ( echo 'ac_cv_have_dev_dsp=no'
  -                      echo 'ac_cv_have_dev_audio=no'
  -                      echo 'ac_cv_func_gettimeofday=yes'
  -                      echo 'bc_cv_as_noexecstack=no'
  -                    ) >config.cache
  -                    ./configure \
  -                        --cache-file=./config.cache \
  -                        --without-cplusplus \
  -                        --without-java \
  -                        --without-python \
  -                        --disable-threads \
  -                        --disable-shared
  -                    make
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   SQLite (uninstalled third-party library)
  -        if [ ! -d "$basemac/bin/$platform/sqlite-${v_sqlite}" ]; then
  -            echo "++ building third-party library sqlite-${v_sqlite}"
  -            (   cd $basemac/bin/$platform
  -                rm -rf sqlite-${v_sqlite}
  -                gzip -d -c ../../src/sqlite-${v_sqlite}.tar.gz | gnutar xf -
  -                (   cd sqlite-${v_sqlite}
  -                    patch -p0 <../../../src/sqlite-${v_sqlite}.patch
  -                    ./configure \
  -                        --disable-readline \
  -                        --disable-threadsafe \
  -                        --disable-debug \
  -                        --disable-amalgamation \
  -                        --disable-tcl \
  -                        --disable-shared
  -                    make
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   POPT (uninstalled third-party library)
  -        if [ ! -d "$basemac/bin/$platform/popt-${v_popt}" ]; then
  -            echo "++ building third-party library popt-${v_popt}"
  -            (   cd $basemac/bin/$platform
  -                rm -rf popt-${v_popt}
  -                gzip -d -c ../../src/popt-${v_popt}.tar.gz | gnutar xf -
  -                (   cd popt-${v_popt}
  -                    patch -p0 <../../../src/popt-${v_popt}.patch
  -                    CPPFLAGS="-DPOPT_fprintf=fprintf" \
  -                    ./configure \
  -                        --disable-dependency-tracking \
  -                        --disable-shared \
  -                        --with-included-gettext \
  -                        --without-libintl-prefix \
  -                        --without-libiconv-prefix \
  -                        --disable-nls
  -                    make
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   PCRE (uninstalled third-party library)
  -        if [ ! -d "$basemac/bin/$platform/pcre-${v_pcre}" ]; then
  -            echo "++ building third-party library pcre-${v_pcre}"
  -            (   cd $basemac/bin/$platform
  -                rm -rf pcre-${v_pcre}
  -                gzip -d -c ../../src/pcre-${v_pcre}.tar.gz | gnutar xf -
  -                (   cd pcre-${v_pcre}
  -                    patch -p0 <../../../src/pcre-${v_pcre}.patch
  -                    GREP="grep" \
  -                    ./configure \
  -                        --disable-dependency-tracking \
  -                        --disable-cpp \
  -                        --disable-utf8 \
  -                        --disable-shared
  -                    make
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -
  -        #   OSSP uuid (uninstalled third-party library)
  -        if [ ! -d "$basemac/bin/$platform/uuid-${v_uuid}" ]; then
  -            echo "++ building third-party library uuid-${v_uuid}"
  -            (   cd $basemac/bin/$platform
  -                rm -rf uuid-${v_uuid}
  -                gzip -d -c ../../src/uuid-${v_uuid}.tar.gz | gnutar xf -
  -                (   cd uuid-${v_uuid}
  -                    $SHTOOL subst \
  -                        -e '/LINENO: error: C[+]* 
preprocessor/{N;N;N;N;s/.*/:/;}' \
  -                        configure
  -                    GREP="grep" \
  -                    ./configure \
  -                        --disable-shared
  -                    make
  -                ) || exit $?
  -            ) || exit $?
  -        fi
  -    }
  -
  -    #   configure build environment
  -    configure () {
  -        echo "++ cleaning up build environment"
  -        ( cd ${DEVTOOL_SRCDIR}; make distclean || true ) >/dev/null 2>&1
  -
  -        echo "++ configuring build environment"
  -        basemac="`cd $basemac && pwd`"
  -        LDFLAGS="-Wl,-search_paths_first" # static
  -        LIBS="$LIBS -lssl -lcrypto" # shameless workaround for Neon
  -        LDFLAGS="$LDFLAGS -L`pwd`/xar/lib/.libs" # Xar linking hack
  -        DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:`pwd`/xar/lib/.libs"
  -        LDFLAGS="$LDFLAGS -L`pwd`/xz/src/liblzma/.libs" # LZMA hack
  -        DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:`pwd`/xz/src/liblzma/.libs"
  -        CPPFLAGS="$CPPFLAGS -I$basemac/bin/$platform/expat-${v_expat}/lib" # 
lua
  -        LDFLAGS="$LDFLAGS -L$basemac/bin/$platform/expat-${v_expat}/.libs" # 
lua
  -        export CPPFLAGS
  -        export LDFLAGS
  -        export LIBS
  -        export DYLD_LIBRARY_PATH
  -        ${DEVTOOL_SRCDIR}/configure -v \
  -            --prefix=/usr/local \
  -            --sysconfdir=/private/etc \
  -            --localstatedir=/private/var/local \
  -            --mandir=/usr/local/share/man \
  -            --infodir=/usr/local/share/info \
  -            --disable-dependency-tracking \
  -            --disable-assembler \
  -            --program-prefix="" \
  -            --disable-aio \
  -            --with-glob \
  -            --enable-broken-chown \
  -            --with-db=internal \
  -            --with-tcl=external \
  -            --with-lua=internal \
  -            --with-syck=internal \
  -            --with-zlib=external \
  -            --with-bzip2=external \
  -            --with-file=internal \
  -            --with-xar=internal \
  -            --with-xz=internal \
  -            --with-neon="$basemac/bin/$platform/neon-${v_neon}" \
  -            --with-beecrypt="$basemac/bin/$platform/beecrypt-${v_beecrypt}" \
  -            --with-sqlite="$basemac/bin/$platform/sqlite-${v_sqlite}" \
  -            --with-popt="$basemac/bin/$platform/popt-${v_popt}" \
  -            --with-pcre="$basemac/bin/$platform/pcre-${v_pcre}" \
  -            --with-uuid="$basemac/bin/$platform/uuid-${v_uuid}" \
  -            --with-perl \
  -            --with-python \
  -            --with-apidocs=auto \
  -            --disable-static \
  -            --enable-shared \
  -            --disable-rpath \
  -            --disable-nls
  -    }
  -
  -    #   do all at once
  -    prepare
  -    %checkout
  -    %autogen
  -    configure
  -    gnumake
  -
  -    # build the internal txar tool, for testing purposes
  -    make -C tools txar || true
  -
  -    # perl's makefile doesn't seem to be able to find the libraries in 
DYLD_LIBRARY_PATH
  -    make -C perl MACOSX_DEPLOYMENT_TARGET="$MACOSX_DEPLOYMENT_TARGET" 
OTHERLDFLAGS="$LDFLAGS"
  -
  -    # python complains about missing symbols from all over when using 
librpm*, relink:
  -    make -C misc LIBS="-lz -lxml2 -lpcre $LIBS" clean all
  -    make -C rpmio LIBS="-lpopt -lneon -lexpat -lbeecrypt -lxar -lbz2 $LIBS" 
clean all
  -
  -    # install into a temporary destroot, instead of to system
  -    rm -rf /tmp/rpm-root
  -    mkdir -p /tmp/rpm-root/private/etc/rpm
  -    mkdir -p /tmp/rpm-root/private/var/local/tmp
  -    chmod 1777 /tmp/rpm-root/private/var/local/tmp
  -    ln -s private/etc /tmp/rpm-root/etc
  -    ln -s private/var /tmp/rpm-root/var
  -    gnumake install DESTDIR=/tmp/rpm-root
  -    rm /tmp/rpm-root/etc
  -    rm /tmp/rpm-root/var
  -
  -    # remove generated/conflicting perl module files and lists
  -    find /tmp/rpm-root/Library/Perl \
  -        -type f \( -name perllocal.pod -o -name .packlist \) -exec rm {} \;
  -    
  -    # move perl/python modules to canonical /Library locations
  -    python_version=`python -c "import sys; print sys.version[:3]"`
  -    mkdir -p /tmp/rpm-root/Library/Python/$python_version
  -    mv /tmp/rpm-root/System/Library/Frameworks/Python.framework/Versions/* \
  -       /tmp/rpm-root/Library/Python/ 2>/dev/null
  -    mv /tmp/rpm-root/Library/Frameworks/Python.framework/Versions/* \
  -       /tmp/rpm-root/Library/Python/ 2>/dev/null
  -    rm -r /tmp/rpm-root/Library/Frameworks 2>/dev/null
  -    mv /tmp/rpm-root/Library/Python/*/lib/python*/site-packages \
  -       /tmp/rpm-root/Library/Python/*/ 2>/dev/null
  -    rm -r /tmp/rpm-root/Library/Python/*/lib 2>/dev/null
  -    mkdir -p /tmp/rpm-root/Library/Python/$python_version/site-packages/rpm
  -    mv /tmp/rpm-root/usr/local/lib/python*/site-packages/rpm/*.py \
  -       /tmp/rpm-root/Library/Python/*/site-packages/rpm 2>/dev/null
  -    rm -r /tmp/rpm-root/usr/local/lib/python* 2>/dev/null
  -    mv /tmp/rpm-root/usr/lib/python*/site-packages/rpm/* \
  -       /tmp/rpm-root/Library/Python/*/site-packages/rpm 2>/dev/null
  -    rm -r /tmp/rpm-root/usr/lib 2>/dev/null
  -    rm -r /tmp/rpm-root/System 2>/dev/null
  -    rm -r /tmp/rpm-root/Developer 2>/dev/null
  -    chmod 1775 /tmp/rpm-root/Library
  -    
  -    # setup default (undetected) configuration, for Mac OS X
  -    sed -i -e "s,/usr/bin/perl,perl," /tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e "s,/usr/local/bin/perl,perl," 
/tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e "s,/usr/bin/python,python," 
/tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e "s,/usr/local/bin/python,python," 
/tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e 's,%{_usr}/doc,%{_usr}/share/doc,' 
/tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e 's,%{_prefix}/etc,/etc,' /tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e 's,%{_prefix}/var,/var/local,' 
/tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e 's,%{_prefix}/man,%{_prefix}/share/man,' 
/tmp/rpm-root/usr/local/lib/rpm/macros
  -    sed -i -e 's,%{_prefix}/info,%{_prefix}/share/info,' 
/tmp/rpm-root/usr/local/lib/rpm/macros
  -    rmdir /tmp/rpm-root/usr/local/src/rpm/RPMS/athlon
  -    rmdir /tmp/rpm-root/usr/local/src/rpm/RPMS/pentium3
  -    rmdir /tmp/rpm-root/usr/local/src/rpm/RPMS/pentium4
  -    rmdir /tmp/rpm-root/usr/local/src/rpm/RPMS/i486
  -    mkdir -p /tmp/rpm-root/usr/local/src/rpm/RPMS/i386
  -    mkdir -p /tmp/rpm-root/usr/local/src/rpm/RPMS/x86_64
  -    mkdir -p /tmp/rpm-root/usr/local/src/rpm/RPMS/ppc
  -    mkdir -p /tmp/rpm-root/usr/local/src/rpm/RPMS/ppc64
  -    mkdir -p /tmp/rpm-root/usr/local/src/rpm/RPMS/fat
  -
  -    # setup CVOG platform
  -    cat <<__EOF__ >/tmp/rpm-root/private/etc/rpm/platform
  -i386-apple-darwin
  -i586-apple-darwin
  -i686-apple-darwin
  -fat-apple-darwin
  -noarch-apple-darwin
  -__EOF__
  -# TODO: when installing the Universal Binary PKG on PowerPC instead of Intel,
  -#       replace "i386-apple-darwin" with "ppc-apple-darwin" in the 
postflight.
  -#       also add extra line with "x86_64-apple-darwin" or 
"ppc64-apple-darwin"
  -#       first, if the installation machine is capable of using 64-bit 
binaries.
  -    
  -    # setup architectures
  -    for ARCH in ppc i386 ppc64 x86_64; do
  -    if [ "$ARCH" = "ppc64" -o "$ARCH" = "x86_64" ]; then BITS=-m64; else 
BITS=-m32; fi
  -    mkdir -p /tmp/rpm-root/usr/local/lib/rpm/$ARCH-darwin
  -    sed -e "s/^\\\\%/%/" <<__EOF__ 
>/tmp/rpm-root/usr/local/lib/rpm/$ARCH-darwin/macros
  -# Per-platform rpm configuration file.
  -
  
-#==============================================================================
  -# ---- per-platform macros.
  -#
  -\%_arch                      $ARCH
  -\%_build_arch                $ARCH
  -\%_vendor            apple
  -\%_os                        darwin
  -\%_gnu                       %{nil}
  -\%_target_platform   %{_target_cpu}-%{_vendor}-%{_target_os}
  -\%optflags           -O2 $BITS
  -
  -__EOF__
  -    done
  -
  -    # copy required popt.h library header to internal headers
  -    cp -p "$basemac/bin/$platform/popt-${v_popt}/popt.h" 
/tmp/rpm-root/usr/local/include/rpm
  -
  -    # don't leak private search paths, libraries and arch'es
  -    perl -ni -e "print unless /^Libs.private/" 
/tmp/rpm-root/usr/local/lib/pkgconfig/rpm.pc
  -
  -    # remove xar binaries
  -    rm -f /tmp/rpm-root/usr/local/bin/xar
  -    rm -f /tmp/rpm-root/usr/local/share/man/man1/xar.1
  -    rm -f /tmp/rpm-root/usr/local/include/xar/xar.h
  -    rmdir /tmp/rpm-root/usr/local/include/xar
  -    rm -f /tmp/rpm-root/usr/local/lib/libxar.1.dylib
  -    rm -f /tmp/rpm-root/usr/local/lib/libxar.dylib
  -    rm -f /tmp/rpm-root/usr/local/lib/libxar.a
  -    rm -f /tmp/rpm-root/usr/local/lib/libxar.la
  -
  -    # remove xz binaries
  -    rm -f /tmp/rpm-root/usr/local/bin/*lz*
  -    rm -f /tmp/rpm-root/usr/local/bin/*xz*
  -    rm -f /tmp/rpm-root/usr/local/share/man/man1/*lz*.1
  -    rm -f /tmp/rpm-root/usr/local/share/man/man1/*xz*.1
  -    rm -f /tmp/rpm-root/usr/local/include/lzma.h
  -    rm -f -r /tmp/rpm-root/usr/local/include/lzma
  -    rm -f /tmp/rpm-root/usr/local/lib/liblzma.0.dylib
  -    rm -f /tmp/rpm-root/usr/local/lib/liblzma.1.dylib
  -    rm -f /tmp/rpm-root/usr/local/lib/liblzma.dylib
  -    rm -f /tmp/rpm-root/usr/local/lib/liblzma.a
  -    rm -f /tmp/rpm-root/usr/local/lib/liblzma.la
  -    rm -f /tmp/rpm-root/usr/local/lib/pkgconfig/lzma.pc
  -    rm -f /tmp/rpm-root/usr/local/lib/pkgconfig/liblzma.pc
  -
  -    # strip debugging symbols, and remove libtool files (.la)
  -    strip -S /tmp/rpm-root/usr/local/bin/rpm*
  -    strip -S /tmp/rpm-root/usr/local/lib/rpm/bin/*
  -    strip -S /tmp/rpm-root/usr/local/lib/librpm*.dylib
  -    chmod 755 
/tmp/rpm-root/Library/Perl/*/darwin-thread-multi-2level/auto/RPM/RPM.bundle
  -    strip -S 
/tmp/rpm-root/Library/Perl/*/darwin-thread-multi-2level/auto/RPM/RPM.bundle
  -    chmod 555 
/tmp/rpm-root/Library/Perl/*/darwin-thread-multi-2level/auto/RPM/RPM.bundle
  -    strip -S /tmp/rpm-root/Library/Python/*/site-packages/rpm/_rpmmodule.so
  -    rm -f /tmp/rpm-root/usr/local/lib/librpm*.la
  -    rm -f /tmp/rpm-root/Library/Python/*/site-packages/rpm/_rpmmodule.la
  -    
  -    # test drive (version only, should set up a local dbpath)
  -    
DYLD_LIBRARY_PATH=/tmp/rpm-root/usr/local/lib:/tmp/rpm-root/usr/local/lib/rpm/lib:$DYLD_LIBRARY_PATH
 /tmp/rpm-root/usr/local/bin/rpm --version
  -
   %freebsd
        # Ports: (* = internal)
        #       devel/automake111
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to