parent
283807a814
commit
3b7eef5fe1
@ -1 +1 @@
|
|||||||
trustme-*.tar.gz
|
SOURCES/trustme-1.2.0.tar.gz
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
0c94d54ff9b4fdfbe9ad2ae240e3d87b9c6f6d4c SOURCES/trustme-1.2.0.tar.gz
|
@ -0,0 +1,202 @@
|
|||||||
|
## START: Set by rpmautospec
|
||||||
|
## (rpmautospec version 0.7.3)
|
||||||
|
## RPMAUTOSPEC: autorelease, autochangelog
|
||||||
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||||
|
release_number = 1;
|
||||||
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||||
|
print(release_number + base_release_number - 1);
|
||||||
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||||
|
## END: Set by rpmautospec
|
||||||
|
|
||||||
|
%bcond tests 1
|
||||||
|
%bcond docs %{undefined rhel}
|
||||||
|
|
||||||
|
Name: python-trustme
|
||||||
|
Version: 1.2.0
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: #1 quality TLS certs while you wait, for the discerning tester
|
||||||
|
License: MIT OR Apache-2.0
|
||||||
|
URL: https://github.com/python-trio/trustme
|
||||||
|
BuildArch: noarch
|
||||||
|
# PyPI tarball is missing docs-requirements.in
|
||||||
|
Source: %{url}/archive/v%{version}/trustme-%{version}.tar.gz
|
||||||
|
|
||||||
|
%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 does not 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.}
|
||||||
|
|
||||||
|
|
||||||
|
%description %{common_description}
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-trustme
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
|
|
||||||
|
%description -n python3-trustme %{common_description}
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with docs}
|
||||||
|
%package -n python-trustme-doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
|
||||||
|
|
||||||
|
%description -n python-trustme-doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n trustme-%{version} -p1
|
||||||
|
sed -e '/coverage/d' -i test-requirements.in
|
||||||
|
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires %{?with_tests:test-requirements.in} %{?with_docs:docs-requirements.in}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%if %{with docs}
|
||||||
|
PYTHONPATH=$PWD/src sphinx-build-3 docs/source html
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%pyproject_save_files -l trustme
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with tests}
|
||||||
|
%pytest --verbose
|
||||||
|
%else
|
||||||
|
%pyproject_check_import
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-trustme -f %{pyproject_files}
|
||||||
|
%doc README.rst
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with docs}
|
||||||
|
%files -n python-trustme-doc
|
||||||
|
%license LICENSE LICENSE.MIT LICENSE.APACHE2
|
||||||
|
%doc html
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.2.0-1
|
||||||
|
- Rebuilt for MSVSphere 10
|
||||||
|
|
||||||
|
## START: Generated by rpmautospec
|
||||||
|
* Thu Nov 07 2024 Carl George <carlwgeorge@fedoraproject.org> - 1.2.0-1
|
||||||
|
- Update to version 1.2.0 rhbz#2316927
|
||||||
|
- Disable docs when building for RHEL (EPEL)
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 1.1.0-5
|
||||||
|
- Rebuilt for Python 3.13
|
||||||
|
|
||||||
|
* Sun Jun 02 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-4
|
||||||
|
- Patch for Python 3.13 (fix RHBZ#2272940)
|
||||||
|
|
||||||
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Dec 01 2023 Carl George <carlwgeorge@fedoraproject.org> - 1.1.0-1
|
||||||
|
- Update to version 1.1.0 rhbz#2192283
|
||||||
|
- Switch to automatically generated buildrequires
|
||||||
|
- Switch to SPDX license identifier
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 0.9.0-5
|
||||||
|
- Rebuilt for Python 3.12
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 0.9.0-2
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Thu Jan 27 2022 Carl George <carl@george.computer> - 0.9.0-1
|
||||||
|
- Latest upstream
|
||||||
|
- Resolves: rhbz#1993357
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 24 2021 Carl George <carl@george.computer> - 0.8.0-1
|
||||||
|
- Latest upstream
|
||||||
|
- Resolves: rhbz#1969634
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.7.0-2
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Fri Mar 19 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.7.0-1
|
||||||
|
- Update to 0.7.0 (rhbz#1927133)
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Nov 14 2020 Carl George <carl@george.computer> - 0.6.0-5
|
||||||
|
- Add doc subpackage
|
||||||
|
|
||||||
|
* Wed Oct 07 2020 Carl George <carl@george.computer> - 0.6.0-4
|
||||||
|
- Remove explicit run time requires in favor of automatically generated ones
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Tue Mar 17 2020 Carl George <carl@george.computer> - 0.6.0-1
|
||||||
|
- Latest upstream
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-4
|
||||||
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-3
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 10 2019 Carl George <carl@george.computer> - 0.5.2-1
|
||||||
|
- Latest upstream
|
||||||
|
|
||||||
|
* Tue Apr 16 2019 Carl George <carl@george.computer> - 0.5.1-1
|
||||||
|
- Latest upstream
|
||||||
|
|
||||||
|
* Fri Feb 22 2019 Carl George <carl@george.computer> - 0.5.0-1
|
||||||
|
- Latest upstream
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Sep 13 2018 Carl George <carl@george.computer> - 0.4.0-1
|
||||||
|
- Initial package
|
||||||
|
|
||||||
|
## END: Generated by rpmautospec
|
@ -1,120 +0,0 @@
|
|||||||
# 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
|
|
||||||
* Wed Oct 07 2020 Carl George <carl@george.computer> - 0.6.0-4
|
|
||||||
- Remove explicit run time requires in favor of automatically generated ones
|
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
|
|
||||||
- Rebuilt for Python 3.9
|
|
||||||
|
|
||||||
* Tue Mar 17 2020 Carl George <carl@george.computer> - 0.6.0-1
|
|
||||||
- Latest upstream
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-4
|
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
||||||
|
|
||||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-3
|
|
||||||
- Rebuilt for Python 3.8
|
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jun 10 2019 Carl George <carl@george.computer> - 0.5.2-1
|
|
||||||
- Latest upstream
|
|
||||||
|
|
||||||
* Tue Apr 16 2019 Carl George <carl@george.computer> - 0.5.1-1
|
|
||||||
- Latest upstream
|
|
||||||
|
|
||||||
* Fri Feb 22 2019 Carl George <carl@george.computer> - 0.5.0-1
|
|
||||||
- Latest upstream
|
|
||||||
|
|
||||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Sep 13 2018 Carl George <carl@george.computer> - 0.4.0-1
|
|
||||||
- Initial package
|
|
Loading…
Reference in new issue