%global srcname b4
Name: python-%{srcname}
Version: 0.8.0
Release: %autorelease
Summary: A helper tool to work with public-inbox and patch series
License: GPLv2
URL: https://git.kernel.org/pub/scm/utils/%{srcname}/%{srcname}.git
Source0: https://mirrors.edge.kernel.org/pub/software/devel/%{srcname}/%{srcname}-%{version}.tar.xz
# disable attestation support, dependencies unmet in EPEL 8
Patch0: %{srcname}-0.8.0-no-attest.patch
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(requests)
%global _description %{expand:
B4 is a helper utility to work with patches made available via a public-inbox
archive like lore.kernel.org. It is written to make it easier to participate in
a patch-based workflows, like those used in the Linux kernel development.}
%description %{_description}
%package -n %{srcname}
Summary: %{summary}
Provides: python%{python3_pkgversion}-%{srcname} = %{version}-%{release}
%description -n %{srcname} %{_description}
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
%check
%pytest
%files -n %{srcname}
%license COPYING
%doc README.rst
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/
%{_bindir}/%{srcname}
%{_mandir}/man5/%{srcname}.5.*
%changelog
%autochangelog