[packages/python3-certifi] - python-certifi.spec updated to 2021.10.08 python 3.5+

qboosh qboosh at pld-linux.org
Sun Mar 6 08:44:02 CET 2022


commit c243350725b37373e7767d3099b8c93fb4afc447
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 6 08:45:59 2022 +0100

    - python-certifi.spec updated to 2021.10.08 python 3.5+

 python-certifi.spec  | 108 ---------------------------------------------------
 python3-certifi.spec |  55 ++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 108 deletions(-)
---
diff --git a/python-certifi.spec b/python-certifi.spec
deleted file mode 100644
index 5eb5e05..0000000
--- a/python-certifi.spec
+++ /dev/null
@@ -1,108 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define 	module	certifi
-
-# pypi version does not include leading zeros in the date
-# keep 2020.04.05.x here for python2 support
-%define		tag 2020.04.05.2
-%define		version %(echo %{tag} | sed -e 's/\\.0/./g')
-
-Summary:	Python 2 package for providing Mozilla's CA Bundle
-Summary(pl.UTF-8):	Pakiet Pythona 2 udostępniający bazę danych CA z Mozilli
-Name:		python-%{module}
-Version:	%{version}
-Release:	1
-License:	MPL v2.0
-Group:		Libraries/Python
-#Source0Download: https://github.com/certifi/python-certifi/tags
-Source0:	https://github.com/certifi/python-certifi/archive/%{tag}/%{name}-%{tag}.tar.gz
-# Source0-md5:	fd9a1ad96c94942a89f580f7477216d9
-URL:		https://certifi.io/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.6
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.3
-BuildRequires:	python3-setuptools
-%endif
-Requires:	python-modules >= 1:2.6
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Certifi is a carefully curated collection of Root Certificates for
-validating the trustworthiness of SSL certificates while verifying the
-identity of TLS hosts. It has been extracted from the Requests
-project.
-
-%description -l pl.UTF-8
-Certifi to ostrożnie utrzymywany zbiór głównych certyfikatów
-potwierdzających zaufanie do certyfikatów SSL podczas weryfikacji
-tożsamości hostów TLS. Pochodzi z projektu Requests.
-
-%package -n python3-%{module}
-Summary:	Python 2 package for providing Mozilla's CA Bundle
-Summary(pl.UTF-8):	Pakiet Pythona 2 udostępniający bazę danych CA z Mozilli
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
-
-%description -n python3-%{module}
-Certifi is a carefully curated collection of Root Certificates for
-validating the trustworthiness of SSL certificates while verifying the
-identity of TLS hosts. It has been extracted from the Requests
-project.
-
-%description -n python3-%{module} -l pl.UTF-8
-Certifi to ostrożnie utrzymywany zbiór głównych certyfikatów
-potwierdzających zaufanie do certyfikatów SSL podczas weryfikacji
-tożsamości hostów TLS. Pochodzi z projektu Requests.
-
-%prep
-%setup -q -n %{name}-%{tag}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
diff --git a/python3-certifi.spec b/python3-certifi.spec
new file mode 100644
index 0000000..c135c42
--- /dev/null
+++ b/python3-certifi.spec
@@ -0,0 +1,55 @@
+%define 	module	certifi
+
+# pypi version does not include leading zeros in the date
+%define		tag 2021.10.08
+%define		version %(echo %{tag} | sed -e 's/\\.0/./g')
+
+Summary:	Python 3 package for providing Mozilla's CA Bundle
+Summary(pl.UTF-8):	Pakiet Pythona 3 udostępniający bazę danych CA z Mozilli
+Name:		python3-%{module}
+Version:	%{version}
+Release:	1
+License:	MPL v2.0
+Group:		Libraries/Python
+#Source0Download: https://github.com/certifi/python-certifi/tags
+Source0:	https://github.com/certifi/python-certifi/archive/%{tag}/python-certifi-%{tag}.tar.gz
+# Source0-md5:	23727c99ce0278e5d73d1a41ec3c2ff9
+URL:		https://certifi.io/
+BuildRequires:	python3-devel >= 1:3.5
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Certifi is a carefully curated collection of Root Certificates for
+validating the trustworthiness of SSL certificates while verifying the
+identity of TLS hosts. It has been extracted from the Requests
+project.
+
+%description -l pl.UTF-8
+Certifi to ostrożnie utrzymywany zbiór głównych certyfikatów
+potwierdzających zaufanie do certyfikatów SSL podczas weryfikacji
+tożsamości hostów TLS. Pochodzi z projektu Requests.
+
+%prep
+%setup -q -n python-certifi-%{tag}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-certifi.git/commitdiff/c243350725b37373e7767d3099b8c93fb4afc447



More information about the pld-cvs-commit mailing list