root/packaging/centuryegg/build-tango-rpms

Revision 9037, 2.4 KB (checked in by davidm, 2 years ago)

Script can now build omniORB and omniNotify and set up for Tango build

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:mime-type set to text/plain
Line 
1#!/bin/bash
2olddir=`pwd`
3
4# omniORB
5cd ~/rpmbuild/SOURCES
6wget -c http://downloads.sourceforge.net/project/omniorb/omniORB/omniORB-4.1.4/omniORB-4.1.4.tar.gz
7cd $olddir
8cd packages
9tar xzf ~/rpmbuild/SOURCES/omniORB-4.1.4.tar.gz
10cd omniORB-4.1.4/contrib/RPMs || exit 1
11sed -ie "s/^#*\(.*\)man1\(\/omniNames\*\)/\1man8\2/" omniORB.spec
12sed -ie "s/^#*\(.*\)man1\(\/omniMapper\*\)/\1man8\2/" omniORB.spec
13sed -ie "/man1\/nameclt/ a\
14%{_mandir}/man1/convertior.1.gz" omniORB.spec
15sed -ie "/man1\/omniidl\*/ a\
16%attr(644,root,man) %{_mandir}/man1/omnicpp*" omniORB.spec
17if [ "x`rpm -qa omniORB`" == "x" ]
18then
19    sed -ie "/%doc doc\/\*/ a\
20%{_docdir}/libomniORB4.1-devel-4.1.4\/*" omniORB.spec
21    sed -ie "/%doc doc\/\*/ a\
22%{_docdir}/libomniORB4.1-4.1.4\/*" omniORB.spec
23fi
24yes y | rpmbuild -ba omniORB.spec || exit 1
25cd $olddir
26cp ~/rpmbuild/RPMS/*/omniORB-*4.1.4*.rpm rpms/
27if [ "x`rpm -qa omniORB`" == "x" ]
28then
29    sudo rpm -Uvh rpms/omniORB-*4.1.4*.rpm
30fi
31
32# omniNotify
33cd ~/rpmbuild/SOURCES
34wget -c http://downloads.sourceforge.net/project/omninotify/omninotify/omniNotify%202.1/omniNotify-2.1.tar.gz
35cd $olddir
36cp omniNotify ~/rpmbuild/SOURCES
37rpmbuild -ba omniNotify.spec || exit 1
38cp ~/rpmbuild/RPMS/*/omniNotify-*2.1*.rpm rpms/
39if [ "x`rpm -qa omniNotify`" == "x" ]
40then
41    sudo rpm -Uvh rpms/omniNotify-*2.1*.rpm
42fi
43
44 Tango
45cd ~/rpmbuild/SOURCES
46if [ ! -f jdk-1_5_0_15-linux-i586.bin ]
47then
48    echo Please go to the SUN JDK Archive Page at http://java.sun.com/products/archive/ and download JDK version 5.0 update 15 self-extracting file and save in ~/rpmbuild/SOURCES
49    echo Press any key to continue
50    read
51fi
52cd $olddir
53cd srpms
54wget -c http://mirrors.dotsrc.org/jpackage/1.7/generic/SRPMS.non-free/java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm
55rpmbuild --rebuild java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm || exit 1
56cd $olddir
57cp ~/rpmbuild/RPMS/*/java-1.5.0-*.rpm rpms/
58if [ "x`rpm -qa xorg-x11-deprecated-libs | grep 1.5.0`" == "x" ]
59then
60    sudo yum install -y xorg-x11-deprecated-libs
61fi
62if [ "x`rpm -qa java | grep 1.5.0`" == "x" ]
63then
64    sudo rpm -Uvh rpms/java-1.5.0-*.rpm
65fi
66
67if [ "x`rpm -qa mysql-server`" == "x" ]
68then
69    sudo yum install -y mysql-server
70fi
71sudo /etc/init.d/mysql start
72sudo mysqladmin create tango
73sudo mysqlaccess tango tango -p tango
74
75cd ~/rpmbuild/SOURCES
76wget -c http://ftp.esrf.fr/pub/cs/tango/tango-6.1.1.c.tar.gz
77cd $olddir
78cd packages
79tar xzf ~/rpmbuild/SOURCES/tango-6.1.1.c.tar.gz
Note: See TracBrowser for help on using the browser.