From 529acb41f0641d6388b98dee64f08cf094d6d675 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jul 23 2019 11:25:58 +0000 Subject: Keep the LICENSE.txt file in lib/pythonX.Y dir The license() builtin tries to read it and virtualenv tries to copy it. See https://github.com/pypa/virtualenv/issues/1352 Up until now, the license() builtin juts felt back to: See https://www.python.org/psf/license/ However it should output the full license text. Virtualenv ~16.6 warns: No LICENSE.txt / LICENSE found in source Technically, it is probably possible to install the package without %license files, but that would simply resort to the previous noncritical behavior. This fix is not critical and hence it doesn't bump release, for easier backporting to all our Python packages. --- diff --git a/python35.spec b/python35.spec index 5d65787..ffe83f8 100644 --- a/python35.spec +++ b/python35.spec @@ -816,7 +816,6 @@ find %{buildroot} -name \*.bat -exec rm {} \; # Get rid of backup files: find %{buildroot}/ -name "*~" -exec rm -f {} \; find . -name "*~" -exec rm -f {} \; -rm -f %{buildroot}%{pylibdir}/LICENSE.txt # Junk, no point in putting in -test sub-pkg rm -f ${RPM_BUILD_ROOT}/%{pylibdir}/idlelib/testcode.py* @@ -987,8 +986,9 @@ CheckPython optimized %files -%doc LICENSE README +%doc README %doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit +%license %{pylibdir}/LICENSE.txt %{_bindir}/pydoc%{pybasever} %{_bindir}/python%{pybasever}