Compare commits
No commits in common. "imports/c8-beta/python-ply-3.9-7.el8" and "c8" have entirely different histories.
imports/c8
...
c8
27
SOURCES/Make-MD5-fingerprint-FIPS-compatible.patch
Normal file
27
SOURCES/Make-MD5-fingerprint-FIPS-compatible.patch
Normal file
@ -0,0 +1,27 @@
|
||||
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,12 +16,14 @@
|
||||
Name: python-%{modname}
|
||||
Summary: Python Lex-Yacc
|
||||
Version: 3.9
|
||||
Release: 7%{?dist}
|
||||
Release: 9%{?dist}
|
||||
License: BSD
|
||||
URL: http://www.dabeaz.com/ply/
|
||||
Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
Patch1: Make-MD5-fingerprint-FIPS-compatible.patch
|
||||
|
||||
%description
|
||||
PLY is a straightforward lex/yacc implementation. Here is a list of its
|
||||
essential features:
|
||||
@ -85,7 +87,12 @@ Python 3 version.
|
||||
%endif # with python3
|
||||
|
||||
%prep
|
||||
%autosetup -c
|
||||
%autosetup -c -N
|
||||
|
||||
pushd %{modname}-%{version}
|
||||
%patch1 -p1
|
||||
popd
|
||||
|
||||
%if %{with python2}
|
||||
cp -ai %{modname}-%{version} python2
|
||||
find python2/example/ -type f -exec chmod -x {} ';'
|
||||
@ -93,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
|
||||
@ -144,19 +155,28 @@ 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 <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
|
||||
- Conditionalize the python2 subpackage
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user