#4 Update to 2020.4.5.1
Merged 3 years ago by churchyard. Opened 3 years ago by churchyard.
rpms/ churchyard/python-certifi 2020.4.5.1  into  master

file modified
+1
@@ -1,3 +1,4 @@ 

  /certifi-2015.04.28.tar.gz

  /certifi-2016.9.26.tar.gz

  /certifi-2018.10.15.tar.gz

+ /certifi-2020.4.5.1.tar.gz

@@ -1,15 +0,0 @@ 

- diff -r -u certifi-2018.10.15.orig/certifi/core.py certifi-2018.10.15/certifi/core.py

- --- certifi-2018.10.15.orig/certifi/core.py	2018-01-18 15:27:24.000000000 -0500

- +++ certifi-2018.10.15/certifi/core.py	2018-12-13 11:08:30.834151536 -0500

- @@ -19,9 +19,7 @@

-  

-  

-  def where():

- -    f = os.path.dirname(__file__)

- -

- -    return os.path.join(f, 'cacert.pem')

- +    return '/etc/pki/tls/certs/ca-bundle.crt'

-  

-  

-  def old_where():

- Only in certifi-2018.10.15/certifi: core.py~

@@ -0,0 +1,23 @@ 

+ diff --git a/certifi/core.py b/certifi/core.py

+ index 56b52a3..4bd2d10 100644

+ --- a/certifi/core.py

+ +++ b/certifi/core.py

+ @@ -9,6 +9,7 @@ This module returns the installation location of cacert.pem or its contents.

+  import os

+  

+  try:

+ +    raise ImportError  # force fallback

+      from importlib.resources import read_text

+  except ImportError:

+      # This fallback will work for Python versions prior to 3.7 that lack the

+ @@ -21,9 +22,7 @@ except ImportError:

+  

+  

+  def where():

+ -    f = os.path.dirname(__file__)

+ -

+ -    return os.path.join(f, "cacert.pem")

+ +    return '/etc/pki/tls/certs/ca-bundle.crt'

+  

+  

+  def contents():

file modified
+8 -4
@@ -1,15 +1,15 @@ 

  %global pypi_name certifi

  

  Name:           python-%{pypi_name}

- Version:        2018.10.15

- Release:        10%{?dist}

+ Version:        2020.4.5.1

+ Release:        1%{?dist}

  Summary:        Python package for providing Mozilla's CA Bundle

  

  License:        MPLv2.0

  #https://www.mozilla.org/MPL/2.0/

  URL:            http://certifi.io/en/latest/

  Source0:        %pypi_source

- Patch1:         certifi-2018.10.15-use-system-cert.patch

+ Patch1:         certifi-2020.4.5.1-use-system-cert.patch

  

  BuildArch:      noarch

  
@@ -48,6 +48,7 @@ 

  %setup -n %{pypi_name}-%{version}

  # Remove bundled egg-info

  rm -rf %{pypi_name}.egg-info

+ # Remove bundled Root Certificates collection

  rm -rf certifi/*.pem

  %patch1 -p1

  
@@ -65,9 +66,12 @@ 

  %license LICENSE

  %doc README.rst

  %{python3_sitelib}/%{pypi_name}

- %{python3_sitelib}/%{pypi_name}-*-py?.?.egg-info

+ %{python3_sitelib}/%{pypi_name}-*-py%{python3_version}.egg-info/

  

  %changelog

+ * Thu Jun 04 2020 Miro Hrončok <mhroncok@redhat.com> - 2020.4.5.1-1

+ - Update to 2020.4.5.1 (#1843713)

+ 

  * Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 2018.10.15-10

  - Rebuilt for Python 3.9

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (certifi-2018.10.15.tar.gz) = 3324ae6c4b99dda6f48aa9f0918fe045a19b19b26fcfdcca4be93ec967b9e4112d863c982686837b327f1663e308250d56ea337caeeeeb96579e08b20fca92df

+ SHA512 (certifi-2020.4.5.1.tar.gz) = 8b0312aba427c29f6ebaf8140493f9673043e3f76f9bb1002a8fbc7a943303effad15173805e276147548d0978630655763b9ea60410135ba08f413fa77a5738