Bug 1465480

Summary: RFE -Use spectool to fetch sources
Product: [Fedora] Fedora Reporter: Alexis Jeandet <alexis.jeandet>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: emanuele, jdisnard, mebrown, msimacek, msuchy, praiskup, stuart, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-25 21:33:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
Sample spec file none

Description Alexis Jeandet 2017-06-27 13:58:13 UTC
Created attachment 1292343 [details]
Sample spec file

Description of problem:

I have a spec file with sources  linked like this(Full spec file attached):

%global commit0 cf13c413f641b5816a4fc9cd4b2fb248c81bf2bd
URL:            https://github.com/verateam/%{name}
Source0: https://github.com/verateam/%{name}/archive/%{commit0}.tar.gz

Following this doc:

locally it works with:
spectool -g -R vera.spec && rpmbuild -bs ./vera.spec && rpmbuild -bb ./vera.spec

Actual results:

It doesn't build on copr, because it doesn't fetch sources:

Expected results:

Additional info:

Comment 1 Miroslav Suchý 2017-06-27 15:09:59 UTC
This should be implemented in Mock first before we can do that in Copr.

Comment 2 Miroslav Suchý 2017-12-25 21:33:46 UTC
In the mean time this have been implemented in rpkg-client
So you should create srpm using rpkg-client and then build it in Copr/Mock.