Re: Creating a link in RPM spec file

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

 



On Mon, 10 May 2004 17:23:56 -0700 (PDT), James Harrison wrote:

> 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

This looks questionable. You should be in the proper directory already.
No need to use $RPM_BUILD_DIR explicitly.
 
> cd /usr/src/redhat/BUILD/OpenPBS_2_3_16/doc
> make install

Same here.
 
> 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.

You should be installing into a buildroot, e.g.
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
> Which RPM does the %install section refer to?

None. It's a general build script section.


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux