|
|
e2a23c |
#
|
|
|
e2a23c |
# spec file for package mercurial-extension-hg-git
|
|
|
e2a23c |
#
|
|
Bernhard M. Wiedemann |
514c2a |
# Copyright (c) 2023 SUSE LLC
|
|
|
e2a23c |
#
|
|
|
e2a23c |
# All modifications and additions to the file contributed by third parties
|
|
|
e2a23c |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
e2a23c |
# upon. The license for this file, and modifications and additions to the
|
|
|
e2a23c |
# file, is the same license as for the pristine package itself (unless the
|
|
|
e2a23c |
# license for the pristine package is not an Open Source License, in which
|
|
|
e2a23c |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
e2a23c |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
e2a23c |
# published by the Open Source Initiative.
|
|
|
e2a23c |
|
|
|
e2a23c |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
e2a23c |
#
|
|
|
e2a23c |
|
|
|
26392c |
|
|
|
e2a23c |
%if 0%{?suse_version} >= 1550
|
|
|
e2a23c |
%bcond_without test
|
|
|
e2a23c |
%else
|
|
|
e2a23c |
%bcond_with test
|
|
|
e2a23c |
%endif
|
|
|
e2a23c |
|
|
Bernhard M. Wiedemann |
514c2a |
%define pythons python3
|
|
|
e2a23c |
Name: mercurial-extension-hg-git
|
|
|
6c9293 |
Version: 1.0.1
|
|
|
e2a23c |
Release: 0
|
|
|
e2a23c |
Summary: Hg-Git Mercurial plugin
|
|
|
e2a23c |
License: GPL-2.0-only
|
|
|
e2a23c |
Group: Development/Tools/Version Control
|
|
|
e2a23c |
URL: http://foss.heptapod.net/mercurial/hg-git
|
|
|
e2a23c |
Source0: https://files.pythonhosted.org/packages/source/h/hg-git/hg-git-%{version}.tar.gz
|
|
|
0b8c72 |
Source90: tests.blacklist
|
|
|
26392c |
BuildRequires: fdupes
|
|
|
26392c |
BuildRequires: git
|
|
|
26392c |
BuildRequires: mercurial
|
|
|
e2a23c |
BuildRequires: python-rpm-macros
|
|
|
e2a23c |
BuildRequires: python3
|
|
|
e2a23c |
BuildRequires: python3-gpg
|
|
Bernhard M. Wiedemann |
514c2a |
BuildRequires: python3-pip
|
|
|
26392c |
BuildRequires: python3-setuptools
|
|
Bernhard M. Wiedemann |
514c2a |
BuildRequires: python3-setuptools_scm
|
|
Bernhard M. Wiedemann |
514c2a |
BuildRequires: python3-wheel
|
|
|
e2a23c |
BuildRequires: unzip
|
|
|
e2a23c |
Requires: mercurial
|
|
|
26392c |
Requires: python3-dulwich >= 0.19.0
|
|
|
26392c |
Provides: python3-hg-git = %{version}-%{release}
|
|
|
26392c |
Obsoletes: python3-hg-git < %{version}-%{release}
|
|
|
e2a23c |
BuildArch: noarch
|
|
|
e2a23c |
|
|
|
e2a23c |
%description
|
|
|
e2a23c |
This plugin for Mercurial adds the ability to push and pull to/from a Git server repository from Hg. This means you can collaborate on Git based projects from Hg, or use a Git server as a collaboration point for a team with developers using both Git and Hg.
|
|
|
e2a23c |
|
|
|
e2a23c |
The Hg-Git plugin can convert commits/changesets losslessly from one system to another, so you can push via a Mercurial repository and another Hg client can pull it and their changeset node ids will be identical - Mercurial data does not get lost in translation. It is intended that Hg users may wish to use this to collaborate even if no Git users are involved in the project, and it may even provide some advantages if you’re using Bookmarks.
|
|
|
e2a23c |
|
|
|
e2a23c |
%prep
|
|
|
e2a23c |
%setup -q -n hg-git-%{version}
|
|
|
e2a23c |
|
|
|
e2a23c |
%build
|
|
Bernhard M. Wiedemann |
514c2a |
%pyproject_wheel
|
|
|
e2a23c |
|
|
|
e2a23c |
%install
|
|
Bernhard M. Wiedemann |
514c2a |
%pyproject_install
|
|
|
e2a23c |
%fdupes %{buildroot}%{python3_sitelib}
|
|
|
e2a23c |
|
|
|
e2a23c |
%check
|
|
|
e2a23c |
%if %{with test}
|
|
|
0b8c72 |
make tests HGPYTHON=python3 TESTFLAGS="--blacklist=%{SOURCE90}"
|
|
|
e2a23c |
%endif
|
|
|
e2a23c |
|
|
|
e2a23c |
%files
|
|
|
e2a23c |
%doc README.rst
|
|
|
e2a23c |
%license COPYING
|
|
|
e2a23c |
%{python3_sitelib}/*
|
|
|
e2a23c |
|
|
|
e2a23c |
%changelog
|