topdir macro
Arkadiusz Miskiewicz
arekm at maven.pl
Sun May 3 12:31:15 CEST 2009
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/
More information about the pld-devel-en
mailing list