Courier-0.47 RPMBuild error

Fedora List Subscriber fedora at bluewise.co.za
Tue Nov 16 13:19:22 UTC 2004


Hi Paul

Thanks for this insight, but I imagine it would be easier to apply the
relative softlink you mentioned earlier:

ln -s ../../some.dir/some.file $RPM_BUILD_ROOT/other.dir/some.file

than to hack the courier.spec file and apply the below?

S.

> # Figure out how deep down bindir is
> touch $RPM_BUILD_ROOT/rootfile
> root=..
> while [ ! -r $RPM_BUILD_ROOT/%{_bindir}/${root}/rootfile ] ; do
> 	root=${root}/..
> done
> 
> # Install symlink from %{_bindir} to %{_datadir}
> %{__ln_s} ${root}/%{_datadir}/some.file  $RPM_BUILD_ROOT/%{_bindir}/some.file
> 
> # Clean up temporary files in buildroot
> %{__rm} -f $RPM_BUILD_ROOT/rootfile
> 
> Technique as used in Fedora sendmail package.





More information about the users mailing list