Bug 1310329

Summary: fedpkg srpm failed for parsing weakdep tags
Product: Red Hat Enterprise Linux 7 Reporter: Parag Nemade <pnemade>
Component: rpmAssignee: Florian Festi <ffesti>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-08 16:06:15 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 Parag Nemade 2016-02-20 13:06:08 UTC
Description of problem:
For some reason, I had to use RHEL7 machine to test and scratch build Fedora rawhide packages. I checkout master branch of libreoffice and tried "fedpkg srpm" on RHEL7

I got error
"error: line 289: Unknown tag: Recommends: libreoffice-calc(x86-64) = 1:5.1.1.1-4.fc24
error: query of specfile /home/parag/libreoffice/libreoffice.spec failed, can't parse

Could not execute srpm: Could not get n-v-r-e from '\n'
"

I assume this mean rpm got no support of weakdeps in RHEL7. But is there no way then to have some kind of forceful generation of srpm, I can use then koji for official or scratch build.

Version-Release number of selected component (if applicable):
rpm-4.11.3-17.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.fedpkg co libreoffice
2.cd libreoffice
3. fedpkg srpm

Actual results:
as reported above, could not execute srpm

Expected results:
should give me srpm at least.

Additional info:
Considering above bug, does that mean one cannot use RHEL7 box to fix Fedora packages? I mean just module checkout, apply changes, push them, build the fedora package.