SHA256
1
0
forked from pool/breezy
breezy/breezy.spec
Antonio Larrosa c90eecb7ac Accepting request 790048 from home:scarabeus_iv:branches:devel:tools:scm
[  187s] = 2174 failed, 8084 passed, 379 skipped, 24 xfailed, 830 warnings in 162.20s (0:02:42) =
^^ it still needs fixes, but at least enables the testing so we have somewhere to start


- Add patch to fix borked test import fix-tests.ptch
- Enable testing

OBS-URL: https://build.opensuse.org/request/show/790048
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/breezy?expand=0&rev=2
2020-03-31 09:23:41 +00:00

80 lines
2.3 KiB
RPMSpec

#
# spec file for package breezy
#
# 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/
#
Name: breezy
Version: 3.0.2
Release: 0
Summary: Friendly distributed version control system
License: GPL-2.0-only
URL: https://www.breezy-vcs.org/
Source: https://files.pythonhosted.org/packages/source/b/breezy/breezy-%{version}.tar.gz
Patch0: fix-tests.ptch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools
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
# SECTION test requirements
BuildRequires: python3-configobj
BuildRequires: python3-dulwich >= 0.19.11
BuildRequires: python3-fastimport >= 0.9.8
BuildRequires: python3-fixtures >= 1.3.0
BuildRequires: python3-pytest
BuildRequires: python3-pytest-xdist
BuildRequires: python3-six >= 1.9.0
BuildRequires: python3-testtools
# /SECTION
%description
Friendly distributed version control system
%prep
%setup -q -n breezy-%{version}
%patch0 -p1
sed -ie "s,man/man1,share/man/man1," setup.py
%build
export CFLAGS="%{optflags}"
%python3_build
%install
%python3_install
%fdupes %{buildroot}%{python3_sitearch}
%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
python3 -m pytest -v -n auto
%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%{python3_version}.egg-info
%{_mandir}/man1/brz.1%{?ext_man}
%{_mandir}/man1/git-remote-bzr.1%{?ext_man}
%changelog