From 026488911cbe9c81a24eb8b3daa7937f345c042c Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jul 23 2019 11:33:53 +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/python2.spec b/python2.spec index fa2a6d5..ff54dca 100644 --- a/python2.spec +++ b/python2.spec @@ -1369,8 +1369,6 @@ find %{buildroot}/ -name ".cvsignore"|xargs rm -f find %{buildroot}/ -name "*.bat"|xargs rm -f find . -name "*~"|xargs rm -f find . -name ".cvsignore"|xargs rm -f -#zero length -rm -f %{buildroot}%{pylibdir}/LICENSE.txt # Provide binaries in the form of bin2 and bin2.7, thus implementing @@ -1609,8 +1607,6 @@ CheckPython \ %files -%{!?_licensedir:%global license %%doc} -%license LICENSE %doc README %{_bindir}/pydoc2* %{_bindir}/%{python} @@ -1618,9 +1614,8 @@ CheckPython \ %{_mandir}/*/python2* %files libs -%{!?_licensedir:%global license %%doc} -%license LICENSE %doc README +%license %{pylibdir}/LICENSE.txt %dir %{pylibdir} %dir %{dynload_dir}