Bug 1252751

Summary: Additional packages for "minimal buildroot" need to be installed to (re-)generate SRPM
Product: [Community] Copr Reporter: Pavel Raiskup <praiskup>
Component: backendAssignee: Miroslav Suchý <msuchy>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 09:35:03 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 Pavel Raiskup 2015-08-12 08:13:58 UTC
Failed build log:
https://copr-be.cloud.fedoraproject.org/results/praiskup/rpm-config/fedora-23-x86_64/00108212-compat-rpm-config/mockchain.log.gz

Package 'compat-rpm-macros' needs to be installed before the SRPM is
generated, otherwise some SPEC macros are not defined.  Not sure whether the
SRPM shouldn't be generated in mock too.

This used to work (it is kind of usage regression) because (a) srpm was not
generated from dist-git before.

Comment 1 Miroslav Suchý 2015-08-12 09:35:03 UTC
You should use those macros conditionally. E.g.
  %{?scl_prefix}
Otherwise somebody else would not be able to generate that SRPM too.
And then you should include that package with macros in build time of binary RPM. Which is doable in Copr for months.