Creating a link in RPM spec file

James Harrison jamesaharrisonuk at yahoo.co.uk
Tue May 11 00:23:56 UTC 2004


It doesnt appear to make it with my rpm spec. Heres an extract:

%install
mkdir /opt/OpenPBS
mkdir /opt/OpenPBS/2.3.16
ln -s /opt/OpenPBS/2.3.16 /opt/OpenPBS/latest

cd $RPM_BUILD_DIR/OpenPBS_2_3_16
make install

cd /usr/src/redhat/BUILD/OpenPBS_2_3_16/doc
make install

The ln -s command does not make the link. I forgot to mention that this spec
file makes about 5 RPMs. It makes a server, man, devel, xpbs, xpbsmon rpm.

Which RPM does the %install section refer to?

Thanks

James

--- Michael Schwendt <fedora at wir-sind-cool.org> wrote:
> On Mon, 10 May 2004 16:12:40 -0700 (PDT), James Harrison wrote:
> 
> > Hello,
> > 
> > Can anyone tell me how to make a softlink from inside an rpm spec file. 
> Im
> > using 
> > rpm version 4.2.
> > 
> > Ive looked at initscripts.spec rpm source file and in particular the ifup
> > command in etc.  I know its a link:
> > 
> > /etc/sysconfig/network-scripts/ifup -> ../../../sbin/ifup
> > 
> > In the spec file the %files line for it is:
> > 
> > /etc/sysconfig/network-scripts/ifup
> > %config /sbin/ifup
> > 
> > But how does the link get made?
> 
> You can create it in the %install section.
>  
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 





More information about the redhat-list mailing list