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

2018-02-05 Thread Michael Šimáček
On 2018-02-02 17:52, Jason L Tibbitts III wrote: "PM" == Panu Matilainen writes: PM> Yes spectool was recommended by somebody else already, but PM> ultimately only rpm itself can truly parse a spec, spectool is just PM> a rough approximation (but usually does work in the

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

2018-02-05 Thread Panu Matilainen
On 02/02/2018 04:51 PM, Tomasz Kłoczko wrote: On 2 February 2018 at 08:49, Panu Matilainen > wrote: [..] You need to download Source0 first. Try: $ wget -P ~/rpmbuild/SOURCES $(rpmbuild -bp --define "prep %dump"

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

2018-02-02 Thread Sérgio Basto
On Fri, 2018-02-02 at 07:05 +, Tom Hughes wrote: > On 02/02/18 04:47, Luya Tshimbalanga wrote: > > > Quick hint I have learned and here is the example for COPR Scribus > > spec > > file: > > > > https://github.com/%{name}project/%{name}/archive/master.tar.gz#/%{ > >

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

2018-02-02 Thread Jason L Tibbitts III
> "PM" == Panu Matilainen writes: PM> Yes spectool was recommended by somebody else already, but PM> ultimately only rpm itself can truly parse a spec, spectool is just PM> a rough approximation (but usually does work in the more common PM> cases, yes) Actually the

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

2018-02-02 Thread Tomasz Kłoczko
On 2 February 2018 at 10:41, 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}') > > Or even better > > $ spectool -g

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

2018-02-02 Thread Tomasz Kłoczko
On 2 February 2018 at 08:49, Panu Matilainen 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

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

2018-02-02 Thread Panu Matilainen
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

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

2018-02-02 Thread Matěj Cepl
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 (spectool is from rpmdevtools) Matěj -- http://matej.ceplovi.cz/blog/,

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

2018-02-02 Thread nicolas . mailhot
Hi, Alternatively, in fedora-devel, you can play with: https://fedoraproject.org/wiki/Forge-hosted_projects_packaging_automation#Packaging_examples The intent is to push it to Fedora stable and probably EPEL after a few weeks of testing in devel. So don't wait for the push to stable to check

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

2018-02-02 Thread Panu Matilainen
On 02/02/2018 02:21 AM, Tomasz Kłoczko wrote: On 1 February 2018 at 23:42, Germano Massullo > wrote: [,..] you will obviously get error: File /home/user/rpmbuild/SOURCES/bettercap-ng-eb1a53e.tar.gz: No such file or

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

2018-02-01 Thread Tom Hughes
On 02/02/18 04:47, Luya Tshimbalanga wrote: Quick hint I have learned and here is the example for COPR Scribus spec file: https://github.com/%{name}project/%{name}/archive/master.tar.gz#/%{name}-%{version}-%{build_timestamp}git.tar.gz Note the hash tag meant to rename the package. That is

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

2018-02-01 Thread Luya Tshimbalanga
Quick hint I have learned and here is the example for COPR Scribus spec file: https://github.com/%{name}project/%{name}/archive/master.tar.gz#/%{name}-%{version}-%{build_timestamp}git.tar.gz Note the hash tag meant to rename the package. Luya On 2018-02-01 03:42 PM, Germano Massullo wrote: >

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

2018-02-01 Thread Robert-André Mauchin
On vendredi 2 février 2018 01:21:55 CET Tomasz Kłoczko wrote: > On 1 February 2018 at 23:42, Germano Massullo > wrote: > [,..] > > > you will obviously get > > > > error: File /home/user/rpmbuild/SOURCES/bettercap-ng-eb1a53e.tar.gz: No > > such file or directory. > >

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

2018-02-01 Thread Tomasz Kłoczko
On 1 February 2018 at 23:42, Germano Massullo wrote: [,..] > you will obviously get > > error: File /home/user/rpmbuild/SOURCES/bettercap-ng-eb1a53e.tar.gz: No > such file or directory. > > Therefore I think wiki line > > Source0:

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

2018-02-01 Thread Germano Massullo
Thank you ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org

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

2018-02-01 Thread Robert-André Mauchin
On vendredi 2 février 2018 00:42:07 CET Germano Massullo wrote: > I think I have found a shortcoming in > https://fedoraproject.org/wiki/Packaging:SourceURL#Commit_Revision > Github line, which is > Source0: > https://github.com/OWNER/%{name}/archive/%{commit}/%{name}-%{shortcommit}.ta > r.gz but

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

2018-02-01 Thread Robert-André Mauchin
On vendredi 2 février 2018 00:42:07 CET Germano Massullo wrote: > I think I have found a shortcoming in > https://fedoraproject.org/wiki/Packaging:SourceURL#Commit_Revision > Github line, which is > Source0: > https://github.com/OWNER/%{name}/archive/%{commit}/%{name}-%{shortcommit}.ta > r.gz but

Packaging wiki: shortcoming in Github Source0 (?)

2018-02-01 Thread Germano Massullo
I think I have found a shortcoming in https://fedoraproject.org/wiki/Packaging:SourceURL#Commit_Revision Github line, which is Source0: https://github.com/OWNER/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz but I am not sure, so I have not made any edit to the wiki page. In my case I am