Blame SPECS/python-trustme.spec

2b3a1d
%bcond tests 1
2b3a1d
%bcond docs %{undefined rhel}
2b3a1d
2b3a1d
Name:           python-trustme
2b3a1d
Version:        1.2.0
2b3a1d
Release:        2%{?dist}
2b3a1d
Summary:        #1 quality TLS certs while you wait, for the discerning tester
2b3a1d
License:        MIT OR Apache-2.0
2b3a1d
URL:            https://github.com/python-trio/trustme
2b3a1d
BuildArch:      noarch
2b3a1d
# PyPI tarball is missing docs-requirements.in
2b3a1d
Source:         %{url}/archive/v%{version}/trustme-%{version}.tar.gz
2b3a1d
2b3a1d
%global common_description %{expand:
2b3a1d
You wrote a cool network client or server.  It encrypts connections using TLS.
2b3a1d
Your test suite needs to make TLS connections to itself.  Uh oh.  Your test
2b3a1d
suite probably does not have a valid TLS certificate.  Now what?  trustme is a
2b3a1d
tiny Python package that does one thing: it gives you a fake certificate
2b3a1d
authority (CA) that you can use to generate fake TLS certs to use in your
2b3a1d
tests.  Well, technically they are real certs, they are just signed by your CA,
2b3a1d
which nobody trusts.  But you can trust it.  Trust me.}
2b3a1d
2b3a1d
2b3a1d
%description %{common_description}
2b3a1d
2b3a1d
2b3a1d
%package -n python3-trustme
2b3a1d
Summary:        %{summary}
2b3a1d
BuildRequires:  python3-devel
2b3a1d
2b3a1d
2b3a1d
%description -n python3-trustme %{common_description}
2b3a1d
2b3a1d
2b3a1d
%if %{with docs}
2b3a1d
%package -n python-trustme-doc
2b3a1d
Summary:        Documentation for %{name}
2b3a1d
2b3a1d
2b3a1d
%description -n python-trustme-doc
2b3a1d
Documentation for %{name}.
2b3a1d
%endif
2b3a1d
2b3a1d
2b3a1d
%prep
2b3a1d
%autosetup -n trustme-%{version} -p1
2b3a1d
sed -e '/coverage/d' -i test-requirements.in
2b3a1d
2b3a1d
2b3a1d
%generate_buildrequires
2b3a1d
%pyproject_buildrequires %{?with_tests:test-requirements.in} %{?with_docs:docs-requirements.in}
2b3a1d
2b3a1d
2b3a1d
%build
2b3a1d
%pyproject_wheel
2b3a1d
2b3a1d
%if %{with docs}
2b3a1d
PYTHONPATH=$PWD/src sphinx-build-3 docs/source html
2b3a1d
%endif
2b3a1d
2b3a1d
2b3a1d
%install
2b3a1d
%pyproject_install
2b3a1d
%pyproject_save_files -l trustme
2b3a1d
2b3a1d
2b3a1d
%check
2b3a1d
%if %{with tests}
2b3a1d
%pytest --verbose
2b3a1d
%else
2b3a1d
%pyproject_check_import
2b3a1d
%endif
2b3a1d
2b3a1d
2b3a1d
%files -n python3-trustme -f %{pyproject_files}
2b3a1d
%doc README.rst
2b3a1d
2b3a1d
2b3a1d
%if %{with docs}
2b3a1d
%files -n python-trustme-doc
2b3a1d
%license LICENSE LICENSE.MIT LICENSE.APACHE2
2b3a1d
%doc html
2b3a1d
%endif
2b3a1d
2b3a1d
2b3a1d
%changelog
2b3a1d
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
2b3a1d
2b3a1d
* Thu Nov 07 2024 Carl George <carlwgeorge@fedoraproject.org> - 1.2.0-1
2b3a1d
- Update to version 1.2.0 rhbz#2316927
2b3a1d
- Disable docs when building for RHEL (EPEL)
2b3a1d
2b3a1d
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
2b3a1d
2b3a1d
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 1.1.0-5
2b3a1d
- Rebuilt for Python 3.13
2b3a1d
2b3a1d
* Sun Jun 02 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-4
2b3a1d
- Patch for Python 3.13 (fix RHBZ#2272940)
2b3a1d
2b3a1d
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2b3a1d
2b3a1d
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2b3a1d
2b3a1d
* Fri Dec 01 2023 Carl George <carlwgeorge@fedoraproject.org> - 1.1.0-1
2b3a1d
- Update to version 1.1.0 rhbz#2192283
2b3a1d
- Switch to automatically generated buildrequires
2b3a1d
- Switch to SPDX license identifier
2b3a1d
2b3a1d
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2b3a1d
2b3a1d
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 0.9.0-5
2b3a1d
- Rebuilt for Python 3.12
2b3a1d
2b3a1d
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2b3a1d
2b3a1d
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2b3a1d
2b3a1d
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 0.9.0-2
2b3a1d
- Rebuilt for Python 3.11
2b3a1d
2b3a1d
* Thu Jan 27 2022 Carl George <carl@george.computer> - 0.9.0-1
2b3a1d
- Latest upstream
2b3a1d
- Resolves: rhbz#1993357
2b3a1d
2b3a1d
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2b3a1d
2b3a1d
* Sat Jul 24 2021 Carl George <carl@george.computer> - 0.8.0-1
2b3a1d
- Latest upstream
2b3a1d
- Resolves: rhbz#1969634
2b3a1d
2b3a1d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.7.0-2
2b3a1d
- Rebuilt for Python 3.10
2b3a1d
2b3a1d
* Fri Mar 19 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.7.0-1
2b3a1d
- Update to 0.7.0 (rhbz#1927133)
2b3a1d
2b3a1d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-6
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2b3a1d
2b3a1d
* Sat Nov 14 2020 Carl George <carl@george.computer> - 0.6.0-5
2b3a1d
- Add doc subpackage
2b3a1d
2b3a1d
* Wed Oct 07 2020 Carl George <carl@george.computer> - 0.6.0-4
2b3a1d
- Remove explicit run time requires in favor of automatically generated ones
2b3a1d
2b3a1d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2b3a1d
2b3a1d
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
2b3a1d
- Rebuilt for Python 3.9
2b3a1d
2b3a1d
* Tue Mar 17 2020 Carl George <carl@george.computer> - 0.6.0-1
2b3a1d
- Latest upstream
2b3a1d
2b3a1d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-5
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2b3a1d
2b3a1d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-4
2b3a1d
- Rebuilt for Python 3.8.0rc1 (#1748018)
2b3a1d
2b3a1d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-3
2b3a1d
- Rebuilt for Python 3.8
2b3a1d
2b3a1d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2b3a1d
2b3a1d
* Mon Jun 10 2019 Carl George <carl@george.computer> - 0.5.2-1
2b3a1d
- Latest upstream
2b3a1d
2b3a1d
* Tue Apr 16 2019 Carl George <carl@george.computer> - 0.5.1-1
2b3a1d
- Latest upstream
2b3a1d
2b3a1d
* Fri Feb 22 2019 Carl George <carl@george.computer> - 0.5.0-1
2b3a1d
- Latest upstream
2b3a1d
2b3a1d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
2b3a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2b3a1d
2b3a1d
* Thu Sep 13 2018 Carl George <carl@george.computer> - 0.4.0-1
2b3a1d
- Initial package