1
0

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
This commit is contained in:
Martin Pluskal 2021-09-24 07:27:27 +00:00 committed by Git OBS Bridge
commit 5fe478d08f
5 changed files with 101 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
hg-evolve-10.3.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca3b0ae45a2c3a811c0dc39153b8a1ea8a5c8f786c56370a41dfd83a5bff2502
size 850961

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Sep 20 18:44:53 UTC 2021 - Lukas Müller <expeehaa@outlook.com>
- Create package mercurial-extension-hg-evolve with hg-evolve version 10.3.3.

View File

@ -0,0 +1,70 @@
#
# 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