Latest upstream 0.8.0

Resolves: rhbz#1969634
epel9
Carl George 4 years ago
parent c88153e5b5
commit f1e9afa247

@ -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
@ -20,9 +12,9 @@ which nobody trusts. But you can trust it. Trust me.}
%bcond_without docs %bcond_without docs
Name: python-%{pkgname} Name: python-%{srcname}
Version: 0.7.0 Version: 0.8.0
Release: 2%{?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
@ -33,39 +25,38 @@ 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} BuildRequires: %{py3_dist pytest pyopenssl service-identity}
BuildRequires: %{py3_dist cryptography idna}
%endif %endif
%{?python_provide:%python_provide python3-%{pkgname}}
%description -n python3-%{pkgname} %{common_description} %description -n python3-%{srcname} %{common_description}
%if %{with docs} %if %{with docs}
%package -n python-%{pkgname}-doc %package -n python-%{srcname}-doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
BuildRequires: %{py3_dist sphinx sphinxcontrib-trio} BuildRequires: %{py3_dist sphinx sphinxcontrib-trio}
BuildRequires: %{py3_dist cryptography idna}
%description -n python-%{pkgname}-doc %description -n python-%{srcname}-doc
Documentation for %{name}. Documentation for %{name}.
%endif %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} %if %{with docs}
sphinx-build-3 docs/source html sphinx-build-3 docs/source html
@ -73,7 +64,8 @@ sphinx-build-3 docs/source html
%install %install
%py3_install %pyproject_install
%pyproject_save_files %{srcname}
%if %{with tests} %if %{with tests}
@ -86,25 +78,26 @@ sphinx-build-3 docs/source html
%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 %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} %if %{with docs}
%files -n python-%{pkgname}-doc %files -n python-%{srcname}-doc
%license LICENSE LICENSE.MIT LICENSE.APACHE2 %license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc html %doc html
%endif %endif
%changelog %changelog
* 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 * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.7.0-2
- Rebuilt for Python 3.10 - Rebuilt for Python 3.10

@ -1 +1 @@
SHA512 (trustme-0.7.0.tar.gz) = 3b2aa69dc617c04af3a83ca424ef19b5eaf37495ba4bc5cc55004016a9ea63c8df3585bb7fe52709b1b18a2a55e51d6a1a2b21ebc12c57ac18133b20c958b1a8 SHA512 (trustme-0.8.0.tar.gz) = 93b1007319f7d625410eddf92910607c8190533f9bb02a71ecc4c424e44ecea70749f6bceb917297241e179b0d50ce1ed330c208cf3de77d4d3a619f5436af9d

Loading…
Cancel
Save