On 02/02/2018 12:41 PM, Matěj Cepl 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}')


Please mind your quotes, I didn't write that.


Or even better

     $ spectool -g bettercap.spec

(spectool is from rpmdevtools)

Yes spectool was recommended by somebody else already, but ultimately only rpm itself can truly parse a spec, spectool is just a rough approximation (but usually does work in the more common cases, yes)

        - Panu -

Matěj

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to