On Sun, 03 May 2009, Elan Ruusamäe wrote:

> why not have such default macros:
> 
> %_topdir        %{expand:%%global _topdir %(d=$([ -d ../../packages ] && (cd 
> ../.. && pwd)); d=${d:-$([ -d ../packages ] && (cd ..; pwd))}; echo 
> ${d:-$HOME/rpm})}%_topdir
> %_specdir       %{_topdir}/packages/%{name}
> %_sourcedir     %{_specdir}
> 
> the %{name} seems to work too:

It won't work in case of _alt_kernel and all other packages that have
%{name} inconsistent with package name.

-- 
Jan Rekorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC              |                   -- TROOPS by Kevin Rubio
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to