SHA256
1
0
forked from pool/b4

Accepting request 809007 from home:jirislaby

b4 downloads patches from kernel.org.

OBS-URL: https://build.opensuse.org/request/show/809007
OBS-URL: https://build.opensuse.org/package/show/devel:tools/b4?expand=0&rev=1
This commit is contained in:
Martin Pluskal 2020-05-26 12:14:14 +00:00 committed by Git OBS Bridge
commit dd7fd7bb48
8 changed files with 143 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

32
0001-fix-unicode.patch Normal file
View File

@ -0,0 +1,32 @@
From 345a58f37d51b302937a14f623076c5dd13dcc32 Mon Sep 17 00:00:00 2001
From: Jiri Slaby <jslaby@suse.cz>
Date: Tue, 26 May 2020 13:40:37 +0200
Subject: [PATCH] fix unicode
---
setup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index ed24367c6c56..c73c9f4b2b0b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
+import io
import os
import re
from setuptools import setup
@@ -11,7 +12,7 @@ from setuptools import setup
def read(fname):
- return open(os.path.join(os.path.dirname(__file__), fname)).read()
+ return io.open(os.path.join(os.path.dirname(__file__), fname), "r", encoding="utf-8").read()
def find_version(source):
--
2.26.2

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<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="versionformat">@PARENT_TAG@+git%cd.g%h</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">b4-*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled" />
</services>

4
_servicedata Normal file
View File

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

View File

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

4
b4.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue May 26 09:56:21 UTC 2020 - Jiri Slaby <jslaby@suse.com>
- initial package (0.4.0+git20200525.g59be08453137)

61
b4.spec Normal file
View File

@ -0,0 +1,61 @@
#
# 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
%define version_unconverted 0.4.0+git20200525.g59be08453137
Name: b4
Version: 0.4.0+git20200525.g59be08453137
Release: 0
Summary: Helper scripts for kernel.org patches
License: GPL-2.0-or-later
URL: https://git.kernel.org/pub/scm/utils/b4/b4.git
Group: Development/Tools/Other
Source0: %{name}-%{version}.tar.xz
Patch0: 0001-fix-unicode.patch
BuildArch: noarch
BuildRequires: %{python_module setuptools}
%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
%build
%python_build
%install
install -d %{buildroot}/%{_mandir}/man.5
install -m 0644 -t %{buildroot}/%{_mandir}/man.5 man/b4.5
%python_install
%files
%doc README.rst
%license COPYING
%{_bindir}/{%name}
%dir %{_mandir}/man.5/
%{_mandir}/man.5/b4.5.gz
%{python_sitelib}/%{name}*
%changelog