|
|
@ -1,12 +1,4 @@
|
|
|
|
# what it's called on pypi
|
|
|
|
|
|
|
|
%global srcname trustme
|
|
|
|
%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:
|
|
|
|
%global common_description %{expand:
|
|
|
|
You wrote a cool network client or server. It encrypts connections using TLS.
|
|
|
|
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
|
|
|
|
Your test suite needs to make TLS connections to itself. Uh oh. Your test
|
|
|
@ -18,10 +10,14 @@ which nobody trusts. But you can trust it. Trust me.}
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{defined fedora}
|
|
|
|
|
|
|
|
%bcond_without docs
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pkgname}
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 0.6.0
|
|
|
|
Version: 0.9.0
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: #1 quality TLS certs while you wait, for the discerning tester
|
|
|
|
Summary: #1 quality TLS certs while you wait, for the discerning tester
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
URL: https://github.com/python-trio/trustme
|
|
|
|
URL: https://github.com/python-trio/trustme
|
|
|
@ -32,30 +28,47 @@ BuildArch: noarch
|
|
|
|
%description %{common_description}
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pkgname}
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: %{py3_dist setuptools}
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: %{py3_dist pytest pyopenssl service-identity cryptography idna}
|
|
|
|
BuildRequires: %{py3_dist pytest pyopenssl service-identity}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pkgname} %{common_description}
|
|
|
|
%description -n python3-%{srcname} %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
|
|
|
%package -n python-%{srcname}-doc
|
|
|
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist sphinx sphinxcontrib-trio}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python-%{srcname}-doc
|
|
|
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
rm -rf %{eggname}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires -r
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
|
|
|
sphinx-build-3 docs/source html
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files %{srcname}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
@ -68,18 +81,47 @@ rm -rf %{eggname}.egg-info
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%pytest --verbose
|
|
|
|
%pytest --verbose
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pkgname}
|
|
|
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
|
|
%license LICENSE LICENSE.MIT LICENSE.APACHE2
|
|
|
|
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/%{libname}
|
|
|
|
|
|
|
|
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
|
|
|
%files -n python-%{srcname}-doc
|
|
|
|
|
|
|
|
%license LICENSE LICENSE.MIT LICENSE.APACHE2
|
|
|
|
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Apr 28 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 0.9.0-1
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 9.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* Wed Oct 07 2020 Carl George <carl@george.computer> - 0.6.0-4
|
|
|
|
- Remove explicit run time requires in favor of automatically generated ones
|
|
|
|
- Remove explicit run time requires in favor of automatically generated ones
|
|
|
|
|
|
|
|
|