Changeset 12486
- Timestamp:
- 11/12/10 01:11:31 (18 months ago)
- Location:
- packaging/centuryegg
- Files:
-
- 5 modified
-
build-expat-rpm (modified) (2 diffs)
-
build-libxml-rpm (modified) (2 diffs)
-
find-srpms (modified) (1 diff)
-
install-python-rpm (modified) (1 diff)
-
makeall (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
packaging/centuryegg/build-expat-rpm
r10048 r12486 3 3 EXPAT_MAJOR_VERSION=$(echo $EXPAT_VERSION | cut -d "-" -f 1) 4 4 mkdir -p logs rpms srpms 5 if [ -f rpms/expat-$EXPAT_VERSION.i386.rpm ] 5 rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 6 if [ -f rpms/expat-$EXPAT_VERSION.${rpm_arch}.rpm ] 6 7 then 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" 8 9 exit 9 10 fi … … 22 23 cd srpms 23 24 wget -c http://mirror.centos.org/centos/5/os/SRPMS/expat-$EXPAT_VERSION.src.rpm 24 rpm -ivh expat-$EXPAT_MAJOR_VERSION*.src.rpm25 rpm -ivh --nomd5 expat-$EXPAT_MAJOR_VERSION*.src.rpm 25 26 ) 26 27 # add to changelog 27 28 src_rpm=`rpmbuild -bs --nodeps $HOME/rpmbuild/SPECS/expat.spec | sed 's/^Wrote: //'` 28 rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null`29 29 sudo cp -pv /etc/yum.conf{,.builddep.orig} 30 30 sudo 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 3 3 LIBXML_MAJOR_VERSION=$(echo $LIBXML_VERSION | cut -d "-" -f 1) 4 4 mkdir -p logs rpms srpms 5 if [ -f rpms/libxml2-$LIBXML_VERSION.i386.rpm ] 5 rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null` 6 if [ -f rpms/libxml2-$LIBXML_VERSION.${rpm_arch}.rpm ] 6 7 then 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" 8 9 exit 9 10 fi … … 22 23 cd srpms 23 24 wget -c http://mirror.centos.org/centos/5/os/SRPMS/libxml2-$LIBXML_VERSION.src.rpm 24 rpm -ivh libxml2-$LIBXML_MAJOR_VERSION*.src.rpm25 rpm -ivh --nomd5 libxml2-$LIBXML_MAJOR_VERSION*.src.rpm 25 26 ) 26 27 # add to changelog 27 28 src_rpm=`rpmbuild -bs --nodeps $HOME/rpmbuild/SPECS/libxml2.spec | sed 's/^Wrote: //'` 28 rpm_arch=`rpmbuild -E %{_arch} 2>/dev/null`29 29 sudo cp -pv /etc/yum.conf{,.builddep.orig} 30 30 sudo 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 209 209 continue 210 210 src_rpm = src_rpm_files[-1] 211 subprocess.call(["rpm", "-ivh", src_rpm])211 subprocess.call(["rpm", "-ivh", "--nomd5", src_rpm]) 212 212 specfile_name = os.path.join(rpmbuild_dir, "SPECS", "%s.spec" % (p,)) 213 213 if not os.path.exists(specfile_name): -
packaging/centuryegg/install-python-rpm
r12470 r12486 22 22 # this will build setuptools by side-effect; we simply ignore and rebuild it 23 23 ./find-srpms python-setuptools 24 rpm -ivh $HOME/Packaging/centuryegg/srpms/python-setuptools*.src.rpm24 rpm -ivh --nomd5 $HOME/Packaging/centuryegg/srpms/python-setuptools*.src.rpm 25 25 sed -ie 's/^\(Version: *\)[0-9].*/\10.6c9/g' $HOME/rpmbuild/SPECS/python-setuptools.spec 26 26 sed -ie 's/^\(Name: *\)python-\([a-z0-9]*\)/\1python$PYTHON_SUFFIX-\2/g' $HOME/rpmbuild/SPECS/python-setuptools.spec -
packaging/centuryegg/makeall
r12483 r12486 40 40 sudo yum install -y python-setuptools-devel 41 41 fi 42 ./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" SQLAlchemy pytz|| exit42 ./build-rpms decorator Genshi Routes ZSI xlwt html5lib multiprocessing soaplib "pyparsing==1.5.1" "CherryPy>=3.0" || exit 43 43 if [ "x`rpm -qa Routes`" == "x" ] 44 44 then … … 78 78 ./find-srpms "python-ldap>=2.3" || exit 79 79 ./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 || exit80 ./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 81 81 ./find-srpms PyXML || exit 1 82 82 # j5 build requires lxml, dateutil and pytz
