Changeset 12486

Show
Ignore:
Timestamp:
11/12/10 01:11:31 (18 months ago)
Author:
build
Message:

Get the architecture right in all cases. Specify nomd5 so we can use srpms from Fedora 11 and up. This allows us to build python-sqlalchemy and pytz from srpms

Location:
packaging/centuryegg
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • packaging/centuryegg/build-expat-rpm

    r10048 r12486  
    33EXPAT_MAJOR_VERSION=$(echo $EXPAT_VERSION | cut -d "-" -f 1) 
    44mkdir -p logs rpms srpms 
    5 if [ -f rpms/expat-$EXPAT_VERSION.i386.rpm ] 
     5rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 
     6if [ -f rpms/expat-$EXPAT_VERSION.${rpm_arch}.rpm ] 
    67then 
    7     echo "Not building expat as rpms/expat-$EXPAT_VERSION.i386.rpm already exists" 
     8    echo "Not building expat as rpms/expat-$EXPAT_VERSION.${rpm_arch}.rpm already exists" 
    89    exit 
    910fi 
     
    2223cd srpms 
    2324wget -c http://mirror.centos.org/centos/5/os/SRPMS/expat-$EXPAT_VERSION.src.rpm 
    24 rpm -ivh expat-$EXPAT_MAJOR_VERSION*.src.rpm 
     25rpm -ivh --nomd5 expat-$EXPAT_MAJOR_VERSION*.src.rpm 
    2526) 
    2627# add to changelog 
    2728src_rpm=`rpmbuild -bs --nodeps $HOME/rpmbuild/SPECS/expat.spec | sed 's/^Wrote: //'` 
    28 rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 
    2929sudo cp -pv /etc/yum.conf{,.builddep.orig} 
    3030sudo python -c "import ConfigParser ; cp = ConfigParser.RawConfigParser() ; cp.read('/etc/yum.conf') ; cp.set('main', 'assumeyes', '1') ; cp.write(open('/etc/yum.conf', 'w'))" 
  • packaging/centuryegg/build-libxml-rpm

    r10048 r12486  
    33LIBXML_MAJOR_VERSION=$(echo $LIBXML_VERSION | cut -d "-" -f 1) 
    44mkdir -p logs rpms srpms 
    5 if [ -f rpms/libxml2-$LIBXML_VERSION.i386.rpm ] 
     5rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 
     6if [ -f rpms/libxml2-$LIBXML_VERSION.${rpm_arch}.rpm ] 
    67then 
    7     echo "Not building libxml2 as rpms/libxml2-$LIBXML_VERSION.i386.rpm already exists" 
     8    echo "Not building libxml2 as rpms/libxml2-$LIBXML_VERSION.${rpm_arch}.rpm already exists" 
    89    exit 
    910fi 
     
    2223cd srpms 
    2324wget -c http://mirror.centos.org/centos/5/os/SRPMS/libxml2-$LIBXML_VERSION.src.rpm 
    24 rpm -ivh libxml2-$LIBXML_MAJOR_VERSION*.src.rpm 
     25rpm -ivh --nomd5 libxml2-$LIBXML_MAJOR_VERSION*.src.rpm 
    2526) 
    2627# add to changelog 
    2728src_rpm=`rpmbuild -bs --nodeps $HOME/rpmbuild/SPECS/libxml2.spec | sed 's/^Wrote: //'` 
    28 rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 
    2929sudo cp -pv /etc/yum.conf{,.builddep.orig} 
    3030sudo python -c "import ConfigParser ; cp = ConfigParser.RawConfigParser() ; cp.read('/etc/yum.conf') ; cp.set('main', 'assumeyes', '1') ; cp.write(open('/etc/yum.conf', 'w'))" 
  • packaging/centuryegg/find-srpms

    r12482 r12486  
    209209        continue 
    210210    src_rpm = src_rpm_files[-1] 
    211     subprocess.call(["rpm", "-ivh", src_rpm]) 
     211    subprocess.call(["rpm", "-ivh", "--nomd5", src_rpm]) 
    212212    specfile_name = os.path.join(rpmbuild_dir, "SPECS", "%s.spec" % (p,)) 
    213213    if not os.path.exists(specfile_name): 
  • packaging/centuryegg/install-python-rpm

    r12470 r12486  
    2222# this will build setuptools by side-effect; we simply ignore and rebuild it 
    2323./find-srpms python-setuptools 
    24 rpm -ivh $HOME/Packaging/centuryegg/srpms/python-setuptools*.src.rpm 
     24rpm -ivh --nomd5 $HOME/Packaging/centuryegg/srpms/python-setuptools*.src.rpm 
    2525sed -ie 's/^\(Version: *\)[0-9].*/\10.6c9/g' $HOME/rpmbuild/SPECS/python-setuptools.spec 
    2626sed -ie 's/^\(Name: *\)python-\([a-z0-9]*\)/\1python$PYTHON_SUFFIX-\2/g' $HOME/rpmbuild/SPECS/python-setuptools.spec 
  • packaging/centuryegg/makeall

    r12483 r12486  
    4040    sudo yum install -y python-setuptools-devel 
    4141fi 
    42 ./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" SQLAlchemy pytz || exit 
     42./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" || exit 
    4343if [ "x`rpm -qa Routes`" == "x" ] 
    4444then 
     
    7878./find-srpms "python-ldap>=2.3" || exit 
    7979./find-srpms "python-xlrd>=0.6" || exit 
    80 ./find-srpms python-imaging python-simplejson MySQL-python numpy python-pgsql protobuf python-lxml python-crypto python-suds python-dateutil || exit 
     80./find-srpms python-imaging python-simplejson MySQL-python numpy python-pgsql protobuf python-lxml python-crypto python-suds python-dateutil "python-sqlalchemy>=0.6" "pytz>=2010" || exit 
    8181./find-srpms PyXML || exit 1 
    8282# j5 build requires lxml, dateutil and pytz