Accepting request 867645 from devel:tools

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/867645
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/b4?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2021-01-29 13:57:18 +00:00 committed by Git OBS Bridge
commit 848150edfb
7 changed files with 34 additions and 21 deletions

View File

@ -3,8 +3,8 @@
<param name="url">git://git.kernel.org/pub/scm/utils/b4/b4.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="revision">@PARENT_TAG@</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">stable-0.6.y</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>

View File

@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">git://git.kernel.org/pub/scm/utils/b4/b4.git</param>
<param name="changesrevision">27f1ca8ce3e64c434503f15b93d56f6d2fc87495</param></service></servicedata>
<param name="changesrevision">f93bbd3e50b1fb4507aa537f4004da545af9d890</param></service></servicedata>

3
b4-0.6.2+4.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c8875e23e6b6e5a665fff1eb82bab6b4d9acb1060aeeea2b3679b15f7ffb84bd
size 230923

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5b43cf5f4d1c192fdeb33735199cc3fc4866ac911164939a1dae38a1be71b8c
size 229899

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Jan 22 06:09:14 UTC 2021 - jslaby@suse.cz
- Update to version 0.6.2+4:
* Save to/cc headers as-is for tracking
* Add -f to "b4 mbox" to filter dupes
* Check if -o is a maildir
- Skip python 3.6 to fix build
-------------------------------------------------------------------
Mon Dec 21 10:26:12 UTC 2020 - jslaby@suse.cz

View File

@ -1,5 +1,5 @@
name: b4
version: 0.6.2
mtime: 1608330096
commit: 27f1ca8ce3e64c434503f15b93d56f6d2fc87495
version: 0.6.2+4
mtime: 1609179217
commit: f93bbd3e50b1fb4507aa537f4004da545af9d890

28
b4.spec
View File

@ -1,7 +1,7 @@
#
# spec file for package b4
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,10 +16,9 @@
#
%define skip_python2 1
%define version_unconverted 0.6.2
%define version_unconverted 0.6.2+4
Name: b4
Version: 0.6.2
Version: 0.6.2+4
Release: 0
Summary: Helper scripts for kernel.org patches
License: GPL-2.0-or-later
@ -28,8 +27,10 @@ URL: https://git.kernel.org/pub/scm/utils/b4/b4.git
Source0: %{name}-%{version}.tar.xz
Patch0: 0001-lift-requests-version-requirement.patch
BuildArch: noarch
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
# for checks
BuildRequires: git-core
BuildRequires: python3-requests
BuildRequires: python3-setuptools
Requires: python3-dkimpy >= 1.0.5
Requires: python3-dnspython >= 2.0.0
Requires: python3-requests >= 2.24.0
@ -50,22 +51,25 @@ precursor to Lore and Data in the Star Trek universe.
sed -i.old '1{/#!.*/d}' b4/*.py
%build
%python_build
%python3_build
%install
%python_install
%python3_install
mv %{buildroot}/%{_mandir}/man5 %{buildroot}/%{_mandir}/man.5
%check
%python_exec setup.py check
python3 setup.py check
export PYTHONPATH="./"
%python_exec ./b4/command.py --version >check_version
echo %version | grep "`cat check_version`"
THEIRS=`python3 ./b4/command.py --version`
OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" b4/__init__.py`
test "$THEIRS" = "$OURS"
python3 ./b4/command.py --help |grep -q 'mbox,am,attest'
python3 ./b4/command.py mbox abc |& grep -q 'Looking up https://lore.kernel.org/r/abc'
%files
%doc README.rst
%license COPYING
%{_bindir}/{%name}
%{_bindir}/%{name}
%dir %{_mandir}/man.5/
%{_mandir}/man.5/b4.5.gz
%{python_sitelib}/%{name}*