Compare commits
3 Commits
6dae5044b0
...
8cb657453e
Author | SHA256 | Date | |
---|---|---|---|
8cb657453e | |||
397e386ff1 | |||
a9ff0135c0 |
22
03_spurious_test_failure.patch
Normal file
22
03_spurious_test_failure.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Description: Fix some spurious test failures
|
||||||
|
Author: Jelmer Vernooij <jelmer@debian.org>
|
||||||
|
Status: Not forwarded upstream (workaround)
|
||||||
|
|
||||||
|
Index: unstable/breezy/tests/test_test_server.py
|
||||||
|
===================================================================
|
||||||
|
--- unstable.orig/breezy/tests/test_test_server.py
|
||||||
|
+++ unstable/breezy/tests/test_test_server.py
|
||||||
|
@@ -67,7 +67,12 @@ class TCPClient:
|
||||||
|
return self.sock.sendall(s)
|
||||||
|
|
||||||
|
def read(self, bufsize=4096):
|
||||||
|
- return self.sock.recv(bufsize)
|
||||||
|
+ try:
|
||||||
|
+ return self.sock.recv(bufsize)
|
||||||
|
+ except socket.error as e:
|
||||||
|
+ if e.errno == errno.ECONNRESET:
|
||||||
|
+ return b""
|
||||||
|
+ raise
|
||||||
|
|
||||||
|
|
||||||
|
class TCPConnectionHandler(socketserver.BaseRequestHandler):
|
15
08_disable_sphinx_epytext.patch
Normal file
15
08_disable_sphinx_epytext.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
=== modified file 'breezy/doc_generate/conf.py'
|
||||||
|
---
|
||||||
|
breezy/doc_generate/conf.py | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/breezy/doc_generate/conf.py
|
||||||
|
+++ b/breezy/doc_generate/conf.py
|
||||||
|
@@ -24,7 +24,6 @@ extensions = [
|
||||||
|
"sphinx.ext.ifconfig",
|
||||||
|
"sphinx.ext.autodoc",
|
||||||
|
"sphinx.ext.intersphinx",
|
||||||
|
- "sphinx_epytext",
|
||||||
|
# 'sphinxcontrib.napoleon', # TODO: for Google docstrings
|
||||||
|
]
|
||||||
|
|
26
16_generate_ids.patch
Normal file
26
16_generate_ids.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
breezy/generate_ids.py | 19 +++++++++++++++++++
|
||||||
|
1 file changed, 19 insertions(+)
|
||||||
|
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/breezy/generate_ids.py
|
||||||
|
@@ -0,0 +1,19 @@
|
||||||
|
+# Copyright (C) 2007-2011 Canonical Ltd
|
||||||
|
+#
|
||||||
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
|
+# it under the terms of the GNU General Public License as published by
|
||||||
|
+# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
+# (at your option) any later version.
|
||||||
|
+#
|
||||||
|
+# This program is distributed in the hope that it will be useful,
|
||||||
|
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
+# GNU General Public License for more details.
|
||||||
|
+#
|
||||||
|
+# You should have received a copy of the GNU General Public License
|
||||||
|
+# along with this program; if not, write to the Free Software
|
||||||
|
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
+
|
||||||
|
+from __future__ import absolute_import
|
||||||
|
+
|
||||||
|
+from .bzr.generate_ids import *
|
5
_service
5
_service
@ -2,4 +2,9 @@
|
|||||||
<service name="cargo_vendor" mode="manual">
|
<service name="cargo_vendor" mode="manual">
|
||||||
<param name="src">breezy-*.tar.gz</param>
|
<param name="src">breezy-*.tar.gz</param>
|
||||||
</service>
|
</service>
|
||||||
|
<service name="cargo_vendor" mode="manual">
|
||||||
|
<param name="src">breezy-*.tar.gz</param>
|
||||||
|
<param name="cargotoml">lib-rio/Cargo.toml</param>
|
||||||
|
<param name="tag">lib-rio</param>
|
||||||
|
</service>
|
||||||
</services>
|
</services>
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 21 23:29:39 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Fix vendoring in _service && revendor
|
||||||
|
- Fix packaging bugs (make rpmlint more happy and switch to wheel
|
||||||
|
workflow)
|
||||||
|
- Add Debian patches:
|
||||||
|
- 03_spurious_test_failure.patch
|
||||||
|
- 08_disable_sphinx_epytext.patch
|
||||||
|
- 16_generate_ids.patch
|
||||||
|
- Add bash completion
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 7 22:57:37 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
Thu Nov 7 22:57:37 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
76
breezy.spec
76
breezy.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package breezy
|
# spec file for package breezy
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -23,10 +23,20 @@ Version: 3.3.9
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Distributed version control system with multi-format support
|
Summary: Distributed version control system with multi-format support
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
|
# Upstream website https://launchpad.net/brz
|
||||||
URL: https://www.breezy-vcs.org/
|
URL: https://www.breezy-vcs.org/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/b/breezy/breezy-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/b/breezy/breezy-%{version}.tar.gz
|
||||||
Source98: vendor-lib-rio.tar.xz
|
Source98: vendor-lib-rio.tar.zst
|
||||||
Source99: vendor.tar.zst
|
Source99: vendor.tar.zst
|
||||||
|
# PATCH-FIX-UPSTREAM 03_spurious_test_failure.patch mcepl@suse.com
|
||||||
|
# fix some spurious test failures
|
||||||
|
Patch1: 03_spurious_test_failure.patch
|
||||||
|
# PATCH-FIX-UPSTREAM 08_disable_sphinx_epytext.patch mcepl@suse.com
|
||||||
|
# don't depend on sphinx_epytext
|
||||||
|
Patch2: 08_disable_sphinx_epytext.patch
|
||||||
|
# PATCH-FIX-UPSTREAM 16_generate_ids.patch mcepl@suse.com
|
||||||
|
Patch3: 16_generate_ids.patch
|
||||||
|
|
||||||
BuildRequires: cargo >= 1.41.0
|
BuildRequires: cargo >= 1.41.0
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -70,6 +80,18 @@ Breezy is a version control system implemented in Python with
|
|||||||
multi-format support. Breezy has built-in support for the Git and
|
multi-format support. Breezy has built-in support for the Git and
|
||||||
Bazaar file formats and network protocols.
|
Bazaar file formats and network protocols.
|
||||||
|
|
||||||
|
%package bash-completion
|
||||||
|
Summary: Bash completion for breezy
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Requires: bash-completion
|
||||||
|
Supplements: (breezy and bash-completion)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description bash-completion
|
||||||
|
Bash shell completions for breezy
|
||||||
|
|
||||||
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -a 98 -a 99 -n breezy-%{version}
|
%autosetup -p1 -a 98 -a 99 -n breezy-%{version}
|
||||||
|
|
||||||
@ -83,43 +105,37 @@ sed -i '1{\@^#!i[[:blank:]]*%{_bindir}/env python@d}' \
|
|||||||
%build
|
%build
|
||||||
export RUSTFLAGS=%{rustflags}
|
export RUSTFLAGS=%{rustflags}
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
%python3_build
|
%python3_pyproject_wheel
|
||||||
|
# generates brz.1
|
||||||
|
python3 tools/generate_docs.py man
|
||||||
|
# generates brz.bash_completion
|
||||||
|
python3 tools/generate_docs.py bash_completion
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export RUSTFLAGS=%{rustflags}
|
export RUSTFLAGS=%{rustflags}
|
||||||
%python3_install
|
%python3_pyproject_install
|
||||||
|
|
||||||
|
# shell completions
|
||||||
|
install -Dm0644 brz.bash_completion \
|
||||||
|
%{buildroot}%{_datadir}/bash-completion/completions/brz
|
||||||
|
|
||||||
%fdupes %{buildroot}%{python3_sitearch}
|
%fdupes %{buildroot}%{python3_sitearch}
|
||||||
|
|
||||||
|
# install manpage
|
||||||
|
install -D -m 0644 brz.1 %{buildroot}%{_mandir}/man1/brz.1
|
||||||
|
install -m 0644 breezy/git/git-remote-bzr.1 %{buildroot}%{_mandir}/man1/git-remote-bzr.1
|
||||||
|
|
||||||
# backwards compatible symbolic links
|
# backwards compatible symbolic links
|
||||||
ln -s brz %{buildroot}%{_bindir}/bzr
|
ln -s brz %{buildroot}%{_bindir}/bzr
|
||||||
echo ".so man1/brz.1" > %{buildroot}%{_mandir}/man1/bzr.1
|
echo ".so man1/brz.1" > %{buildroot}%{_mandir}/man1/bzr.1
|
||||||
|
|
||||||
|
%find_lang %{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
||||||
export LANG=en_US.UTF8
|
export LANG=en_US.UTF8
|
||||||
# log_C log_BOGUS - borked with py3.8+ as you can't change encoding
|
|
||||||
# test_ancient_{ctime,mtime} - broken on aarch64 %%arm ppc ppc64le
|
|
||||||
# test_distant_{ctime,mtime} - broken on %%arm
|
|
||||||
# test_plugins lp#1927523
|
|
||||||
# test_simple_local_git - pulls in forbidden modules with 3.10+
|
|
||||||
%{buildroot}%{_bindir}/bzr selftest -v --parallel=fork \
|
%{buildroot}%{_bindir}/bzr selftest -v --parallel=fork \
|
||||||
-Oselftest.timeout=6000 -x bash_completion \
|
-Oselftest.timeout=6000
|
||||||
-x breezy.tests.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh -x test_export_pot \
|
|
||||||
-x test_log_C -x test_log_BOGUS \
|
|
||||||
%ifnarch %{ix86} x86_64 ppc64
|
|
||||||
-x breezy.tests.test__dirstate_helpers.TestPackStat.test_ancient_ctime \
|
|
||||||
-x breezy.tests.test__dirstate_helpers.TestPackStat.test_ancient_mtime \
|
|
||||||
%endif
|
|
||||||
%ifarch %{arm}
|
|
||||||
-x breezy.tests.test__dirstate_helpers.TestPackStat.test_distant_ctime \
|
|
||||||
-x breezy.tests.test__dirstate_helpers.TestPackStat.test_distant_mtime \
|
|
||||||
%endif
|
|
||||||
-x breezy.tests.test_xml.TestSerializer.test_revision_text_v8 \
|
|
||||||
-x breezy.tests.test_xml.TestSerializer.test_revision_text_v7 \
|
|
||||||
-x breezy.tests.test_xml.TestSerializer.test_revision_text_v6 \
|
|
||||||
-x breezy.tests.test_plugins.TestPlugins \
|
|
||||||
-x breezy.tests.test_plugins.TestLoadingPlugins.test_plugin_with_error \
|
|
||||||
-x breezy.tests.test_import_tariff.TestImportTariffs.test_simple_local_git
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc NEWS README.rst
|
%doc NEWS README.rst
|
||||||
@ -133,8 +149,10 @@ export LANG=en_US.UTF8
|
|||||||
%{_mandir}/man1/brz.1%{?ext_man}
|
%{_mandir}/man1/brz.1%{?ext_man}
|
||||||
%{_mandir}/man1/bzr.1%{?ext_man}
|
%{_mandir}/man1/bzr.1%{?ext_man}
|
||||||
%{_mandir}/man1/git-remote-bzr.1%{?ext_man}
|
%{_mandir}/man1/git-remote-bzr.1%{?ext_man}
|
||||||
%dir %{_datadir}/locale/{ckb,fo,ku,my,sco}
|
|
||||||
%dir %{_datadir}/locale/{ckb,fo,ku,my,sco}/LC_MESSAGES
|
%files bash-completion
|
||||||
%{_datadir}/locale/*/*/breezy.mo
|
%{_datadir}/bash-completion/completions/brz
|
||||||
|
|
||||||
|
%files lang -f %{name}.lang
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
BIN
vendor-lib-rio.tar.xz
(Stored with Git LFS)
BIN
vendor-lib-rio.tar.xz
(Stored with Git LFS)
Binary file not shown.
BIN
vendor-lib-rio.tar.zst
(Stored with Git LFS)
Normal file
BIN
vendor-lib-rio.tar.zst
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
vendor.tar.zst
(Stored with Git LFS)
BIN
vendor.tar.zst
(Stored with Git LFS)
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user