From 39ae3a6dadb8c71fc51905f2ce270f349329edd0 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jan 12 2022 17:28:27 +0000 Subject: %pyproject_save_files can handle %licenses See https://lists.fedorahosted.org/archives/list/python-devel@lists.fedoraproject.org/thread/4Z7QWA5WDENAQJDH3O2HOM2UTBYPYNU5/ Fixes https://pagure.io/packaging-committee/issue/1145 --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index e42ddf4..0cb0c12 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -1207,12 +1207,11 @@ Recommends: python3-pello+color # Note that there is no %%files section for # the unversioned python module, python-pello. -# For python3-pello, %%{pyproject_files} handles code files, but -# executables, documentation and licenses must be listed in the spec file: +# For python3-pello, %%{pyproject_files} handles code files and %%license, +# but executables and documentation must be listed in the spec file: %files -n python3-pello -f %{pyproject_files} %doc README.md -%license LICENSE.txt %{_bindir}/pello_greeting @@ -1271,7 +1270,6 @@ Summary: %{summary} %files -n python3-... -f %{pyproject_files} %doc README.* -%license LICENSE* %{_bindir}/... @@ -1423,7 +1421,8 @@ This macro needs BuildRequires generated by `+%pyproject_buildrequires+`. Generate a list of files corresponding to the given importable module(s) and save it as `+%{pyproject_files}+`. + -Note that README and license files are not included. +Note that README file is not included. +The LICENSE file is included when it is specified in the metadata. Also, while the macro allows including executable and other files (using the `+auto` flag), this feature *MUST NOT* be used in Fedora.