The python-rpm-macros rpms
Find a file
Miro Hrončok 0d417402db %python_extras_subpkg: Only %ghost the egg-info/dist-info directory, not the content
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).
2025-10-22 22:44:06 +02:00
.fmf Drop STI and use tmt instead 2025-08-04 22:49:08 +00:00
tests %python_extras_subpkg: Only %ghost the egg-info/dist-info directory, not the content 2025-10-22 22:44:06 +02:00
.gitignore Initial setup of the repo 2016-01-12 23:33:17 +00:00
brp-fix-pyc-reproducibility Minor style fixes suggested by ShellCheck. Mostly, these consist 2025-06-29 13:32:22 +00:00
brp-python-bytecompile The "exclude" variable in python_bytecompile is no longer used, 2025-06-29 13:32:22 +00:00
brp-python-hardlink Include brp-python-hardlink in python-srpm-macros since it is no longer in RPM 4.17+ 2021-06-30 18:13:53 +02:00
brp-python-rpm-in-distinfo Minor style fixes suggested by ShellCheck. Mostly, these consist 2025-06-29 13:32:22 +00:00
clamp_source_mtime.py Add Python 2.7 support to clamp_source_mtime.py 2022-12-21 12:18:48 +01:00
compileall2.py Update bundled compileall2 to version 0.8.0 2024-03-22 11:01:55 +01:00
import_all_modules.py import_all_modules: Add error handling for import failures 2025-08-11 12:56:05 +02:00
macros.pybytecompile Don't assume %_smp_mflags only ever contains -jX, use -j%_smp_build_ncpus directly 2023-03-16 19:45:39 +01:00
macros.python Deprecate %py3_build, %py3_build_wheel, and %py3_install 2025-06-29 15:36:51 +02:00
macros.python-srpm %python_extras_subpkg: Only %ghost the egg-info/dist-info directory, not the content 2025-10-22 22:44:06 +02:00
macros.python-wheel-sbom %python_wheel_inject_sbom: Don't accidentally alter nested .dist-infos 2025-08-29 13:46:23 +02:00
macros.python3 Deprecate %py3_build, %py3_build_wheel, and %py3_install 2025-06-29 15:36:51 +02:00
pathfix.py pathfix.py: Don't fail on symbolic links 2025-07-21 10:07:51 +02:00
plan.fmf Introduce %python_wheel_inject_sbom 2025-08-27 16:13:40 +02:00
python-rpm-macros.spec %python_extras_subpkg: Only %ghost the egg-info/dist-info directory, not the content 2025-10-22 22:44:06 +02:00
python.lua Add lua helper functions to make it possible to automatically generate Obsoletes tags 2022-01-20 18:57:25 +01:00
rpminspect.yaml Disable certain rpminspect inspections not relevant to this package 2022-01-28 17:10:16 +01:00
sources Initial setup of the repo 2016-01-12 23:33:17 +00:00