Re: An easy way to redefine configure?

2009-08-04 Thread Alexander Boström
tis 2009-08-04 klockan 12:14 +0300 skrev Jussi Lehtola: > What's the correct way to do this? I don't know about correct, but this should work: mkdir foo cd foo cat >configure <<'EOF' #!/bin/bash exec ../configure "$@" EOF chmod 755 configure %configure /abo -- fedora-devel-list mailing list

Re: An easy way to redefine configure?

2009-08-04 Thread Adam Williamson
On Tue, 2009-08-04 at 15:58 +0300, Jussi Lehtola wrote: > On Tue, 2009-08-04 at 14:47 +0200, Andreas Schwab wrote: > > Jussi Lehtola writes: > > > > > So far I've tried > > > > > > %global dconfigure %(echo "%{configure}" | sed > > > 's|./configure|../configure|g') > > > > Since %configure expan

Re: An easy way to redefine configure?

2009-08-04 Thread Jussi Lehtola
On Tue, 2009-08-04 at 14:47 +0200, Andreas Schwab wrote: > Jussi Lehtola writes: > > > So far I've tried > > > > %global dconfigure %(echo "%{configure}" | sed > > 's|./configure|../configure|g') > > Since %configure expands to a text containing double quotes this gets > the quoting wrong. Usin

Re: An easy way to redefine configure?

2009-08-04 Thread Fabian Deutsch
Am Dienstag, den 04.08.2009, 14:15 +0200 schrieb Ralf Corsepius: > On 08/04/2009 02:01 PM, Jussi Lehtola wrote: > > On Tue, 2009-08-04 at 13:42 +0200, Mattias Ellert wrote: > >>> What's the correct way to do this? > >> > >> %global dconfigure %(rpm -E %%configure | sed > 's!./configure!../configure

Re: An easy way to redefine configure?

2009-08-04 Thread Andreas Schwab
Jussi Lehtola writes: > So far I've tried > > %global dconfigure %(echo "%{configure}" | sed > 's|./configure|../configure|g') Since %configure expands to a text containing double quotes this gets the quoting wrong. Using single quotes work here (albeit still not general enough): %global dconf

Re: An easy way to redefine configure?

2009-08-04 Thread Ralf Corsepius
On 08/04/2009 02:01 PM, Jussi Lehtola wrote: On Tue, 2009-08-04 at 13:42 +0200, Mattias Ellert wrote: What's the correct way to do this? %global dconfigure %(rpm -E %%configure | sed 's!./configure!../configure!g') %dconfigure This works, but isn't it bad style to call rpm from within a spec

Re: An easy way to redefine configure?

2009-08-04 Thread Jussi Lehtola
On Tue, 2009-08-04 at 13:42 +0200, Mattias Ellert wrote: > > What's the correct way to do this? > > %global dconfigure %(rpm -E %%configure | sed 's!./configure!../configure!g') > %dconfigure This works, but isn't it bad style to call rpm from within a spec file..? -- Jussi Lehtola Fedora Projec

Re: An easy way to redefine configure?

2009-08-04 Thread Mattias Ellert
tis 2009-08-04 klockan 12:14 +0300 skrev Jussi Lehtola: > Hi, > > > related to the MPI packaging draft > http://www.fedoraproject.org/wiki/PackagingDrafts/MPI > I have a need to redefine %configure to use ../configure instead > of ./configure to do off-root builds. > > > So far I've tried > >

Re: An easy way to redefine configure?

2009-08-04 Thread Michael Schwendt
On Tue, 04 Aug 2009 12:14:34 +0300, Jussi wrote: > Hi, > > > related to the MPI packaging draft > http://www.fedoraproject.org/wiki/PackagingDrafts/MPI > I have a need to redefine %configure to use ../configure instead > of ./configure to do off-root builds. > > > So far I've tried > > %glob

An easy way to redefine configure?

2009-08-04 Thread Jussi Lehtola
Hi, related to the MPI packaging draft http://www.fedoraproject.org/wiki/PackagingDrafts/MPI I have a need to redefine %configure to use ../configure instead of ./configure to do off-root builds. So far I've tried %global dconfigure %(echo "%{configure}" | sed 's|./configure|../configure|g')