Compare commits

..

No commits in common. 'epel9' and 'epel8' have entirely different histories.
epel9 ... epel8

@ -1,4 +1,12 @@
# 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
@ -10,14 +18,10 @@ which nobody trusts. But you can trust it. Trust me.}
%bcond_without tests
%if %{defined fedora}
%bcond_without docs
%endif
Name: python-%{srcname}
Version: 0.9.0
Release: 1%{?dist}
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
@ -28,47 +32,30 @@ BuildArch: noarch
%description %{common_description}
%package -n python3-%{srcname}
%package -n python3-%{pkgname}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: %{py3_dist setuptools}
%if %{with tests}
BuildRequires: %{py3_dist pytest pyopenssl service-identity}
BuildRequires: %{py3_dist pytest pyopenssl service-identity cryptography idna}
%endif
%{?python_provide:%python_provide python3-%{pkgname}}
%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
%description -n python3-%{pkgname} %{common_description}
%prep
%autosetup -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
rm -rf %{eggname}.egg-info
%build
%pyproject_wheel
%if %{with docs}
sphinx-build-3 docs/source html
%endif
%py3_build
%install
%pyproject_install
%pyproject_save_files %{srcname}
%py3_install
%if %{with tests}
@ -81,44 +68,18 @@ sphinx-build-3 docs/source html
%else
%pytest --verbose
%endif
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.rst
%endif
%if %{with docs}
%files -n python-%{srcname}-doc
%files -n python3-%{pkgname}
%license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc html
%endif
%doc README.rst
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
%changelog
* 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

@ -1 +1 @@
SHA512 (trustme-0.9.0.tar.gz) = f0d983a4c52374f178c0bf96f758fdb5f132e7f7c4bac187c84fbc8dc82dc36d6c801c340bf8871e872178f7b2ac66d6159b5462d073beec9a13a086f64b58b7
SHA512 (trustme-0.6.0.tar.gz) = 9fda58320f2055d2c23369d2df213994cafd9af7b7eb3933162bbe09a81abd7a9cd2b2e7cae43b25d40d20311213d8a1c13155b61498b848a2850d22fa1e1418

Loading…
Cancel
Save