SHA256
1
0
forked from pool/b4

add sle15 support

OBS-URL: https://build.opensuse.org/package/show/devel:tools/b4?expand=0&rev=89
This commit is contained in:
Jiri Slaby 2023-07-27 07:56:02 +00:00 committed by Git OBS Bridge
parent 402aa53edb
commit 3a6828ca20
2 changed files with 13 additions and 11 deletions

View File

@ -2,7 +2,8 @@
Thu Jul 27 06:41:39 UTC 2023 - Jiri Slaby <jslaby@suse.cz>
- add python3-base >= 3.9 to BuildRequires for 15.5 and older
- add %{?sle15_python_module_pythons} too
- add %{?sle15_python_module_pythons}
- switch back to python_module macro to have all this working
-------------------------------------------------------------------
Mon Jun 26 05:20:06 UTC 2023 - Jiri Slaby <jslaby@suse.cz>

21
b4.spec
View File

@ -16,6 +16,7 @@
#
%define pythons python3
%{?sle15_python_module_pythons}
Name: b4
Version: 0.12.3
@ -25,16 +26,16 @@ License: GPL-2.0-or-later
Group: Development/Tools/Other
URL: https://git.kernel.org/pub/scm/utils/b4/b4.git
Source0: https://github.com/mricon/b4/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module dkimpy >= 1.0.5}
BuildRequires: %{python_module dnspython >= 2.0.0}
BuildRequires: %{python_module patatt >= 0.5}
BuildRequires: %{python_module requests >= 2.24.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: git-core
BuildRequires: git-filter-repo >= 2.30
BuildRequires: python-rpm-macros
BuildRequires: python3-base >= 3.9
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
Requires: git-core
Requires: git-filter-repo >= 2.30
Requires: python3-dkimpy
@ -62,14 +63,14 @@ rm -rf patatt
sed -i.old '1{/#!.*/d}' b4/*.py
%build
%python3_build
%python_build
%install
%python3_install
%fdupes %{buildroot}%{python3_sitelib}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
python3 setup.py check
%python_exec setup.py check
export PYTHONPATH="./"
THEIRS=`%{buildroot}/%{_bindir}/b4 --version`
OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" b4/__init__.py`