Bug 1465480 - RFE -Use spectool to fetch sources
Summary: RFE -Use spectool to fetch sources
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-27 13:58 UTC by Alexis Jeandet
Modified: 2017-12-25 21:33 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-25 21:33:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Sample spec file (2.87 KB, text/plain)
2017-06-27 13:58 UTC, Alexis Jeandet
no flags Details

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:
https://fedoraproject.org/wiki/Packaging:SourceURL?rd=Packaging/SourceURL#Git_Hosting_Services

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:
https://copr.fedorainfracloud.org/coprs/ajeandet/SciQLop/build/570647/

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
  https://pagure.io/rpkg-client
So you should create srpm using rpkg-client and then build it in Copr/Mock.


Note You need to log in before you can comment on or make changes to this bug.