spec: do not generate deps from internal files
RPM is smart about dependencies - it goes over all shebangs of packaged files and adds Requires to them. Prior this commit osbuild package depended on python 3.6, because rhel runner has /usr/bin/python3.6 as shebang. This commit fixes it by turning off dependency generators for our internal stuff: assemblers, runners and stages. They run in a container, so I think there's no reason to generate dependencies from them.
This commit is contained in:
parent
3233093045
commit
b75c784b85
1 changed files with 6 additions and 0 deletions
|
|
@ -35,6 +35,12 @@ Requires: tar
|
|||
Requires: util-linux
|
||||
Requires: python3-%{pypi_name}
|
||||
|
||||
# Turn off dependency generators for assemblers, runners and stages.
|
||||
# They run in a container, so there's no reason to generate dependencies
|
||||
# from them. As of 2020-03-25 this filters out python3.6 dependency generated
|
||||
# by rhel runner.
|
||||
%global __requires_exclude_from ^%{pkgdir}/(assemblers|runners|stages)/.*$
|
||||
|
||||
%{?python_enable_dependency_generator}
|
||||
|
||||
%description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue