1
0
mercurial-extension-hg-evolve/mercurial-extension-hg-evolve.spec
Lukas Müller 7c87ad6df4 Accepting request 1186946 from home:expeehaa:branches:devel:tools:scm
- Update to version 11.1.4.
  * compatibility with Mercurial 6.8
  topic (1.1.4)
  * compatibility with Mercurial 6.8
- Changes from version 11.1.3:
  topic (1.1.3)
  * topic namespaces: add hg debug-default-topic-namespace command that can
    list changesets with problematic topic namespaces (i.e. "none" and
    "default") and rewrite them
  * topic namespaces: new experimental.tns-reject-push config to make servers
    reject pushes that contain changesets with any topic namespace in commit
    extras
  * topic namespaces: slightly change .hg/topic-namespace cleanup code to be
    executed on acquiring a wlock instead of on reading .hg/topic-namespace

OBS-URL: https://build.opensuse.org/request/show/1186946
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/mercurial-extension-hg-evolve?expand=0&rev=26
2024-07-11 19:05:39 +00:00

91 lines
2.7 KiB
RPMSpec

#
# spec file for package mercurial-extension-hg-evolve
#
# Copyright (c) 2024 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/
#
%if 0%{?suse_version} > 1600
# Tumbleweed
%define pythons python3
%define mercurial_python python3
%define mercurial_python_executable python3
%else
%if 0%{?sle_version} >= 150600
%{?sle15_python_module_pythons}
# Leap 15.6
%if %pythons == "python311"
%define mercurial_python python311
%define mercurial_python_executable python3.11
%endif
%else
%define pythons python3
%define mercurial_python python3
%define mercurial_python_executable python3
%endif
%endif
Name: mercurial-extension-hg-evolve
Version: 11.1.4
Release: 0
Summary: Flexible evolution of Mercurial history
License: GPL-2.0-or-later
Group: Development/Tools/Version Control
URL: https://www.mercurial-scm.org/doc/evolution/
Source0: https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-%{version}.tar.gz
Source90: tests.blacklist
BuildRequires: %{mercurial_python}
# python311-flake8 is not available on Leap 15.6.
%if 0%{?suse_version} > 1600 || 0%{?sle_version} < 150600
BuildRequires: %{mercurial_python}-flake8
%endif
BuildRequires: %{mercurial_python}-pyflakes
BuildRequires: %{mercurial_python}-setuptools
BuildRequires: fdupes
BuildRequires: mercurial
BuildRequires: mercurial-tests
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: mercurial
BuildArch: noarch
%description
Flexible evolution of Mercurial history.
%prep
%setup -q -n hg-evolve-%{version}
%build
%python_build
%install
%python_install
# Delete hgext3rd/__init__.py and its cached version because it is already delivered by mercurial.
rm %{buildroot}%{python_sitelib}/hgext3rd/__init__.py
rm %{buildroot}%{python_sitelib}/hgext3rd/__pycache__/__init__*.pyc
%fdupes %{buildroot}%{python_sitelib}
%check
cd tests
%{mercurial_python_executable} %{_datadir}/mercurial/tests/run-tests.py --with-hg=%{_bindir}/hg --blacklist=%{SOURCE90}
%files
%doc CHANGELOG README.rst
%license COPYING
%{python_sitelib}/*
%changelog