2020-05-26 14:14:14 +02:00
|
|
|
#
|
|
|
|
# spec file for package b4
|
|
|
|
#
|
|
|
|
# Copyright (c) 2020 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
2020-11-27 12:03:24 +01:00
|
|
|
%define version_unconverted 0.5.3+0
|
2020-05-26 14:14:14 +02:00
|
|
|
Name: b4
|
2020-11-27 12:03:24 +01:00
|
|
|
Version: 0.5.3+0
|
2020-05-26 14:14:14 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Helper scripts for kernel.org patches
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Tools/Other
|
2020-06-08 12:58:33 +02:00
|
|
|
URL: https://git.kernel.org/pub/scm/utils/b4/b4.git
|
2020-07-29 07:30:49 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2020-05-26 14:14:14 +02:00
|
|
|
BuildArch: noarch
|
2020-08-20 08:28:28 +02:00
|
|
|
BuildRequires: %{python_module requests}
|
2020-05-26 14:14:14 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-07-28 13:35:50 +02:00
|
|
|
BuildRequires: tar
|
2020-08-20 08:07:44 +02:00
|
|
|
Requires: python3-requests
|
2020-05-26 14:14:14 +02: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
|
|
|
|
|
2020-06-16 08:52:54 +02:00
|
|
|
# ditch shebang from .py files, they are non-executables anyway
|
|
|
|
sed -i.old '1{/#!.*/d}' b4/*.py
|
|
|
|
|
2020-05-26 14:14:14 +02:00
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}/%{_mandir}/man.5
|
|
|
|
install -m 0644 -t %{buildroot}/%{_mandir}/man.5 man/b4.5
|
|
|
|
%python_install
|
|
|
|
|
2020-08-20 08:28:28 +02:00
|
|
|
%check
|
|
|
|
%python_exec setup.py check
|
|
|
|
export PYTHONPATH="./"
|
|
|
|
%python_exec ./b4/command.py --version >check_version
|
|
|
|
echo %version | grep "`cat check_version`"
|
|
|
|
|
2020-05-26 14:14:14 +02:00
|
|
|
%files
|
|
|
|
%doc README.rst
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/{%name}
|
|
|
|
%dir %{_mandir}/man.5/
|
|
|
|
%{_mandir}/man.5/b4.5.gz
|
|
|
|
%{python_sitelib}/%{name}*
|
|
|
|
|
|
|
|
%changelog
|