import python-ply-3.9-9.el8

This commit is contained in:
CentOS Sources 2021-03-30 09:23:14 -04:00 committed by Stepan Oksanichenko
parent a98e7439e8
commit 2a1e48ffa7

View File

@ -16,7 +16,7 @@
Name: python-%{modname} Name: python-%{modname}
Summary: Python Lex-Yacc Summary: Python Lex-Yacc
Version: 3.9 Version: 3.9
Release: 8%{?dist} Release: 9%{?dist}
License: BSD License: BSD
URL: http://www.dabeaz.com/ply/ URL: http://www.dabeaz.com/ply/
Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz 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}' \ -e '1{\@^#!/usr/bin/env python@d}' -e '1{\@^#!/usr/local/bin/python@d}' \
{} ';' {} ';'
rm -rf python2/*.egg-info 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 %endif # with python2
%if %{with python3} %if %{with python3}
cp -ai %{modname}-%{version} 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 %endif # with python3
%build %build
@ -151,19 +155,24 @@ popd
%if %{with python2} %if %{with python2}
%files -n python2-%{modname} %files -n python2-%{modname}
%doc python2/CHANGES %doc python2/CHANGES python2/README.md
%license python2/LICENSE
%{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}/
%{python2_sitelib}/%{modname}-%{version}-*.egg-info/ %{python2_sitelib}/%{modname}-%{version}-*.egg-info/
%endif # with python2 %endif # with python2
%if %{with python3} %if %{with python3}
%files -n python3-%{modname} %files -n python3-%{modname}
%doc python3/CHANGES %doc python3/CHANGES python3/README.md
%license python3/LICENSE
%{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-*.egg-info/ %{python3_sitelib}/%{modname}-%{version}-*.egg-info/
%endif # with python3 %endif # with python3
%changelog %changelog
* Wed Jan 6 14:57:34 CET 2021 Christian Heimes <cheimes@redhat.com> - 3.9-9
- Include README.MD and LICENSE (#1464435)
* Mon Nov 11 2019 Christian Heimes <cheimes@redhat.com> - 3.9-8 * Mon Nov 11 2019 Christian Heimes <cheimes@redhat.com> - 3.9-8
- Make MD5 fingerprint FIPS compliant - Make MD5 fingerprint FIPS compliant
- Resolves: rhbz#1747490 - Resolves: rhbz#1747490