On 2 February 2018 at 10:41, Matěj Cepl <mcepl(a)cepl.eu> wrote:
On 2018-02-02, 08:49 GMT, Panu Matilainen wrote:
>> $ wget -P ~/rpmbuild/SOURCES $(rpmbuild -bp --define "prep
>> %dump" bettercap.spec 2>&1 | awk '/SOURCEURL0/ {print $3}')
Or even better
$ spectool -g bettercap.spec
In this case source tar ball will be downloaded to current directory
instead %{_sourcedir}.
You need to add -R option to above.
Nevertheless spectool is for only limited number of operations.
Dumping state of spec internal parser gives you platform to do whatever you
want.
%dump is in the format which is independent from specs
formatting/indentations.
kloczek
--
Tomasz Kłoczko | LinkedIn: *http://lnkd.in/FXPWxH <
http://lnkd.in/FXPWxH>*