%global debug_package %{nil} Name: git-remote-hg Version: 0.3 Release: 4%{?dist} BuildArch: noarch Summary: Mercurial wrapper for git License: GPLv2+ Group: Development/Tools URL: https://github.com/felipec/git-remote-hg Source0: https://github.com/felipec/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # https://github.com/fingolfin/git-remote-hg/commit/e716a9e1a9e460a45663694ba4e9e8894a8452b2.patch # https://github.com/felipec/git-remote-hg/pull/28 # Makes it work with Mercurial 3.2 # The second commit (to the tests) isn't needed against 0.2 Patch1: 0001-Avoid-deprecated-bookmarks.write.patch Patch2: 0002-Fix-remote-push-error-because-of-incompatibility-wit.patch BuildRequires: asciidoc >= 8.4.1 BuildRequires: hg-git BuildRequires: python2-devel Requires: python Requires: git >= 2.0.0 Requires: mercurial >= 3.5 Obsoletes: git-hg %description git-remote-hg is the semi-official Mercurial bridge from Git project. Once installed, it allows you to clone, fetch and push to and from Mercurial repositories as if they were Git ones. %prep %setup -q %patch01 -p1 %patch02 -p1 sed -i -e "1 s|^#!.*|#!%{__python2}|" git-remote-hg sed -i -e 's|\tinstall|\tinstall -p|' Makefile %build make doc %check #make test %install export HOME=%{_prefix} export DESTDIR=%{buildroot} make install make install-doc %files %doc LICENSE %{_bindir}/git-remote-hg %{_mandir}/man1/* %changelog * Wed Jul 26 2017 Fedora Release Engineering - 0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Nov 28 2016 Petr Stodulka - 0.3-2 - Fix incompatibility with mercurial 4.0 * Wed May 25 2016 Petr Stodulka - 0.3-1 - Rebase to v0.3 - remove patches applied in upstream * Wed Feb 03 2016 Fedora Release Engineering - 0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 27 2015 Petr Stodulka - 0.2-7 - Mercurial v3.5 has changed API - function context.memfilectx requires object repo as first parameter (#1265115) - changed requires to mercurial >= 3.5 * Wed Jun 17 2015 Fedora Release Engineering - 0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jan 12 2015 Adam Williamson - 0.2-5 - backport an upstream PR to make it work with Mercurial 3.2 * Mon Dec 8 2014 Petr Stodulka - 0.2-4 - added obsoletes of git-hg * Mon Jun 23 2014 Ondrej Oprala - 0.2-3 - Explicitly disable debug_package, (noarch by itself still runs find-debuginfo.sh) * Sun Jun 22 2014 Ondrej Oprala - 0.2-2 - Every single test fails(suspicious), disabling them for now * Thu Jun 19 2014 Ondrej Oprala - 0.2-1 - initial git-remote-hg spec file