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:
Ondřej Budai 2020-03-25 13:09:10 +01:00 committed by Tom Gundersen
parent 3233093045
commit b75c784b85

View file

@ -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