topdir macro
Jan Rekorajski
baggins at sith.mimuw.edu.pl
Sun May 3 13:02:43 CEST 2009
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
More information about the pld-devel-en
mailing list