up to 0.14.0
OBS-URL: https://build.opensuse.org/package/show/devel:tools/b4?expand=0&rev=104
This commit is contained in:
parent
a526d86169
commit
f06b0beebd
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:816aa2a26539e2ac92790b04726fbe74d52bfe49bd24570e6cfea8281464b9e2
|
|
||||||
size 243729
|
|
3
b4-0.14.0.tar.gz
Normal file
3
b4-0.14.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a2470164ffeffd3b8217de658d2a2ee9053698f272268ac7563c752d605881d3
|
||||||
|
size 267895
|
10
b4.changes
10
b4.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 17 06:41:56 UTC 2024 - Jiri Slaby <jslaby@suse.cz>
|
||||||
|
|
||||||
|
- update to 0.14.0:
|
||||||
|
* Switch to using pyproject.toml
|
||||||
|
* Automatic dependency resolution
|
||||||
|
* Checkpatch and other pre-submit checks
|
||||||
|
* Document new features
|
||||||
|
* Miscellaneous enhancements
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 16 04:40:09 UTC 2024 - Jiri Slaby <jslaby@suse.cz>
|
Fri Feb 16 04:40:09 UTC 2024 - Jiri Slaby <jslaby@suse.cz>
|
||||||
|
|
||||||
|
26
b4.spec
26
b4.spec
@ -24,7 +24,7 @@
|
|||||||
%global pprefix python311
|
%global pprefix python311
|
||||||
%endif
|
%endif
|
||||||
Name: b4
|
Name: b4
|
||||||
Version: 0.13.0
|
Version: 0.14.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Helper scripts for kernel.org patches
|
Summary: Helper scripts for kernel.org patches
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
@ -33,16 +33,16 @@ 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
|
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 base >= 3.9}
|
||||||
BuildRequires: %{python_module dkimpy >= 1.0.5}
|
BuildRequires: %{python_module dkimpy >= 1.0.5}
|
||||||
BuildRequires: %{python_module dnspython >= 2.0.0}
|
BuildRequires: %{python_module patatt >= 0.6}
|
||||||
BuildRequires: %{python_module patatt >= 0.5}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests >= 2.24.0}
|
BuildRequires: %{python_module requests >= 2.24.0}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: git-filter-repo >= 2.30
|
BuildRequires: git-filter-repo >= 2.30
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: %{pprefix}-dkimpy
|
Requires: %{pprefix}-dkimpy
|
||||||
Requires: %{pprefix}-dnspython
|
|
||||||
Requires: %{pprefix}-patatt
|
Requires: %{pprefix}-patatt
|
||||||
Requires: %{pprefix}-requests
|
Requires: %{pprefix}-requests
|
||||||
Requires: git-core
|
Requires: git-core
|
||||||
@ -65,21 +65,23 @@ precursor to Lore and Data in the Star Trek universe.
|
|||||||
rm -rf patatt
|
rm -rf patatt
|
||||||
|
|
||||||
# ditch shebang from .py files, they are non-executables anyway
|
# ditch shebang from .py files, they are non-executables anyway
|
||||||
sed -i.old '1{/#!.*/d}' b4/*.py
|
sed -i.old '1{/#!.*/d}' src/b4/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %{$python_fix_shebang}
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/{tests,b4/man}/
|
||||||
|
install -m644 -Dt %{buildroot}%{_mandir}/man5/ src/b4/man/b4.5
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py check
|
rm -r build/lib/tests/
|
||||||
export PYTHONPATH="./"
|
%pytest
|
||||||
|
export PYTHONPATH="./build/lib"
|
||||||
THEIRS=`%{buildroot}/%{_bindir}/b4 --version`
|
THEIRS=`%{buildroot}/%{_bindir}/b4 --version`
|
||||||
OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" b4/__init__.py`
|
OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" src/b4/__init__.py`
|
||||||
test "$THEIRS" = "$OURS"
|
test "$THEIRS" = "$OURS"
|
||||||
%{buildroot}/%{_bindir}/b4 --help | grep -q 'mbox,am,shazam,pr'
|
%{buildroot}/%{_bindir}/b4 --help | grep -q 'mbox,am,shazam,pr'
|
||||||
%{buildroot}/%{_bindir}/b4 mbox abc |& grep -q 'Grabbing thread from lore.kernel.org/all/abc/t.mbox.gz'
|
%{buildroot}/%{_bindir}/b4 mbox abc |& grep -q 'Grabbing thread from lore.kernel.org/all/abc/t.mbox.gz'
|
||||||
|
Loading…
Reference in New Issue
Block a user