On Sunday 03 of 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}

It's nice bit it will break in a case when you use some .src.rpm and install 
it. It should be installed in standard place - rpm/{SOURCES,SPECS} not in our 
packages.

I actually did that _years_ ago, so it's not big deal for me but worth 
considering.

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/

_______________________________________________
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