From b42ebc5df5edb6cd2756e9a8ba85b742d5217a19a41b963b31c4951b45019aef Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 4 Mar 2020 19:28:51 +0000 Subject: [PATCH] Accepting request 781582 from home:alarrosa:branches:devel:tools:scm This is a "friendly fork" of bzr, a replacement that uses python3 instead of python2 OBS-URL: https://build.opensuse.org/request/show/781582 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/breezy?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ breezy-3.0.2.tar.gz | 3 ++ breezy.changes | 5 +++ breezy.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 breezy-3.0.2.tar.gz create mode 100644 breezy.changes create mode 100644 breezy.spec 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/breezy-3.0.2.tar.gz b/breezy-3.0.2.tar.gz new file mode 100644 index 0000000..8d8605a --- /dev/null +++ b/breezy-3.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50f16bc7faf299f98fe58573da55b0664078f94b1a0e7f0ce9e1e6a0d47e68e0 +size 15271219 diff --git a/breezy.changes b/breezy.changes new file mode 100644 index 0000000..045bbe2 --- /dev/null +++ b/breezy.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Mar 4 10:49:47 UTC 2020 - Antonio Larrosa + +- Initial release of breezy 3.0.2 to replace bzr which only + works with python2 diff --git a/breezy.spec b/breezy.spec new file mode 100644 index 0000000..85bf7cd --- /dev/null +++ b/breezy.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-breezy +# +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%define skip_python2 1 +Name: breezy +Version: 3.0.2 +Release: 0 +License: GPL-2.0 +Summary: Friendly distributed version control system +Url: https://www.breezy-vcs.org/ +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/b/breezy/breezy-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: python3-devel +BuildRequires: python3-setuptools +# SECTION test requirements +BuildRequires: python3-configobj +BuildRequires: python3-fixtures >= 1.3.0 +BuildRequires: python3-dulwich >= 0.19.11 +BuildRequires: python3-fastimport >= 0.9.8 +BuildRequires: python3-six >= 1.9.0 +BuildRequires: python3-testtools +BuildRequires: python3-pytest +BuildRequires: python3-tox +BuildRequires: python3-dulwich +# /SECTION +BuildRequires: fdupes +Requires: python3-configobj +Requires: python3-dulwich >= 0.19.11 +Requires: python3-fastimport >= 0.9.8 +Requires: python3-six >= 1.9.0 +Suggests: python3-launchpadlib >= 1.6.3 + +%description +Friendly distributed version control system + +%prep +%setup -q -n breezy-%{version} +sed -ie "s,man/man1,share/man/man1," setup.py + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%if 0 +%check +virtualenv --system-site-packages --no-download testvenv +testvenv/bin/pip install -e . +export PYTHONPATH=$PWD/testvenv/lib/python%{python_bin_suffix}/site-packages/:$PWD +testvenv/bin/python -m pytest && rm -Rf testvenv +%endif + +%files +%doc NEWS README.rst README_BDIST_RPM +%license COPYING.txt +%{_bindir}/bzr-receive-pack +%{_bindir}/bzr-upload-pack +%{_bindir}/git-remote-bzr +%{_bindir}/brz +%{python_sitearch}/breezy +%{python_sitearch}/breezy-%{version}-py%{python_version}.egg-info +%{_mandir}/man1/brz.1* +%{_mandir}/man1/git-remote-bzr.1* + +%changelog