Blame SPECS/python-cbor2.spec

aa91e0
%global pypi_name cbor2
aa91e0
aa91e0
#package python3-sphinx-autodoc-typehints is not provided in RDO
aa91e0
%bcond_with doc
aa91e0
aa91e0
Name:           python-%{pypi_name}
aa91e0
Version:        5.6.5
aa91e0
Release:        3%{?dist}
aa91e0
Summary:        Python CBOR (de)serializer with extensive tag support
aa91e0
aa91e0
License:        MIT
aa91e0
URL:            https://github.com/agronholm/cbor2
aa91e0
Source0:        %{pypi_source}
aa91e0
aa91e0
BuildRequires:  gcc
aa91e0
BuildRequires:  python3-devel
aa91e0
aa91e0
%description
aa91e0
This library provides encoding and decoding for the Concise Binary Object
aa91e0
Representation (CBOR) (RFC 7049) serialization format.
aa91e0
aa91e0
%package -n     python3-%{pypi_name}
aa91e0
Summary:        %{summary}
aa91e0
aa91e0
%description -n python3-%{pypi_name}
aa91e0
This library provides encoding and decoding for the Concise Binary Object
aa91e0
Representation (CBOR) (RFC 7049) serialization format.
aa91e0
aa91e0
%if %{with doc}
aa91e0
%package -n python-%{pypi_name}-doc
aa91e0
Summary:        cbor2 documentation
aa91e0
BuildArch:      noarch
aa91e0
BuildRequires:  python3dist(sphinx)
aa91e0
BuildRequires:  python3dist(sphinx-rtd-theme)
aa91e0
BuildRequires:  python3dist(sphinx-autodoc-typehints)
aa91e0
aa91e0
%description -n python-%{pypi_name}-doc
aa91e0
Documentation for cbor2.
aa91e0
%endif
aa91e0
aa91e0
%prep
aa91e0
%autosetup -n %{pypi_name}-%{version}
aa91e0
aa91e0
%generate_buildrequires
aa91e0
%pyproject_buildrequires -x test
aa91e0
aa91e0
%build
aa91e0
%pyproject_wheel
aa91e0
aa91e0
%install
aa91e0
%pyproject_install
aa91e0
%pyproject_save_files %{pypi_name}
aa91e0
%if %{with doc}
aa91e0
PYTHONPATH=${PWD} sphinx-build-3 docs html
aa91e0
rm -rf html/.{doctrees,buildinfo}
aa91e0
%endif
aa91e0
aa91e0
%check
aa91e0
%pytest -v tests
aa91e0
aa91e0
%files -n python3-%{pypi_name} -f %{pyproject_files}
aa91e0
%doc README.rst
aa91e0
%{python3_sitearch}/_%{pypi_name}%{python3_ext_suffix}
aa91e0
%{_bindir}/%{pypi_name}
aa91e0
aa91e0
%if %{with doc}
aa91e0
%files -n python-%{pypi_name}-doc
aa91e0
%doc html
aa91e0
%license LICENSE.txt
aa91e0
%endif
aa91e0
aa91e0
%changelog
aa91e0
* Thu Feb 06 2025 Joel Capitao <jcapitao@redhat.com> - 5.6.5-3
aa91e0
- Disable doc generation
aa91e0
aa91e0
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.5-2
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
aa91e0
aa91e0
* Thu Oct 10 2024 Fabian Affolter <mail@fabian-affolter.ch> - 5.6.5-1
aa91e0
- Update to latest upstream release (closes rhbz#2274416)
aa91e0
aa91e0
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.2-3
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
aa91e0
aa91e0
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 5.6.2-2
aa91e0
- Rebuilt for Python 3.13
aa91e0
aa91e0
* Mon Apr 08 2024 Fabian Affolter <mail@fabian-affolter.ch> - 5.6.2-1
aa91e0
- Update to latest upstream release (closes rhbz#2261550, closes rhbz#2245361)
aa91e0
- Fixes CVE-2024-26134 (closes rhbz#2265036, closes rhbz#bug 2265035)
aa91e0
aa91e0
* Sat Feb 03 2024 Fabian Affolter <mail@fabian-affolter.ch> - 5.6.1-1
aa91e0
- Update to latest upstream release 5.6.1 (closes rhbz#2245361)
aa91e0
aa91e0
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-14
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
aa91e0
aa91e0
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-13
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
aa91e0
aa91e0
* Wed Aug 30 2023 Carl George <carlwgeorge@fedoraproject.org> - 5.1.2-12
aa91e0
- Convert to pyproject macros
aa91e0
- Validated license as SPDX identifier
aa91e0
aa91e0
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-11
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
aa91e0
aa91e0
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 5.1.2-10
aa91e0
- Rebuilt for Python 3.12
aa91e0
aa91e0
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-9
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
aa91e0
aa91e0
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-8
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
aa91e0
aa91e0
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.1.2-7
aa91e0
- Rebuilt for Python 3.11
aa91e0
aa91e0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-6
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
aa91e0
aa91e0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-5
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
aa91e0
aa91e0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 5.1.2-4
aa91e0
- Rebuilt for Python 3.10
aa91e0
aa91e0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-3
aa91e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
aa91e0
aa91e0
* Fri Sep 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 5.1.2-2
aa91e0
- Make doc subpackage noarch (rhbz#1877691)
aa91e0
aa91e0
* Thu Sep 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 5.1.2-1
aa91e0
- Initial package