Re: Courier-0.47 RPMBuild error

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

 



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.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux