diff --git a/SPECS/python-ply.spec b/SPECS/python-ply.spec index 5d5aef8..2fd7488 100644 --- a/SPECS/python-ply.spec +++ b/SPECS/python-ply.spec @@ -16,7 +16,7 @@ Name: python-%{modname} Summary: Python Lex-Yacc Version: 3.9 -Release: 8%{?dist} +Release: 9%{?dist} License: BSD URL: http://www.dabeaz.com/ply/ Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz @@ -100,10 +100,14 @@ find python2/example/ -type f -name '*.py' -exec sed -i \ -e '1{\@^#!/usr/bin/env python@d}' -e '1{\@^#!/usr/local/bin/python@d}' \ {} ';' rm -rf python2/*.egg-info +# extract license block from beginning of README.md +grep -B1000 "POSSIBILITY OF SUCH DAMAGE" python2/README.md > python2/LICENSE %endif # with python2 %if %{with python3} cp -ai %{modname}-%{version} python3 +# extract license block from beginning of README.md +grep -B1000 "POSSIBILITY OF SUCH DAMAGE" python3/README.md > python3/LICENSE %endif # with python3 %build @@ -151,19 +155,24 @@ popd %if %{with python2} %files -n python2-%{modname} -%doc python2/CHANGES +%doc python2/CHANGES python2/README.md +%license python2/LICENSE %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}-*.egg-info/ %endif # with python2 %if %{with python3} %files -n python3-%{modname} -%doc python3/CHANGES +%doc python3/CHANGES python3/README.md +%license python3/LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-*.egg-info/ %endif # with python3 %changelog +* Wed Jan 6 14:57:34 CET 2021 Christian Heimes - 3.9-9 +- Include README.MD and LICENSE (#1464435) + * Mon Nov 11 2019 Christian Heimes - 3.9-8 - Make MD5 fingerprint FIPS compliant - Resolves: rhbz#1747490