swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] swarmapps-objc-2.2 test version available


From: Giovanni Maniscalco Basile
Subject: Re: [Swarm-Support] swarmapps-objc-2.2 test version available
Date: Tue, 08 Mar 2005 09:18:58 +0100

It is not so easy!
 The rpm doesn't find jdk:


error: Failed build dependencies:
        jdk = 2000:1.5.0 is needed by swarm-2.2-1_SuSE_9.2
whereas my jdk is 1.5.0_01 and I corrected the path on swarm-2.2.spec.
What should I do?



Il giorno lun, 07-03-2005 alle 11:21 -0600, Paul Johnson ha scritto:
> If you are serious about making an RPM, it is easy.
> 
> Get this package:
> 
> http://lark.cc.ku.edu/~pauljohn/Swarm/Swarm-2.2X_Fdr3/swarm-2.2-1_fc3.src.rpm
> 
> If you have a "stock" system, and you install that, it will dump it into 
>   /usr/src/redhat
> 
> and those directories are owned by root, and so you have trouble 
> building things unless you are root.  If you want to do that, look in
> 
> /usr/src/redhat/SPECS/swarm-2.2.spec
> 
> In there, the only lines you should have to change will concern the 
> version and  jdk edition. for version, replace my FC3 with SUSE92 or 
> whatever.  I think in there I had jdk-1.5.0, but due to trouble with 
> that, I'm planning to revert back to j2sdk-1.4.2_07.  So if that is what 
> you use, I think it will be fine.
> 
> After editing that, you run this command
> 
> rpmbuild -ba swarm-2.2.spec
> 
> It will create the rpms as well as a new srpm.
> 
> Now, if you don't want to do this as root (and I don't think you 
> should), you can build RPMS as an ordinary use if you either
> 
> 1. change the permissions on all those directories under /usr/src/redhat 
> so that users can read & write, or
> 
> 2. put in a file  called .rpmmacros in your home directory that re-sets 
> the value of that directory.  Here's my .rpmmacros
> 
> %_topdir  /home/pauljohn/LinuxDownloads/redhat
> 
> I had to manually create the directories
> 
> mkdir -p /home/pauljohn/LinuxDownloads/redhat/SPECS
> mkdir -p /home/pauljohn/LinuxDownloads/redhat/SRPMS
> mkdir -p /home/pauljohn/LinuxDownloads/redhat/BUILD
> mkdir -p /home/pauljohn/LinuxDownloads/redhat/RPMS/i386
> mkdir -p /home/pauljohn/LinuxDownloads/redhat/RPMS/i686
> 
> After that, when you run the rpmbuild program as a user, it will do all 
> the work in the directory you specify.
> 
> Of course, you can specify any directory you want,you don't have to use 
> LinuxDownloads/redhat .
> 
> 
> 
> 
> Giovanni Maniscalco Basile wrote:
> > Dear Paul,
> >  as fopr SuSE 9.2 I did as follows:
> > 
> > 1. I downloaded the last version of Swarm for fc3;
> > 2. I installed first gperf (./configure complains if it doesn't find
> > it!);
> > 3. I downloaded the most recent RPM surces of BLT and HDF5 and installed
> > them via rpmbuild --rebuild
> > 4. after that 
> > $tar xvfz swarm-2.2.tar.gz
> > $./configure --with-jdkdir=<MyJdkdir>
> > $make
> > $make install
> >  and everything works.
> > 
> > If I knew how to do it I would be glad to build an RPM for SuSE 9.2
> > Thanks for everything.
> > 
> 
> >>>>
> >>
> 
> 
-- 
Giovanni Maniscalco Basile <address@hidden>

Attachment: swarm-2.2.spec
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]