RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/rubygem-kramdown-parser-gfm#0b873d5a5ffbdc8eea728aa93c43790ebf7c63cd
This commit is contained in:
Troy Dawson 2020-10-15 05:43:20 -07:00
parent 8c13ff489c
commit 40f5355721
4 changed files with 131 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/kramdown-parser-gfm-1.1.0.gem

24
ad48572.patch Normal file
View File

@ -0,0 +1,24 @@
From ad48572d75299355563fc20ba1dd90cbec35ba81 Mon Sep 17 00:00:00 2001
From: Ashwin Maroli <ashmaroli@gmail.com>
Date: Wed, 22 Jul 2020 23:33:50 +0530
Subject: [PATCH] Update test expectation to reflect current result
The change in generated markup is external to the GFM Parser:
kramdown-2.2.0 changed output of MathJax math engine to be compatible with
MathJax v2 and v3.
Resolves https://github.com/kramdown/parser-gfm/issues/19
---
test/testcases/header_ids.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testcases/header_ids.html b/test/testcases/header_ids.html
index b45fe8f..f2fb65f 100644
--- a/test/testcases/header_ids.html
+++ b/test/testcases/header_ids.html
@@ -24,4 +24,4 @@ <h3 id="with-smart-quotes">With “smart” quotes</h3>
<h3 id="with--typographic--symbols">with — « typographic » … symbols</h3>
-<h3 id="with-m5">with <script type="math/tex">m=5</script></h3>
+<h3 id="with-m5">with \(m=5\)</h3>

View File

@ -0,0 +1,105 @@
%global gem_name kramdown-parser-gfm
Name: rubygem-%{gem_name}
Summary: Kramdown parser for GitHub-flavored markdown
Version: 1.1.0
Release: 5%{?dist}
License: MIT
URL: https://github.com/kramdown/parser-gfm
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# upstream patch to make test suite compatible with kramdown 2.2.0
Patch0: %{url}/commit/ad48572.patch
BuildArch: noarch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 2.3
BuildRequires: rubygem(kramdown) >= 2.0.0
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(rouge)
%description
kramdown-parser-gfm provides a kramdown parser for the GFM dialect of
Markdown.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%patch0 -p1
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
# move a broken test out of the way
mv test/testcases/codeblock_fenced.text test/testcases/codeblock_fenced.disabled
ruby -I'lib' -e 'Dir.glob "./test/**test_*.rb", &method(:require)'
# move the broken test back
mv test/testcases/codeblock_fenced.disabled test/testcases/codeblock_fenced.text
popd
%files
%license %{gem_instdir}/COPYING
%dir %{gem_instdir}
%{gem_libdir}
%{gem_spec}
%exclude %{gem_instdir}/VERSION
%exclude %{gem_cache}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CONTRIBUTERS
%{gem_instdir}/test
%changelog
* Sat Aug 15 2020 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-5
- Include upstream patch to make test suite compatible with kramdown 2.2.0.
- Fixes RHBZ#1865414
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Aug 26 2019 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (kramdown-parser-gfm-1.1.0.gem) = 5662c1a50da7c8e50fd50afb5fe1dcd3bd63f4282d9940f96bb56266b63841c0b09902ce90eb3162aa89c54047970667b17299b3a7cf475bab2641604aa15d8c