It doesn't seem to be possible have spectool pass --target to rpmbuild, therefore making it impossible to fetch stuff let's say on a i386 with a specfile that states "ExclusiveArch: i586 i686". Could you fix this in the "upstream" spectool distribution? Then, I'd just import it to rpmdevtools. On a further note, it would be cool if spectool could be a bit more verbose about encountered errors... for example in the above case, nothing happens. Using the -D option I can get the stderr filename and go look up what's wrong, but ideally I'd like to see the error right there on the console if things fail.
Created attachment 122580 [details] Ignore ExlusiveArch and friends Here's one approach that appears to work for me. Thoughts?
I've applied this patch and released spectool-1.0.5.
Included in 1.4-1, thanks.
Hmm, BuildArch needs treatment too. Fix below; Nils, could you roll a new spectool again for this? --- spectool~ 2005-12-30 11:48:09.000000000 +0200 +++ spectool 2006-02-09 00:21:28.000000000 +0200 @@ -85,7 +85,7 @@ last; } } - next if ($line =~ m/^\s*Exclu(d|siv)e(Arch|OS)\s*:/i); + next if ($line =~ m/^\s*(Build|Exclu(d|siv)e)(Arch|OS)\s*:/i); $preamble .= $line; if ($line !~ m/^\s*(?:source|patch)\d*\s*:/) { print $tmpspec_fh $line;
I've applied a slightly modified -- I don't think there is a BuildOS: tag ;-) -- fix in spectool-1.0.7.
Right, thanks.