From 7bf136ffda40f021cc4a6a43214e9108762150b4 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 30 Jan 2024 14:13:13 +0300 Subject: [PATCH] import python-trustme-0.6.0-4.el8 --- .gitignore | 1 + .python-trustme.metadata | 1 + SPECS/python-trustme.spec | 123 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 .gitignore create mode 100644 .python-trustme.metadata create mode 100644 SPECS/python-trustme.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe695c8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/trustme-0.6.0.tar.gz diff --git a/.python-trustme.metadata b/.python-trustme.metadata new file mode 100644 index 0000000..147102c --- /dev/null +++ b/.python-trustme.metadata @@ -0,0 +1 @@ +86b8af5085bf10bfcd5867b19bcc3319617e04fa SOURCES/trustme-0.6.0.tar.gz diff --git a/SPECS/python-trustme.spec b/SPECS/python-trustme.spec new file mode 100644 index 0000000..cdcca84 --- /dev/null +++ b/SPECS/python-trustme.spec @@ -0,0 +1,123 @@ +# what it's called on pypi +%global srcname trustme +# what it's imported as +%global libname %{srcname} +# name of egg info directory +%global eggname %{srcname} +# package name fragment +%global pkgname %{srcname} + +%global common_description %{expand: +You wrote a cool network client or server. It encrypts connections using TLS. +Your test suite needs to make TLS connections to itself. Uh oh. Your test +suite probably doesn't have a valid TLS certificate. Now what? trustme is a +tiny Python package that does one thing: it gives you a fake certificate +authority (CA) that you can use to generate fake TLS certs to use in your +tests. Well, technically they are real certs, they are just signed by your CA, +which nobody trusts. But you can trust it. Trust me.} + +%bcond_without tests + + +Name: python-%{pkgname} +Version: 0.6.0 +Release: 4%{?dist} +Summary: #1 quality TLS certs while you wait, for the discerning tester +License: MIT or ASL 2.0 +URL: https://github.com/python-trio/trustme +Source0: %pypi_source +BuildArch: noarch + + +%description %{common_description} + + +%package -n python3-%{pkgname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools} +%if %{with tests} +BuildRequires: %{py3_dist pytest pyopenssl service-identity cryptography idna} +%endif +%{?python_provide:%python_provide python3-%{pkgname}} + + +%description -n python3-%{pkgname} %{common_description} + + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf %{eggname}.egg-info + + +%build +%py3_build + + +%install +%py3_install + + +%if %{with tests} +%check +%if %{defined el8} +# The upstream test suite uses cryptography's rfc4514_string method, which +# wasn't added until version 2.5. RHEL 8 currently only provides version 2.3. +# https://cryptography.io/en/latest/changelog/?highlight=rfc4514_string#v2-5 +%pytest --verbose -k "not (test_ca_custom_names or test_issue_cert_custom_names)" +%else +%pytest --verbose +%endif + +%endif + + +%files -n python3-%{pkgname} +%license LICENSE LICENSE.MIT LICENSE.APACHE2 +%doc README.rst +%{python3_sitelib}/%{libname} +%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Thu Jan 25 2024 Sergey Cherevko - 0.6.0-4 +- Rebuilt for MSVSphere 8.9 + +* Wed Oct 07 2020 Carl George - 0.6.0-4 +- Remove explicit run time requires in favor of automatically generated ones + +* Wed Jul 29 2020 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 0.6.0-2 +- Rebuilt for Python 3.9 + +* Tue Mar 17 2020 Carl George - 0.6.0-1 +- Latest upstream + +* Thu Jan 30 2020 Fedora Release Engineering - 0.5.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.5.2-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.5.2-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 10 2019 Carl George - 0.5.2-1 +- Latest upstream + +* Tue Apr 16 2019 Carl George - 0.5.1-1 +- Latest upstream + +* Fri Feb 22 2019 Carl George - 0.5.0-1 +- Latest upstream + +* Sat Feb 02 2019 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Sep 13 2018 Carl George - 0.4.0-1 +- Initial package