commit eb7452b425def2e124164453093b8a31c6afee83b09d6f8fb47e56ac63a4950f Author: Martin Pluskal Date: Tue May 26 12:14:14 2020 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/0001-fix-unicode.patch b/0001-fix-unicode.patch new file mode 100644 index 0000000..8b9be56 --- /dev/null +++ b/0001-fix-unicode.patch @@ -0,0 +1,32 @@ +From 345a58f37d51b302937a14f623076c5dd13dcc32 Mon Sep 17 00:00:00 2001 +From: Jiri Slaby +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 + diff --git a/_service b/_service new file mode 100644 index 0000000..7565ce6 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + git://git.kernel.org/pub/scm/utils/b4/b4.git + git + enable + @PARENT_TAG@+git%cd.g%h + v(.*) + \1 + + + b4-*.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..09b154f --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + git://git.kernel.org/pub/scm/utils/b4/b4.git + 59be08453137a3b9c6a25dc6787b5066a88a84cd \ No newline at end of file diff --git a/b4-0.4.0+git20200525.g59be08453137.tar.xz b/b4-0.4.0+git20200525.g59be08453137.tar.xz new file mode 100644 index 0000000..ce2cb07 --- /dev/null +++ b/b4-0.4.0+git20200525.g59be08453137.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:214fe084515c2279ef03289e887f19503900a7a12b26bd0dba2771905a454528 +size 44608 diff --git a/b4.changes b/b4.changes new file mode 100644 index 0000000..c81a61e --- /dev/null +++ b/b4.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 26 09:56:21 UTC 2020 - Jiri Slaby + +- initial package (0.4.0+git20200525.g59be08453137) diff --git a/b4.spec b/b4.spec new file mode 100644 index 0000000..fde39a2 --- /dev/null +++ b/b4.spec @@ -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