2020-12-08 07:55:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package b4
|
|
|
|
#
|
2023-01-02 11:13:13 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-12-08 07:55:01 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: b4
|
2023-06-26 07:22:57 +02:00
|
|
|
Version: 0.12.3
|
2020-12-08 07:55:01 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Helper scripts for kernel.org patches
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
URL: https://git.kernel.org/pub/scm/utils/b4/b4.git
|
2022-09-19 07:41:38 +02:00
|
|
|
Source0: https://github.com/mricon/b4/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2022-09-19 07:38:22 +02:00
|
|
|
BuildRequires: fdupes
|
2021-01-22 08:05:37 +01:00
|
|
|
BuildRequires: git-core
|
2022-10-04 09:33:02 +02:00
|
|
|
BuildRequires: git-filter-repo >= 2.30
|
2023-03-06 07:40:12 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-07-27 08:42:10 +02:00
|
|
|
BuildRequires: python3-base >= 3.9
|
2023-06-23 09:46:41 +02:00
|
|
|
BuildRequires: python3-dkimpy >= 1.0.5
|
|
|
|
BuildRequires: python3-dnspython >= 2.0.0
|
|
|
|
BuildRequires: python3-patatt >= 0.5
|
|
|
|
BuildRequires: python3-requests >= 2.24.0
|
|
|
|
BuildRequires: python3-setuptools
|
2022-10-04 09:33:02 +02:00
|
|
|
Requires: git-core
|
|
|
|
Requires: git-filter-repo >= 2.30
|
2023-06-23 09:46:41 +02:00
|
|
|
Requires: python3-dkimpy
|
|
|
|
Requires: python3-dnspython
|
|
|
|
Requires: python3-patatt
|
|
|
|
Requires: python3-requests
|
2023-03-06 07:40:12 +01:00
|
|
|
BuildArch: noarch
|
2020-12-08 07:55:01 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This 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.
|
|
|
|
|
|
|
|
The name "b4" was chosen for ease of typing and because B-4 was the
|
|
|
|
precursor to Lore and Data in the Star Trek universe.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
2021-05-27 12:01:10 +02:00
|
|
|
# use the system one
|
|
|
|
rm -rf patatt
|
|
|
|
|
2020-12-08 07:55:01 +01:00
|
|
|
# ditch shebang from .py files, they are non-executables anyway
|
|
|
|
sed -i.old '1{/#!.*/d}' b4/*.py
|
|
|
|
|
|
|
|
%build
|
2021-01-22 08:05:37 +01:00
|
|
|
%python3_build
|
2020-12-08 07:55:01 +01:00
|
|
|
|
|
|
|
%install
|
2021-01-22 08:05:37 +01:00
|
|
|
%python3_install
|
2023-03-06 07:40:12 +01:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
2020-12-08 07:55:01 +01:00
|
|
|
|
|
|
|
%check
|
2021-01-22 08:05:37 +01:00
|
|
|
python3 setup.py check
|
2020-12-08 07:55:01 +01:00
|
|
|
export PYTHONPATH="./"
|
2021-05-27 12:01:10 +02:00
|
|
|
THEIRS=`%{buildroot}/%{_bindir}/b4 --version`
|
2021-01-22 08:05:37 +01:00
|
|
|
OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" b4/__init__.py`
|
|
|
|
test "$THEIRS" = "$OURS"
|
2022-09-19 07:38:22 +02:00
|
|
|
%{buildroot}/%{_bindir}/b4 --help | grep -q 'mbox,am,shazam,pr'
|
2022-06-20 07:35:49 +02:00
|
|
|
%{buildroot}/%{_bindir}/b4 mbox abc |& grep -q 'Grabbing thread from lore.kernel.org/all/abc/t.mbox.gz'
|
2020-12-08 07:55:01 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.rst
|
|
|
|
%license COPYING
|
2021-01-22 07:11:36 +01:00
|
|
|
%{_bindir}/%{name}
|
2023-03-06 07:40:12 +01:00
|
|
|
%{_mandir}/man5/b4.5%{?ext_man}
|
2020-12-08 07:55:01 +01:00
|
|
|
%{python_sitelib}/%{name}*
|
|
|
|
|
|
|
|
%changelog
|