2021-09-24 09:27:27 +02:00
|
|
|
#
|
|
|
|
# spec file for package mercurial-extension-hg-evolve
|
|
|
|
#
|
|
|
|
# Copyright (c) 2021 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: mercurial-extension-hg-evolve
|
2022-03-07 21:13:03 +01:00
|
|
|
Version: 10.5.0
|
2021-09-24 09:27:27 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Flexible evolution of Mercurial history
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
URL: https://www.mercurial-scm.org/doc/evolution/
|
2021-09-29 09:19:08 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-%{version}.tar.gz
|
|
|
|
Source90: tests.blacklist
|
2021-09-24 09:27:27 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: python3-setuptools
|
2021-09-29 09:19:08 +02:00
|
|
|
BuildRequires: python3-pyflakes
|
|
|
|
BuildRequires: python3-flake8
|
2021-09-24 09:27:27 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: mercurial
|
|
|
|
BuildRequires: mercurial-tests
|
2021-09-29 09:19:08 +02:00
|
|
|
BuildRequires: unzip
|
2021-09-24 09:27:27 +02:00
|
|
|
Requires: mercurial
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Flexible evolution of Mercurial history.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n hg-evolve-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python3_install
|
|
|
|
|
|
|
|
# Delete hgext3rd/__init__.py and its cached version because it is already delivered by mercurial.
|
|
|
|
rm %{buildroot}%{python3_sitelib}/hgext3rd/__init__.py
|
|
|
|
rm %{buildroot}%{python3_sitelib}/hgext3rd/__pycache__/__init__*.pyc
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd tests
|
2021-09-29 09:19:08 +02:00
|
|
|
python3 %{_datadir}/mercurial/tests/run-tests.py --with-hg=%{_bindir}/hg --blacklist=%{SOURCE90}
|
2021-09-24 09:27:27 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CHANGELOG README.rst
|
|
|
|
%license COPYING
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|