# yum install rpm-build # cd /etc/yum.repos.d/ # wget http://www.jpackage.org/jpackage.repo Edit /etc/yum.repos.d/jpackage.repo and enable=1 [jpackage-rhel] and [jpackage-generic-nonfree] # yum -y install jpackage-utils # su - wmcdonald $ mkdir -p rpm/{BUILD,RPMS/{i386,i586,noarch},SOURCES,SPECS,SRPMS,tmp} Edit ~/.rpmmacros and add... %_topdir %(echo ${HOME}/rpm) %_tmppath %{_topdir}/tmp %packager Will Mc Donald $ cd rpm/RPMS/noarch/ $ wget http://mirrors.dotsrc.org/jpackage/1.6/generic/non-free/SRPMS/java-1.5.0-sun-1.5.0.07-1jpp.nosrc.rpm $ wget http://mirrors.dotsrc.org/jpackage/1.6/generic/non-free/SRPMS/jta-1.0.1-0.b.4jpp.nosrc.rpm $ rpm -ivh java-1.5.0-sun-1.5.0.07-1jpp.nosrc.rpm jta-1.0.1-0.b.4jpp.nosrc.rpm $ cd ~/rpm/SOURCES/ Go to http://java.sun.com/products/archive/j2se/5.0_07/index.html then Download JDK, Accept License Agreement, then download: jdk-1_5_0_07-linux-i586.bin Either download manually then copy into ~/rpm/SOURCES/ or copy the link once you've agreed to the license for jdk-1_5_0_07-linux-i586.bin and then replace $LINK... $ lftpget $LINK Go to http://java.sun.com/products/jta/ then download jta-1_0_1B-classes.zip (Class Files 1.0.1B) and jta-1_0_1B-doc.zip (JavaDocs 1.0.1B). For each download again either download manually and copy to ~/rpm/SOURCES/ or copy the $LINK and then $ lftpget $LINK $ cd ~ $ rpmbuild -ba ~/rpm/SPECS/java-1.5.0-sun.spec $ rpmbuild -ba ~/rpm/SPECS/jta.spec This should scroll a bunch of stuff up the screen ending with... Wrote: /home/wmcdonald/rpm/SRPMS/java-1.5.0-sun-1.5.0.07-1jpp.nosrc.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-1.5.0.07-1jpp.i586.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-devel-1.5.0.07-1jpp.i586.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-src-1.5.0.07-1jpp.i586.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-demo-1.5.0.07-1jpp.i586.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-plugin-1.5.0.07-1jpp.i586.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-fonts-1.5.0.07-1jpp.i586.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-alsa-1.5.0.07-1jpp.i586.rpm Wrote: /home/wmcdonald/rpm/RPMS/i586/java-1.5.0-sun-jdbc-1.5.0.07-1jpp.i586.rpm Executing(%clean): /bin/sh -e /home/wmcdonald/rpm/tmp/rpm-tmp.86010 + umask 022 + cd /home/wmcdonald/rpm/BUILD + cd jdk1.5.0_07 + rm -rf /home/wmcdonald/rpm/tmp/java-1.5.0-sun-1.5.0.07-1jpp-buildroot + exit 0 $ cd ~ $ rpmbuild -ba ~/rpm/SPECS/jta.spec This should scroll a bunch of stuff up the screen ending with... $ logout # yum install unixODBC-devel # cd /home/wmcdonald/rpm/RPMS/i586/ # rpm -ivh java-1.5.0-sun-1.5.0.07-1jpp.i586.rpm java-1.5.0-sun-alsa-1.5.0.07-1jpp.i586.rpm java-1.5.0-sun-demo-1.5.0.07-1jpp.i586.rpm java-1.5.0-sun-devel-1.5.0.07-1jpp.i586.rpm java-1.5.0-sun-fonts-1.5.0.07-1jpp.i586.rpm java-1.5.0-sun-jdbc-1.5.0.07-1jpp.i586.rpm java-1.5.0-sun-plugin-1.5.0.07-1jpp.i586.rpm # su - wmcdonald $ cd ~ $ rpmbuild -ba ~/rpm/SPECS/jta.spec This should scroll a bunch of stuff up the screen ending with... Wrote: /home/wmcdonald/rpm/SRPMS/jta-1.0.1-0.b.4jpp.nosrc.rpm Wrote: /home/wmcdonald/rpm/RPMS/noarch/jta-1.0.1-0.b.4jpp.noarch.rpm Wrote: /home/wmcdonald/rpm/RPMS/noarch/jta-javadoc-1.0.1-0.b.4jpp.noarch.rpm Executing(%clean): /bin/sh -e /home/wmcdonald/rpm/tmp/rpm-tmp.89566 + umask 022 + cd /home/wmcdonald/rpm/BUILD + cd jta-1.0.1 + rm -rf /home/wmcdonald/rpm/tmp/jta-1.0.1-0.b.4jpp-buildroot + exit 0 $ logout # cd /home/wmcdonald/rpm/RPMS/i586/ # rpm -ivh jta-1.0.1-0.b.4jpp.noarch.rpm jta-javadoc-1.0.1-0.b.4jpp.noarch.rpm # yum install eclipse-ecj