Compare commits

...

8 Commits
epel8 ... epel9

Author SHA1 Message Date
Carl George 4b81959652 Disable docs subpackage on EPEL
3 years ago
Carl George 4b656a9eb1 Latest upstream 0.9.0
3 years ago
Fedora Release Engineering a5501394f1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3 years ago
Carl George f1e9afa247 Latest upstream 0.8.0
4 years ago
Python Maint c88153e5b5 Rebuilt for Python 3.10
4 years ago
Charalampos Stratakis 9d5e410ef6 Update to 0.7.0 (rhbz#1927133)
4 years ago
Fedora Release Engineering 2054075b07 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4 years ago
Carl George 0cda6581f7 Add doc subpackage
4 years ago

@ -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,44 @@ 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
* 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

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

Loading…
Cancel
Save