diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-13 15:01:01 -0800 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-13 15:01:01 -0800 |
| commit | a6af764624c92ba7b23934f8e82cfcda1405dd69 (patch) | |
| tree | 72da05be40458030dc763d3e750a6be159b97399 /python/python-b4.spec | |
| parent | 6344daa0d41e7ae9511e4d962a941685ae0f6d1c (diff) | |
| download | specs-a6af764624c92ba7b23934f8e82cfcda1405dd69.tar.gz specs-a6af764624c92ba7b23934f8e82cfcda1405dd69.tar.xz specs-a6af764624c92ba7b23934f8e82cfcda1405dd69.zip | |
+ b4
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python/python-b4.spec')
| -rw-r--r-- | python/python-b4.spec | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/python/python-b4.spec b/python/python-b4.spec new file mode 100644 index 0000000..0569bd3 --- /dev/null +++ b/python/python-b4.spec @@ -0,0 +1,63 @@ +%global srcname b4 +%global srcpath https://mirrors.edge.kernel.org/pub/software/devel/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 +# Unpin version requirement since Fedora 35+'s is newer +Patch0: b4-unpin-requests.patch + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python3dist(pytest) +# BuildRequires: python%%{python3_pkgversion}-setuptools + +%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 python%{python3_pkgversion}-%{srcname} +Summary: %{summary} + +%description -n python%{python3_pkgversion}-%{srcname} %{_description} + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + + +%generate_buildrequires +%pyproject_buildrequires -r requirements.txt + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{srcname} + + +%check +%pytest + + +%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} +%license COPYING +%doc README.rst +%{_bindir}/%{srcname} +%{_mandir}/man5/%{srcname}.5.* + + +%changelog +%autochangelog |
