1
0
mercurial-extension-hg-evolve/mercurial-extension-hg-evolve.spec
Martin Pluskal 5fe478d08f Accepting request 920385 from home:expeehaa
I would like to have the mercurial extension hg-evolve available from the official repositories (or at least a devel project) to not depend on pip.

This requires request https://build.opensuse.org/request/show/920384 because the tests depend on the mercurial-tests package.

OBS-URL: https://build.opensuse.org/request/show/920385
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/mercurial-extension-hg-evolve?expand=0&rev=1
2021-09-24 07:27:27 +00:00

71 lines
2.0 KiB
RPMSpec

#
# 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/
#
%if 0%{?suse_version} >= 1550
%bcond_without test
%else
%bcond_with test
%endif
Name: mercurial-extension-hg-evolve
Version: 10.3.3
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/
Source: https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: python3
BuildRequires: python3-setuptools
BuildRequires: fdupes
BuildRequires: mercurial
BuildRequires: mercurial-tests
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
%if %{with test}
cd tests
python3 %{_datadir}/mercurial/tests/run-tests.py --with-hg=%{_bindir}/hg
%endif
%files
%doc CHANGELOG README.rst
%license COPYING
%{python3_sitelib}/*
%changelog