|
|
5fd566 |
# Created by pyp2rpm-3.3.4
|
|
|
5fd566 |
%global pypi_name cbor2
|
|
|
5fd566 |
|
|
|
5fd566 |
Name: python-%{pypi_name}
|
|
|
5fd566 |
Version: 5.1.2
|
|
|
5fd566 |
Release: 3%{?dist}
|
|
|
5fd566 |
Summary: Python CBOR (de)serializer with extensive tag support
|
|
|
5fd566 |
|
|
|
5fd566 |
License: MIT
|
|
|
5fd566 |
URL: https://github.com/agronholm/cbor2
|
|
|
5fd566 |
Source0: %{pypi_source}
|
|
|
5fd566 |
|
|
|
5fd566 |
BuildRequires: gcc
|
|
|
5fd566 |
|
|
|
5fd566 |
%description
|
|
|
5fd566 |
This library provides encoding and decoding for the Concise Binary Object
|
|
|
5fd566 |
Representation (CBOR) (RFC 7049) serialization format.
|
|
|
5fd566 |
|
|
|
5fd566 |
%package -n python3-%{pypi_name}
|
|
|
5fd566 |
Summary: %{summary}
|
|
|
5fd566 |
|
|
|
5fd566 |
BuildRequires: python3-devel
|
|
|
5fd566 |
BuildRequires: python3dist(pytest)
|
|
|
5fd566 |
BuildRequires: python3dist(pytest-cov)
|
|
|
5fd566 |
BuildRequires: python3dist(setuptools)
|
|
|
5fd566 |
BuildRequires: python3dist(setuptools-scm)
|
|
|
5fd566 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
5fd566 |
|
|
|
5fd566 |
%description -n python3-%{pypi_name}
|
|
|
5fd566 |
This library provides encoding and decoding for the Concise Binary Object
|
|
|
5fd566 |
Representation (CBOR) (RFC 7049) serialization format.
|
|
|
5fd566 |
|
|
|
5fd566 |
%package -n python-%{pypi_name}-doc
|
|
|
5fd566 |
Summary: cbor2 documentation
|
|
|
5fd566 |
BuildArch: noarch
|
|
|
5fd566 |
|
|
|
5fd566 |
BuildRequires: python3dist(sphinx)
|
|
|
5fd566 |
BuildRequires: python3dist(sphinx-rtd-theme)
|
|
|
5fd566 |
%description -n python-%{pypi_name}-doc
|
|
|
5fd566 |
Documentation for cbor2.
|
|
|
5fd566 |
|
|
|
5fd566 |
%prep
|
|
|
5fd566 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
5fd566 |
rm -rf %{pypi_name}.egg-info
|
|
|
5fd566 |
|
|
|
5fd566 |
%build
|
|
|
5fd566 |
%py3_build
|
|
|
5fd566 |
|
|
|
5fd566 |
%install
|
|
|
5fd566 |
%py3_install
|
|
|
5fd566 |
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
|
5fd566 |
rm -rf html/.{doctrees,buildinfo}
|
|
|
5fd566 |
|
|
|
5fd566 |
%check
|
|
|
5fd566 |
%pytest -v tests
|
|
|
5fd566 |
|
|
|
5fd566 |
%files -n python3-%{pypi_name}
|
|
|
5fd566 |
%license LICENSE.txt
|
|
|
5fd566 |
%doc README.rst
|
|
|
5fd566 |
%{python3_sitearch}/%{pypi_name}/
|
|
|
5fd566 |
%{python3_sitearch}/_%{pypi_name}.*.so
|
|
|
5fd566 |
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
|
5fd566 |
|
|
|
5fd566 |
%files -n python-%{pypi_name}-doc
|
|
|
5fd566 |
%doc html
|
|
|
5fd566 |
%license LICENSE.txt
|
|
|
5fd566 |
|
|
|
5fd566 |
%changelog
|
|
|
5fd566 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-3
|
|
|
5fd566 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
5fd566 |
|
|
|
5fd566 |
* Fri Sep 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 5.1.2-2
|
|
|
5fd566 |
- Make doc subpackage noarch (rhbz#1877691)
|
|
|
5fd566 |
|
|
|
5fd566 |
* Thu Sep 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 5.1.2-1
|
|
|
5fd566 |
- Initial package
|