| |
@@ -1,7 +1,7 @@
|
| |
Summary: Mercurial -- a distributed SCM
|
| |
Name: mercurial
|
| |
Version: 5.4
|
| |
- Release: 3%{?dist}
|
| |
+ Release: 4%{?dist}
|
| |
|
| |
# Release: 1.rc1%%{?dist}
|
| |
|
| |
@@ -14,6 +14,7 @@
|
| |
Source0: http://www.selenic.com/mercurial/release/%{name}-%{upstreamversion}.tar.gz
|
| |
Source1: mercurial-site-start.el
|
| |
Patch2: 0001-setup-hg3.patch
|
| |
+ Patch3: hgdemandimport_ast.patch
|
| |
BuildRequires: python2-devel python3-devel bash-completion
|
| |
BuildRequires: emacs-nox emacs-el pkgconfig gettext python3-docutils
|
| |
BuildRequires: gcc
|
| |
@@ -133,6 +134,8 @@
|
| |
# sed -ri 's|python\b|python2|' %{_builddir}/%{name}-%{version}/Makefile %{_builddir}/%{name}-%{version}/doc/Makefile
|
| |
%patch2 -p1 -b .create_hg3
|
| |
|
| |
+ %patch3 -p1
|
| |
+
|
| |
%build
|
| |
# copy hg to hg2/hg3 to be able to create /usr/bin/hg(2|3) script
|
| |
cp -a hg hg2
|
| |
@@ -332,6 +335,10 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Wed Sep 02 2020 Petr Viktorin <pviktori@redhat.com> - 5.4-4
|
| |
+ - Add _ast to hgdemandimport ignore list
|
| |
+ Works around: BZ#1871992
|
| |
+
|
| |
* Mon Aug 10 2020 Petr Stodulka <pstodulk@redhat.com> - 5.4-3
|
| |
- Fix upgrade from previous mercurial 4.9 causing broken alternatives for
|
| |
mercurial
|
| |
I was able to build Mercurial on Python 3.9 with this one-line patch.
I'm not sure whether to call this a workaround or a fix; that depends on how the CPython issue is solved.