File hg-git.spec of Package hg-git

# spec file for package hg-git
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%define rev cf3dafce0611

Name:           hg-git
Version:        0.8.0
Release:        0
Summary:        Mercurial Plugin for Communicating with Git Servers
License:        GPL-2.0+
Group:          Development/Tools/Version Control
BuildRequires:  mercurial
BuildRequires:  python-devel
BuildRequires:  python-dulwich >= 0.9.7
BuildRequires:  python-setuptools
# tests
BuildRequires:  git-daemon
BuildRequires:  netcat-openbsd

Requires:       mercurial
Requires:       python-dulwich >= 0.9.7
BuildArch:      noarch

This is the Hg-Git plugin for Mercurial, adding 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.

The Hg-Git plugin can convert commits/changesets losslessly from one system to
another, so you can push via an Hg repository and another Hg client can pull it
and their changeset node ids will be identical - Mercurial data does not get
lost in translation.

%setup -q -n durin42-hg-git-%{rev}

python build

#export PYTHONPATH="$RPM_BUILD_ROOT%{python_sitelib}"
#cd tests && \
#    python --verbose --with-hg=%{_bindir}/hg

python install --prefix=%{_prefix} --root=%{buildroot}