python3-recommonmark is only in Fedora

This commit is contained in:
Jens Petersen 2022-09-05 20:08:40 +08:00
parent ddd1f770dc
commit 1cd73657c4
2 changed files with 39 additions and 2 deletions

View File

@ -0,0 +1,25 @@
diff -Naur a/llvm/docs/conf.py b/llvm/docs/conf.py
--- a/llvm/docs/conf.py 2020-09-15 09:12:24.318287611 +0000
+++ b/llvm/docs/conf.py 2020-09-15 15:01:00.025893199 +0000
@@ -36,20 +36,7 @@
'.rst': 'restructuredtext',
}
-try:
- import recommonmark
-except ImportError:
- # manpages do not use any .md sources
- if not tags.has('builder-man'):
- raise
-else:
- import sphinx
- if sphinx.version_info >= (3, 0):
- # This requires 0.5 or later.
- extensions.append('recommonmark')
- else:
- source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
- source_suffix['.md'] = 'markdown'
+import sphinx
# The encoding of source files.
#source_encoding = 'utf-8-sig'

View File

@ -48,7 +48,7 @@
Name: %{pkg_name} Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 5%{?dist} Release: 6%{?dist}
Summary: The Low Level Virtual Machine Summary: The Low Level Virtual Machine
License: NCSA License: NCSA
@ -64,6 +64,9 @@ Source4: lit.fedora.cfg.py
Patch0: 0001-PATCH-llvm-Make-source-interleave-prefix-test-case-c.patch Patch0: 0001-PATCH-llvm-Make-source-interleave-prefix-test-case-c.patch
# RHEL-specific patches
Patch101: 0001-Deactivate-markdown-doc.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: cmake BuildRequires: cmake
@ -73,7 +76,9 @@ BuildRequires: libffi-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: python3-psutil BuildRequires: python3-psutil
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
%if %{defined fedora}
BuildRequires: python3-recommonmark BuildRequires: python3-recommonmark
%endif
BuildRequires: multilib-rpm-config BuildRequires: multilib-rpm-config
%if %{with gold} %if %{with gold}
BuildRequires: binutils-devel BuildRequires: binutils-devel
@ -175,7 +180,11 @@ LLVM's modified googletest sources.
%prep %prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{llvm_srcdir} -p2 %setup -q -n %{llvm_srcdir}
%patch0 -p2
%if %{undefined fedora}
%patch101 -p2
%endif
pathfix.py -i %{__python3} -pn \ pathfix.py -i %{__python3} -pn \
test/BugPoint/compile-custom.ll.py \ test/BugPoint/compile-custom.ll.py \
@ -499,6 +508,9 @@ fi
%endif %endif
%changelog %changelog
* Mon Sep 5 2022 Jens Petersen <petersen@redhat.com> - 12.0.1-6
- python3-recommonmark is only in Fedora
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-5 * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild