RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Jason Corley
Root: /v/rpm/cvs Email: jasonc@rpm5.org
Module: rpm Date: 02-Jan-2008 18:33:43
Branch: HEAD Handle: 2008010217334300
Modified files:
rpm devtool.conf
Log:
remove my devtool target as I'm now using afb's much better thought
out leopard target
Summary:
Revision Changes Path
2.164 +0 -410 rpm/devtool.conf
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/devtool.conf
============================================================================
$ cvs diff -u -r2.163 -r2.164 devtool.conf
--- rpm/devtool.conf 2 Jan 2008 16:57:36 -0000 2.163
+++ rpm/devtool.conf 2 Jan 2008 17:33:43 -0000 2.164
@@ -970,416 +970,6 @@
standalone_testdrive
}
-%jasonc
- %common
- %checkout
- # source reusable companion modules
- @source %standalone-modules
- # execute implicit shared modules
- standalone_defines
-
- # determine some local tools
- SHTOOL="`cd ${DEVTOOL_SRCDIR} && pwd`/devtool.shtool"
- cc="/usr/bin/gcc"
- grep="/usr/bin/grep"
- # installation default prefix
- prefix="/usr/local"
-
- # prepare build environment
- prepare () {
- PATH="$prefix/bin:$prefix/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
-
- echo "++ establishing third-party area under ($prefix)"
- rm -rf $prefix/*
- mkdir -p $prefix/spool/repackage/
- mkdir -p $prefix/var/rpm/src/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
- for dir in "" bin etc src lib; do
- if [ ! -d "$prefix/$dir" ]; then
- mkdir $prefix/$dir || exit $?
- fi
- done
-
- echo "++ establishing third-party distribution files ($prefix/src/)"
- for spec in $dist; do
- file=`echo "$spec" | sed -e 's;,.*$;;'`
- urls=`echo "$spec" | sed -e 's;^[^,]*;;'`
- if [ ! -f "$prefix/src/$file" ]; then
- standalone_download "$prefix/src/$file" "$urls" || exit $?
- fi
- done
-
- # GNU m4 (installed development tool)
- echo "++ building third-party development tool m4-${v_m4}"
- ( cd $prefix/src
- rm -rf m4-${v_m4}
- tar zxvf m4-${v_m4}.tar.gz
- ( cd m4-${v_m4}
- CC="$cc" \
- GREP="$grep" \
- ./configure \
- --prefix="$prefix" \
- --disable-nls
- make
- make install
- ln $prefix/bin/m4 \
- $prefix/bin/gm4
- ) || exit $?
- ) || exit $?
-
- # GNU autoconf (installed development tool)
- echo "++ building third-party development tool autoconf-${v_autoconf}"
- ( cd $prefix/src
- rm -rf autoconf-${v_autoconf}
- tar zxvf autoconf-${v_autoconf}.tar.gz
- ( cd autoconf-${v_autoconf}
- CC="$cc" \
- ACLOCAL="true" \
- AUTOMAKE="true" \
- AUTOCONF="true" \
- AUTOHEADER="true" \
- MAKEINFO="true" \
- GREP="$grep" \
- ./configure \
- --prefix="$prefix"
- make
- make install
- ) || exit $?
- ) || exit $?
-
- # GNU automake (installed development tool)
- echo "++ building third-party development tool automake-${v_automake}"
- ( cd $prefix/src
- rm -rf automake-${v_automake}
- tar zxvf automake-${v_automake}.tar.gz
- ( cd automake-${v_automake}
- patch -p0 < ../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"
- make
- make install
- ) || exit $?
- ) || exit $?
-
- # GNU libtool (installed development tool)
- echo "++ building third-party development tool libtool-${v_libtool}"
- ( cd $prefix/src
- rm -rf libtool-${v_libtool}
- tar zxvf libtool-${v_libtool}.tar.gz
- ( cd libtool-${v_libtool}
- $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" \
- --enable-static \
- --enable-shared
- make
- make install
- ln $prefix/bin/libtoolize \
- $prefix/bin/glibtoolize
- ) || exit $?
- ) || exit $?
-
- # GNU gettext (installed development tool)
- echo "++ building third-party development tool gettext-${v_gettext}"
- ( cd $prefix/src
- rm -rf gettext-${v_gettext}
- tar zxvf gettext-${v_gettext}.tar.gz
- ( cd gettext-${v_gettext}
- patch -p0 < ../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" \
- --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 $?
-
- # BZip2 (uninstalled third-party library)
- echo "++ building third-party library bzip2-${v_bzip2}"
- ( cd $prefix/src
- rm -rf bzip2-${v_bzip2}
- tar zxvf bzip2-${v_bzip2}.tar.gz
- ( cd bzip2-${v_bzip2}
- make CC="$cc" libbz2.a bzip2
- ) || exit $?
- ) || exit $?
-
- # OpenSSL (uninstalled third-party library)
- echo "++ building third-party library openssl-${v_openssl}"
- ( cd $prefix/src
- rm -rf openssl-${v_openssl}
- tar zxvf openssl-${v_openssl}.tar.gz
- ( cd openssl-${v_openssl}
- patch -p0 < ../openssl-${v_openssl}.patch
- $SHTOOL subst \
- -e 's;-m486;-march=i486;g' \
- -e 's;BN_LLONG *;;' \
- Configure
- $SHTOOL subst \
- -e 's;test "$OSTYPE" = msdosdjgpp;true;' \
- util/point.sh
- $SHTOOL subst \
- -e "1s;^.*\$;#!$PERL;" \
- Configure `find . -name "*.pl" -print`
- CC="$cc" \
- ./config \
- --prefix=%{l_prefix} \
- no-asm no-shared no-dso \
- no-zlib no-idea no-threads no-krb5 no-hw
- make build_libs build_apps
- ( mkdir lib; cd lib; ln -s ../lib*.a . )
- ) || exit $?
- ) || exit $?
-
- # Expat (uninstalled third-party library)
- echo "++ building third-party library expat-${v_expat}"
- ( cd $prefix/src
- rm -rf expat-${v_expat}
- tar zxvf expat-${v_expat}.tar.gz
- ( cd expat-${v_expat}
- CC="$cc" \
- ./configure \
- --disable-shared
- make libexpat.la
- ) || exit $?
- ) || exit $?
-
- # Neon (uninstalled third-party library)
- echo "++ building third-party library neon-${v_neon}"
- ( cd $prefix/src
- rm -rf neon-${v_neon}
- tar zxvf neon-${v_neon}.tar.gz
- ( cd neon-${v_neon}
- ( echo "ac_cv_path_KRB5_CONFIG=" ) >config.cache
- CC="$cc" \
- CPPFLAGS="-I$prefix/src/openssl-${v_openssl}/include -I$prefix/src/zlib-${v_zlib} -I$prefix/src/expat-${v_expat}/lib" \
- LDFLAGS="-L$prefix/src/openssl-${v_openssl}/lib -L$prefix/src/expat-${v_expat}/lib -L$prefix/src/expat-${v_expat}/.libs" \
- ./configure \
- --cache-file="./config.cache" \
- --with-ssl="openssl" \
- --without-libxml2 \
- --with-expat \
- --enable-webdav \
- --disable-nls \
- --disable-shared \
- --enable-static
- make
- ( cd src; ln -s . neon )
- ) || exit $?
- ) || exit $?
-
- # BeeCrypt (uninstalled third-party library)
- echo "++ building third-party library beecrypt-${v_beecrypt}"
- ( cd $prefix/src
- rm -rf beecrypt-${v_beecrypt}
- tar zxvf beecrypt-${v_beecrypt}.tar.gz
- ( cd beecrypt-${v_beecrypt}
- patch -p0 < ../beecrypt-${v_beecrypt}.patch
- cp ../config.guess-${v_config} config.guess
- cp ../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
- CC="$cc" \
- ./configure \
- --without-cplusplus \
- --without-java \
- --without-python \
- --with-cpu="none" \
- --with-arch="none" \
- --disable-threads \
- --disable-shared
- make
- ) || exit $?
- ) || exit $?
-
- # SQLite (uninstalled third-party library)
- echo "++ building third-party library sqlite-${v_sqlite}"
- ( cd $prefix/src
- rm -rf sqlite-${v_sqlite}
- tar zxvf sqlite-${v_sqlite}.tar.gz
- ( cd sqlite-${v_sqlite}
- patch -p0 < ../sqlite-${v_sqlite}.patch
- CC="$cc" \
- CFLAGS="-DNDEBUG=1" \
- LIBS="-lm" \
- ./configure \
- --disable-utf8 \
- --disable-readline \
- --disable-threadsafe \
- --disable-shared
- make
- ) || exit $?
- ) || exit $?
-
- # POPT (uninstalled third-party library)
- echo "++ building third-party library popt-${v_popt}"
- ( cd $prefix/src
- rm -rf popt-${v_popt}
- tar zxvf popt-${v_popt}.tar.gz
- ( cd popt-${v_popt}
- patch -p0 < ../popt-${v_popt}.patch
- CC="$cc" \
- ./configure \
- --disable-shared \
- --disable-nls
- make
- ) || exit $?
- ) || exit $?
- }
-
- # configure build environment
- configure () {
- echo "++ cleaning up build environment"
- ( cd ${DEVTOOL_SRCDIR}; make distclean || true ) >/dev/null 2>&1
-
- echo "++ configuring build environment"
- CFLAGS=""
- CPPFLAGS=""
- LDFLAGS=""
- LIBS=""
- LDFLAGS="$LDFLAGS -L$prefix/src/openssl-${v_openssl}" # shameless workaround for Neon
- LIBS="$LIBS -lssl -lcrypto" # shameless workaround for Neon
- LIBS="$LIBS -lm" # shameless workaround for SQLite
- export CFLAGS
- export CPPFLAGS
- export LDFLAGS
- export LIBS
- ${DEVTOOL_SRCDIR}/configure -v \
- --prefix="$prefix" \
- --mandir="$prefix/man" \
- --with-path-cfg="$prefix/etc/rpm" \
- --with-path-rpmpopt="$prefix/lib/rpm/rpmpopt:$prefix/etc/rpm/rpmpopt:~/.rpmpopt" \
- --with-path-macros="$prefix/lib/rpm/macros:$prefix/etc/rpm/macros:~/.rpmmacros" \
- --with-path-lib="$prefix/lib/rpm" \
- --with-path-locale="$prefix/share/rpm/locale" \
- --with-path-database="$prefix/var/rpm/db" \
- --with-path-sources="$prefix/var/rpm/src" \
- --with-beecrypt="$prefix/src/beecrypt-${v_beecrypt}" \
- --with-bzip2="$prefix/src/bzip2-${v_bzip2}" \
- --with-neon="$prefix/src/neon-${v_neon}" \
- --with-popt="$prefix/src/popt-${v_popt}" \
- --with-sqlite="$prefix/src/sqlite-${v_sqlite}" \
- --with-db="internal" \
- --with-lua="internal" \
- --with-file="internal" \
- --with-xar=internal \
- --with-zlib="internal" \
- --without-db-rpc \
- --with-db-mutex="UNIX/fcntl" \
- --without-pthreads \
- --with-libelf="internal" \
- --without-selinux \
- --without-apidocs \
- --disable-build-intlibdep \
- --disable-build-extlibdep \
- --disable-build-lafiles \
- --enable-build-warnings \
- --enable-build-debug \
- --disable-build-lib64 \
- --disable-shared \
- --disable-rpath \
- --disable-nls
- }
-
- # build RPM
- build () {
- make
- }
-
- # install RPM
- install () {
- make install
- }
-
- # do all at once
- all () {
- (
- prepare
- standalone_autogen
- configure
- build
- install
- # there are likely better ways to handle this
- sed -i -e 's,^%_repackage_dir.*,%_repackage_dir %{_usr}/spool/repackage,' $prefix/lib/rpm/macros
- #
- standalone_testdrive
- make distclean; rm -rf db3/a.out.dSYM/
- ) 2>&1 | tee /tmp/devtool_jasonc.log
- }
-
- # dispatch command
- if [ $# -eq 0 ]; then
- set -- all
- fi
- ( eval ${1+"$@"} ) 2>&1
-
%afb
%tiger
@@ .
Received on Wed Jan 2 18:33:43 2008