Show
Ignore:
Timestamp:
01/21/11 07:00:21 (16 months ago)
Author:
build
Message:

Add bcond_Definitions into the sqlite build when building on Centos 4

Files:
1 modified

Legend:

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

    r12505 r12655  
    2525rpm -ivh --nomd5 sqlite-$SQLITE_MAJOR_VERSION*.src.rpm 
    2626) 
     27if [ "x$REDHAT_VERSION" != "x" ] && [ $REDHAT_VERSION -lt 5 ] && [ $(grep "define bcond_with" ~/rpmbuild/SPECS/sqlite.spec | wc -l) -eq 0 ] 
     28then 
     29    cat bcond_definitions ~/rpmbuild/SPECS/sqlite.spec >~/rpmbuild/SPECS/sqlite_.spec 
     30    mv ~/rpmbuild/SPECS/sqlite{_,}.spec 
     31fi 
    2732# add to changelog 
    2833src_rpm=`rpmbuild -bs --nodeps $HOME/rpmbuild/SPECS/sqlite.spec | sed 's/^Wrote: //'`