The python-rpm-macros rpms
That way, accidentally unpackaged files within are reported as errors. Currently, when %python_extras_subpkg is used, the egg-info/dist-info directory is packaged as %ghost. When the main package does not have it, the RPM build would succeed. The extras packages would have the python3dist() requires and provides, but the main package would not. By adding %dir after %ghost, we only package the directory (which is enough for python3-rpm-generators to process it), but the files in the directory are not included. When not packaged in the main package, the RPM build fails. This is a safeguard against packaging mistakes. The visible difference is that rpm -ql/repoquery -l would only return the metadata directory. And the RPM build would fail if .egg-info is a file, which is only possible with Python < 3.12 for packages using distutils (no extras anyway). |
||
|---|---|---|
| .fmf | ||
| tests | ||
| .gitignore | ||
| brp-fix-pyc-reproducibility | ||
| brp-python-bytecompile | ||
| brp-python-hardlink | ||
| brp-python-rpm-in-distinfo | ||
| clamp_source_mtime.py | ||
| compileall2.py | ||
| import_all_modules.py | ||
| macros.pybytecompile | ||
| macros.python | ||
| macros.python-srpm | ||
| macros.python-wheel-sbom | ||
| macros.python3 | ||
| pathfix.py | ||
| plan.fmf | ||
| python-rpm-macros.spec | ||
| python.lua | ||
| rpminspect.yaml | ||
| sources | ||