Bug 1487888

Summary: Could not parse *.spec with error can't parse specfile
Product: [Community] Copr Reporter: Robbi Nespu <robbinespu>
Component: backendAssignee: clime
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: clime, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-07 20:49:17 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:
Embargoed:

Description Robbi Nespu 2017-09-03 01:24:09 UTC
Description of problem:
I am new with packager, please teach me if I doing wrong. I fork some project to learn about packaging.

I forked a copr project (riot) and try to build new version of riot but failed, source are stored on github https://github.com/RobbiNespu/riot-rpm

Latest build and  log https://copr.fedorainfracloud.org/coprs/robbinespu/Riot/build/597588/

I keep getting the same error for each build, can anyone tell my why and what should I do.

Version-Release number of selected component (if applicable):
n/a

How reproducible:
When building the package

Steps to Reproduce:
1. Login to Copr
2. Go to build or package
3. Build or rebuild package

Actual results:
Build failed

Expected results:
Build success

Additional info:
I already posted on copr-devel mailing list and Michal Novotny inform this is due to bug on Copr side:

>> This is a bug on our side.
>> 
>> More concretely, the error is caused by:
>> 
>> BuildRoot: %(mktemp -ud %{_tmppath}/%{namevr}-XXXXXX)
>> 
>. directive in the spec file. We "disallow" calling external commands currently from the .spec preamble.
>>
>> This will be fixed in the next release. As a temporary solution I would suggest putting the mktemp call into %build section or avoid it completely.

chroot fedora-26-i386 and fedora-26-x86_64 log :
http://copr-dist-git.fedorainfracloud.org/per-task-logs/597588.log

Comment 1 clime 2017-09-07 20:49:17 UTC
Should be fixed now. Please try and reopen if there are further problems.