Compare commits
No commits in common. "c8" and "imports/c8-beta/python-ply-3.9-7.el8" have entirely different histories.
c8
...
imports/c8
@ -1,27 +0,0 @@
|
|||||||
From 129a530a7165dbb83ab9a5a723318b51dcd59edd Mon Sep 17 00:00:00 2001
|
|
||||||
From: Christian Heimes <cheimes@redhat.com>
|
|
||||||
Date: Mon, 11 Nov 2019 14:38:29 +0100
|
|
||||||
Subject: [PATCH] Make MD5 fingerprint FIPS compatible
|
|
||||||
|
|
||||||
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1747490
|
|
||||||
Signed-off-by: Christian Heimes <cheimes@redhat.com>
|
|
||||||
---
|
|
||||||
ply/yacc.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/ply/yacc.py b/ply/yacc.py
|
|
||||||
index 6842832..9e1b07a 100644
|
|
||||||
--- a/ply/yacc.py
|
|
||||||
+++ b/ply/yacc.py
|
|
||||||
@@ -2963,7 +2963,7 @@ class ParserReflect(object):
|
|
||||||
except ImportError:
|
|
||||||
from md5 import md5
|
|
||||||
try:
|
|
||||||
- sig = md5()
|
|
||||||
+ sig = md5(usedforsecurity=False)
|
|
||||||
if self.start:
|
|
||||||
sig.update(self.start.encode('latin-1'))
|
|
||||||
if self.prec:
|
|
||||||
--
|
|
||||||
2.23.0
|
|
||||||
|
|
||||||
@ -16,14 +16,12 @@
|
|||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Summary: Python Lex-Yacc
|
Summary: Python Lex-Yacc
|
||||||
Version: 3.9
|
Version: 3.9
|
||||||
Release: 9%{?dist}
|
Release: 7%{?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
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Patch1: Make-MD5-fingerprint-FIPS-compatible.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PLY is a straightforward lex/yacc implementation. Here is a list of its
|
PLY is a straightforward lex/yacc implementation. Here is a list of its
|
||||||
essential features:
|
essential features:
|
||||||
@ -87,12 +85,7 @@ Python 3 version.
|
|||||||
%endif # with python3
|
%endif # with python3
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -c -N
|
%autosetup -c
|
||||||
|
|
||||||
pushd %{modname}-%{version}
|
|
||||||
%patch1 -p1
|
|
||||||
popd
|
|
||||||
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
cp -ai %{modname}-%{version} python2
|
cp -ai %{modname}-%{version} python2
|
||||||
find python2/example/ -type f -exec chmod -x {} ';'
|
find python2/example/ -type f -exec chmod -x {} ';'
|
||||||
@ -100,14 +93,10 @@ 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
|
||||||
@ -155,28 +144,19 @@ popd
|
|||||||
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
%files -n python2-%{modname}
|
%files -n python2-%{modname}
|
||||||
%doc python2/CHANGES python2/README.md
|
%doc python2/CHANGES
|
||||||
%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 python3/README.md
|
%doc python3/CHANGES
|
||||||
%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
|
|
||||||
- Make MD5 fingerprint FIPS compliant
|
|
||||||
- Resolves: rhbz#1747490
|
|
||||||
|
|
||||||
* Fri Jun 15 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.9-7
|
* Fri Jun 15 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.9-7
|
||||||
- Conditionalize the python2 subpackage
|
- Conditionalize the python2 subpackage
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user