Re: Packaging wiki: shortcoming in Github Source0 (?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2 February 2018 at 08:49, Panu Matilainen <pmatilai@xxxxxxxxxx> wrote:
[..]
You need to download Source0 first.
Try:

$ wget -P ~/rpmbuild/SOURCES $(rpmbuild -bp --define "prep %dump" bettercap.spec 2>&1 | awk '/SOURCEURL0/ {print $3}')

That's a rather arcane way of getting something out of the spec, you might want to give 'rpmspec --parse' a try. Eg

$ rpmspec --parse rpm.spec |awk '/Source/ {print $2}'
http://rpm.org/releases/testing/rpm-4.14.90-git14108.tar.bz2

Just try to change in the spec file s/Source/SOurce/ and you will find that your onliner will fail when mine still will be working.

kloczek
-- 
Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux