https://bugzilla.redhat.com/show_bug.cgi?id=2184588
--- Comment #15 from Felix Wang topazus@outlook.com --- (In reply to Sandro Mani from comment #12)
Spec URL: https://smani.fedorapeople.org/review/python-flask-mailman.spec SRPM URL: https://smani.fedorapeople.org/review/python-flask-mailman-0.3.0-4.fc39.src. rpm
%changelog
- Fri Apr 07 2023 Sandro Mani manisandro@gmail.com - 0.3.0-4
- Re-add %%license
I am sorry for my mistake about license issue. You do not need to use %license line to add license. the %pyproject_save_files can add license.
``` ❯ wget https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-rev... --2023-04-07 23:01:45-- https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-rev... Connecting to 127.0.0.1:7890... connected. Proxy request sent, awaiting response... 200 OK Length: 45441 (44K) [application/x-rpm] Saving to: ‘python3-flask-mailman-0.3.0-3.fc39.noarch.rpm’
python3-flask-mailman-0.3.0-3 100%[=================================================>] 44.38K --.-KB/s in 0.1s
2023-04-07 23:01:46 (419 KB/s) - ‘python3-flask-mailman-0.3.0-3.fc39.noarch.rpm’ saved [45441/45441]
❯ rpm -qlp ./python3-flask-mailman-0.3.0-3.fc39.noarch.rpm | grep LICENSE warning: ./python3-flask-mailman-0.3.0-3.fc39.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 3aabd587: NOKEY /usr/lib/python3.11/site-packages/flask_mailman-0.3.0.dist-info/LICENSE ```
quoted from Fedora packaging guideline about Python:
%pyproject_save_files MODNAME … Generate a list of files corresponding to the given importable module(s) and save it as %{pyproject_files}. Note that README file is not included. The LICENSE file is included when it is specified in the metadata.