Re: topdir macro

2009-05-12 Thread Elan Ruusamäe
On Tuesday 12 May 2009 09:57, Adam Gołębiowski wrote: > As for now, it looks like that builder supports packages/ layout while > rpmbuild the old one. It is not a perfect solution (some magic to detect > the layout would be nice), but better than no support for > ~/rpm/{SPECS,SOURCES}/ . here's my

Re: topdir macro

2009-05-11 Thread Adam Gołębiowski
Elan Ruusamäe pisze: > On Friday 08 May 2009 12:33:01 Elan Ruusamäe wrote: >> On Sunday 03 May 2009 13:31:15 Arkadiusz Miskiewicz wrote: >>> 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 i

Re: topdir macro

2009-05-11 Thread Elan Ruusamäe
On Friday 08 May 2009 12:33:01 Elan Ruusamäe wrote: > On Sunday 03 May 2009 13:31:15 Arkadiusz Miskiewicz wrote: > > 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. > > why i

Re: topdir macro

2009-05-08 Thread Elan Ruusamäe
On Sunday 03 May 2009 13:31:15 Arkadiusz Miskiewicz wrote: > 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. why is it so? i mean why you need it being installed in rpm/{SOURCES

Re: topdir macro

2009-05-03 Thread Jeff Johnson
On May 3, 2009, at 6:26 AM, 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}/

Re: topdir macro

2009-05-03 Thread Jan Rekorajski
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/

Re: topdir macro

2009-05-03 Thread Arkadiusz Miskiewicz
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/%

topdir macro

2009-05-03 Thread Elan Ruusamäe
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