pyproject-rpm-macros/tests
Miro Hrončok e2ea1df9f7 %pyproject_extras_subpkg: Only %ghost the dist-info directory, not the content
That way, accidentally unpackaged files within are reported as errors.

Currently, when %pyproject_extras_subpkg is used, the 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.

See also https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/195

(cherry picked from Fedora commit fbd3dcd22b)
2025-12-01 16:42:41 +01:00
..
config_settings_test_backend.py Accept multiple values for the same config settings 2023-06-01 21:24:22 +02:00
config-settings-test.spec Accept multiple values for the same config settings 2023-06-01 21:24:22 +02:00
double-install.spec Avoid non-fatal errors in %pyproject_install with multiple wheels 2025-12-01 16:42:40 +01:00
escape_paths.spec Properly escape weird characters from paths in %{pyproject_files} (RPM 4.19+ only) 2024-11-14 17:15:49 +01:00
fake-requirements.spec Don't generate a dependency on pip when %pyproject_buildrequires -N is used 2024-11-15 00:29:10 +01:00
mocktest.sh CI: Respect TEST_ARTIFACTS but detect tmt 2025-12-01 16:42:40 +01:00
printrun.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-clikit.spec CI: Use poetry-core in python-clikit.spec for EL10 compatibility 2024-11-15 00:29:10 +01:00
python-coverage-pth.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-distroinfo.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-django.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-dns-lexicon.spec Add the -l/-L flag to %pyproject_save_files 2024-01-26 11:19:37 +01:00
python-entrypoints.spec CI: Use flit_core in python-entrypoints.spec for EL10 compatibility 2024-11-15 00:29:10 +01:00
python-flit-core.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-getmac.spec Add the -l/-L flag to %pyproject_save_files 2024-01-26 11:19:37 +01:00
python-httpbin-werkzeug-2.1.patch CI: Rename in-tree patches to make them nicer in a single directory 2025-12-01 12:16:55 +01:00
python-httpbin.spec CI: Rename in-tree patches to make them nicer in a single directory 2025-12-01 12:16:55 +01:00
python-ipykernel.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-isort.spec CI: Add Python 3.13 on EPEL 9 and 10 2025-12-01 16:42:41 +01:00
python-ldap-always-use-ldap-library.patch Change the test source location 2024-12-02 10:45:32 +01:00
python-ldap.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-markdown-it-py.spec Add a possibility to read runtime dependencies from pyproject.toml 2024-11-15 00:29:10 +01:00
python-markupsafe.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-mistune.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-openqa_client.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-pello.spec On RPM 4.20+ don't put pyproject-macros-specific files in %buildsubdir 2025-12-01 16:42:41 +01:00
python-pluggy.spec CI: Make python-pluggy build on Fedora 41+ 2024-11-14 17:16:35 +01:00
python-poetry-core.spec Add the -l/-L flag to %pyproject_save_files 2024-01-26 11:19:37 +01:00
python-pytest.spec Add the -l/-L flag to %pyproject_save_files 2024-01-26 11:19:37 +01:00
python-setuptools_scm.spec %pyproject_extras_subpkg: Only %ghost the dist-info directory, not the content 2025-12-01 16:42:41 +01:00
python-setuptools-59.6.0-remove-optional-or-unpackaged-test-deps.patch CI: Rename in-tree patches to make them nicer in a single directory 2025-12-01 12:16:55 +01:00
python-setuptools-67.7.2-remove-optional-or-unpackaged-test-deps.patch CI: Rename in-tree patches to make them nicer in a single directory 2025-12-01 12:16:55 +01:00
python-setuptools.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
python-userpath.spec Add the -l/-L flag to %pyproject_save_files 2024-01-26 11:19:37 +01:00
python-virtualenv.spec CI: Simplify spec conditionals wrt Fedora 39 going EOL 2025-12-01 12:16:55 +01:00
python-zope-event.spec CI: Convert all test spec License tags to SPDX 2025-12-01 12:16:55 +01:00
tldr.spec CI: %{pyproject_build_lib} changed on EL9 2024-11-15 14:41:26 +01:00