From d1d7163f3c1978ec00c14379c7a37fc01811cfb7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 01:17:17 +0000 Subject: [PATCH 01/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index c467901..e249db9 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.15 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -117,6 +117,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Sat Jul 23 2022 Fedora Release Engineering - 2.0.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Fri Jan 21 2022 Neal Gompa - 2.0.15-3 - Simplify RHEL conditionals From 8a5e9a406b42f6ec86e5b0080e1df33eb0a4042f Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Tue, 2 Aug 2022 01:25:34 -0400 Subject: [PATCH 02/19] update to asciidoctor 2.0.17 (rhbz#2113688, FTBFS) The 2.0.17 release includes fixes for some tests which fail with ruby 3.1. It also adds some new tests which require the open-uri-cached gem. Disable those tests until open-uri-cached is packaged. Helped-by: Michael J Gruber --- rubygem-asciidoctor.spec | 12 ++++++++++-- sources | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index e249db9..83e8b81 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -6,8 +6,8 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} -Version: 2.0.15 -Release: 4%{?dist} +Version: 2.0.17 +Release: 1%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -75,6 +75,10 @@ pushd .%{gem_instdir} %if ! 0%{?rhel} # Asciidoctor tests require Minitest 5, so we can't run them on EPEL +# +# disable tests which require open-uri-cached gem +sed -Ei "/test 'should cache remote (SVG|image) when allow-uri-read, cache-uri, and (inline option|data-uri) are set' do/a \\ + skip('open-uri-cached gem is not avaiable on Fedora')" test/blocks_test.rb LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' %endif popd @@ -117,6 +121,10 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Tue Aug 02 2022 Todd Zullinger - 2.0.17-1 +- update to asciidoctor 2.0.17 (rhbz#2113688) +- disable tests which require open-uri-cached gem + * Sat Jul 23 2022 Fedora Release Engineering - 2.0.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index dc1d163..0015d27 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (asciidoctor-2.0.15.tar.gz) = 4cd0ce922d5db5bc5b31ebc75707c2e9e2a94a2a28eeb68ed25f55c46c416c950d28b880c4b1ab52bbcdda9ee4ee7b1c297049754d214983b68eedf2d96492d8 +SHA512 (asciidoctor-2.0.17.tar.gz) = 3d2a94b76b3593f5525ac11593885e4f2d36563983d8a5377d832eae55dbe38768cae540fbaebf5b3ec094e40f9104cb666d377417f138113581c2e9382cbdda From 4c7660f922bd11ef907361c8f2edd79f383f1c85 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sat, 15 Oct 2022 11:50:10 -0400 Subject: [PATCH 03/19] update to asciidoctor 2.0.18 (rhbz#1989716) Release notes: https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.18 --- rubygem-asciidoctor.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 83e8b81..a031d03 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -6,7 +6,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} -Version: 2.0.17 +Version: 2.0.18 Release: 1%{?dist} License: MIT URL: https://asciidoctor.org @@ -121,6 +121,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Sat Oct 15 2022 Todd Zullinger - 2.0.18-1 +- update to asciidoctor 2.0.18 (rhbz#1989716) + * Tue Aug 02 2022 Todd Zullinger - 2.0.17-1 - update to asciidoctor 2.0.17 (rhbz#2113688) - disable tests which require open-uri-cached gem diff --git a/sources b/sources index 0015d27..b382eb4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (asciidoctor-2.0.17.tar.gz) = 3d2a94b76b3593f5525ac11593885e4f2d36563983d8a5377d832eae55dbe38768cae540fbaebf5b3ec094e40f9104cb666d377417f138113581c2e9382cbdda +SHA512 (asciidoctor-2.0.18.tar.gz) = b47b377520046d95101fc9bcd3defdf7219714ebadc0d069cb108d39a349fcf1abd1e61178e1515f75bb69e9e3d0f8cb2de67de5a0f8aa75fdd139d693c0e437 From 50b3fbb819053cfbf83171a990d0e00a3570afaa Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 20:11:14 +0000 Subject: [PATCH 04/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index a031d03..64fd24a 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.18 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -121,6 +121,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Sat Oct 15 2022 Todd Zullinger - 2.0.18-1 - update to asciidoctor 2.0.18 (rhbz#1989716) From 01966d743472e938460f4dc43836bd8e4e21c187 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Mon, 13 Feb 2023 17:05:53 -0500 Subject: [PATCH 05/19] verify SPDX license identifier According to https://tools.spdx.org/app/check_license/ the contents of the LICENSE file match the MIT SPDX ID. From 24ce10d5c734f56a4cea646e66e960429c6e3e26 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Tue, 21 Feb 2023 12:30:47 -0500 Subject: [PATCH 06/19] fixes for ruby-3.2.x and rouge-4.1.0 (rhbz#2171711) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply upstream fixes for ruby >= 3.2.0rc1¹ and rouge >= 4.1². Many thanks to Dan Allen for fixing these issues in very short order! ¹ https://github.com/asciidoctor/asciidoctor/issues/4390 ² https://github.com/asciidoctor/asciidoctor/issues/4406 --- ...-4406-fix-test-assertion-for-fallbac.patch | 26 +++++++++++++++ ...x-call-order-so-use-of-an-include-fi.patch | 32 +++++++++++++++++++ rubygem-asciidoctor.spec | 10 +++++- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch create mode 100644 0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch diff --git a/0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch b/0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch new file mode 100644 index 0000000..1a51239 --- /dev/null +++ b/0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch @@ -0,0 +1,26 @@ +From 066a4618b92fb08d6c9928e134d86bbbcaa4f8f2 Mon Sep 17 00:00:00 2001 +From: Todd Zullinger +Date: Tue, 21 Feb 2023 05:42:24 -0500 +Subject: [PATCH] backport fix for #4406 fix test assertion for fallback Rouge + stylesheet to be compatible with Rouge 4.1 + +Co-authored-by: Dan Allen +--- + test/syntax_highlighter_test.rb | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/syntax_highlighter_test.rb b/test/syntax_highlighter_test.rb +index a9f5c41f..43548a12 100644 +--- a/test/syntax_highlighter_test.rb ++++ b/test/syntax_highlighter_test.rb +@@ -1017,8 +1017,8 @@ def highlight? + EOS + output = convert_string input, safe: :safe, linkcss_default: true + assert_css 'pre.rouge', output, 1 +- assert_includes output, 'pre.rouge .no {' +- assert_match %r/pre\.rouge \{\s*background-color: #f8f8f8;/m, output ++ expected_css = (Asciidoctor::SyntaxHighlighter.for 'rouge').read_stylesheet 'github' ++ assert_includes output, expected_css + end + + test 'should restore isolated callout mark on last line of source' do diff --git a/0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch b/0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch new file mode 100644 index 0000000..3c06028 --- /dev/null +++ b/0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch @@ -0,0 +1,32 @@ +From b3c05398b1b4b483fe5f9c9ef89dc772863cf6f1 Mon Sep 17 00:00:00 2001 +From: Dan Allen +Date: Mon, 20 Feb 2023 23:47:59 -0700 +Subject: [PATCH] resolves #4390 fix call order so use of an include file with + invalid encoding continues to raise error when using Ruby >= 3.2.0 + +--- + lib/asciidoctor/reader.rb | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/lib/asciidoctor/reader.rb b/lib/asciidoctor/reader.rb +index d18b27c9..3e189498 100644 +--- a/lib/asciidoctor/reader.rb ++++ b/lib/asciidoctor/reader.rb +@@ -1197,15 +1197,16 @@ def preprocess_include_directive target, attrlist + push_include inc_lines, inc_path, relpath, inc_offset, parsed_attrs + end + else ++ inc_content = nil + begin + # NOTE read content before shift so cursor is only advanced if IO operation succeeds + inc_content = reader.call(inc_path, read_mode) {|f| f.read } + shift +- push_include inc_content, inc_path, relpath, 1, parsed_attrs + rescue + logger.error message_with_context %(include #{target_type} not readable: #{inc_path}), source_location: cursor + return replace_next_line %(Unresolved directive in #{@path} - include::#{expanded_target}[#{attrlist}]) + end ++ push_include inc_content, inc_path, relpath, 1, parsed_attrs + end + true + end diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 64fd24a..1c3a246 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,10 +7,15 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.18 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz +# https://bugzilla.redhat.com/2171711 +# https://github.com/asciidoctor/asciidoctor/issues/4390 +Patch0: 0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch +# https://github.com/asciidoctor/asciidoctor/issues/4406 +Patch1: 0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch %if 0%{?el7} Requires: ruby(release) BuildRequires: ruby(release) @@ -121,6 +126,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Mon Feb 20 2023 Todd Zullinger - 2.0.18-3 +- fixes for ruby-3.2.x and rouge-4.1.0 (rhbz#2171711) + * Fri Jan 20 2023 Fedora Release Engineering - 2.0.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From f73db33c5023ade046f3dbe04c7f577598283d58 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Wed, 17 May 2023 21:02:46 -0400 Subject: [PATCH 07/19] update to asciidoctor 2.0.19 (rhbz#2208089) Release notes: https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.19 --- ...-4406-fix-test-assertion-for-fallbac.patch | 26 --------------- ...x-call-order-so-use-of-an-include-fi.patch | 32 ------------------- rubygem-asciidoctor.spec | 12 +++---- sources | 2 +- 4 files changed, 6 insertions(+), 66 deletions(-) delete mode 100644 0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch delete mode 100644 0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch diff --git a/0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch b/0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch deleted file mode 100644 index 1a51239..0000000 --- a/0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 066a4618b92fb08d6c9928e134d86bbbcaa4f8f2 Mon Sep 17 00:00:00 2001 -From: Todd Zullinger -Date: Tue, 21 Feb 2023 05:42:24 -0500 -Subject: [PATCH] backport fix for #4406 fix test assertion for fallback Rouge - stylesheet to be compatible with Rouge 4.1 - -Co-authored-by: Dan Allen ---- - test/syntax_highlighter_test.rb | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/test/syntax_highlighter_test.rb b/test/syntax_highlighter_test.rb -index a9f5c41f..43548a12 100644 ---- a/test/syntax_highlighter_test.rb -+++ b/test/syntax_highlighter_test.rb -@@ -1017,8 +1017,8 @@ def highlight? - EOS - output = convert_string input, safe: :safe, linkcss_default: true - assert_css 'pre.rouge', output, 1 -- assert_includes output, 'pre.rouge .no {' -- assert_match %r/pre\.rouge \{\s*background-color: #f8f8f8;/m, output -+ expected_css = (Asciidoctor::SyntaxHighlighter.for 'rouge').read_stylesheet 'github' -+ assert_includes output, expected_css - end - - test 'should restore isolated callout mark on last line of source' do diff --git a/0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch b/0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch deleted file mode 100644 index 3c06028..0000000 --- a/0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch +++ /dev/null @@ -1,32 +0,0 @@ -From b3c05398b1b4b483fe5f9c9ef89dc772863cf6f1 Mon Sep 17 00:00:00 2001 -From: Dan Allen -Date: Mon, 20 Feb 2023 23:47:59 -0700 -Subject: [PATCH] resolves #4390 fix call order so use of an include file with - invalid encoding continues to raise error when using Ruby >= 3.2.0 - ---- - lib/asciidoctor/reader.rb | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/lib/asciidoctor/reader.rb b/lib/asciidoctor/reader.rb -index d18b27c9..3e189498 100644 ---- a/lib/asciidoctor/reader.rb -+++ b/lib/asciidoctor/reader.rb -@@ -1197,15 +1197,16 @@ def preprocess_include_directive target, attrlist - push_include inc_lines, inc_path, relpath, inc_offset, parsed_attrs - end - else -+ inc_content = nil - begin - # NOTE read content before shift so cursor is only advanced if IO operation succeeds - inc_content = reader.call(inc_path, read_mode) {|f| f.read } - shift -- push_include inc_content, inc_path, relpath, 1, parsed_attrs - rescue - logger.error message_with_context %(include #{target_type} not readable: #{inc_path}), source_location: cursor - return replace_next_line %(Unresolved directive in #{@path} - include::#{expanded_target}[#{attrlist}]) - end -+ push_include inc_content, inc_path, relpath, 1, parsed_attrs - end - true - end diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 1c3a246..d0b00e4 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -6,16 +6,11 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} -Version: 2.0.18 -Release: 3%{?dist} +Version: 2.0.19 +Release: 1%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz -# https://bugzilla.redhat.com/2171711 -# https://github.com/asciidoctor/asciidoctor/issues/4390 -Patch0: 0001-resolves-4390-fix-call-order-so-use-of-an-include-fi.patch -# https://github.com/asciidoctor/asciidoctor/issues/4406 -Patch1: 0001-backport-fix-for-4406-fix-test-assertion-for-fallbac.patch %if 0%{?el7} Requires: ruby(release) BuildRequires: ruby(release) @@ -126,6 +121,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Wed May 17 2023 Todd Zullinger - 2.0.19-1 +- update to asciidoctor 2.0.19 (rhbz#2208089) + * Mon Feb 20 2023 Todd Zullinger - 2.0.18-3 - fixes for ruby-3.2.x and rouge-4.1.0 (rhbz#2171711) diff --git a/sources b/sources index b382eb4..1af8bc4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (asciidoctor-2.0.18.tar.gz) = b47b377520046d95101fc9bcd3defdf7219714ebadc0d069cb108d39a349fcf1abd1e61178e1515f75bb69e9e3d0f8cb2de67de5a0f8aa75fdd139d693c0e437 +SHA512 (asciidoctor-2.0.19.tar.gz) = 5a47519a736bb4e62942e062478fe52d200c620af9d6120ef0ca49b21cb108726c6fddddc49ae8b08462674bc9c976d8cf4e1841a1e977349cfcae1a704b6199 From bd6465f42a42ff22034597f31fdc184ded7f9e3f Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Thu, 18 May 2023 08:44:45 -0400 Subject: [PATCH 08/19] update to asciidoctor 2.0.20 (rhbz#2208089) Release notes: https://github.com/asciidoctor/asciidoctor/releases/tag/v2.0.20 --- rubygem-asciidoctor.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index d0b00e4..899d317 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -6,7 +6,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} -Version: 2.0.19 +Version: 2.0.20 Release: 1%{?dist} License: MIT URL: https://asciidoctor.org @@ -121,6 +121,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Thu May 18 2023 Todd Zullinger - 2.0.20-1 +- update to asciidoctor 2.0.20 (rhbz#2208089) + * Wed May 17 2023 Todd Zullinger - 2.0.19-1 - update to asciidoctor 2.0.19 (rhbz#2208089) diff --git a/sources b/sources index 1af8bc4..4d8a0c4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (asciidoctor-2.0.19.tar.gz) = 5a47519a736bb4e62942e062478fe52d200c620af9d6120ef0ca49b21cb108726c6fddddc49ae8b08462674bc9c976d8cf4e1841a1e977349cfcae1a704b6199 +SHA512 (asciidoctor-2.0.20.tar.gz) = b6b730de8f83e36630dc6146b4c0e07a26b502b695e78e50fc87790391126d52ef0b6b02b82ecb225adff680c94305b4e31403cc067bdbf1740e2d759417f440 From 22023dba550d8e1ddaec57f1433aa9992fd496b1 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Thu, 25 May 2023 23:06:29 -0400 Subject: [PATCH 09/19] improve ruby-2.5 compatibility (epel8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An unfortunate bug in rdoc-5.0 causes a build failure on epel8. This is fixed in ruby-2.6/rdoc-6.0.2¹. Until/unless the fix is backported to RHEL-8 (which seems unlikely), we can only patch around this. Thanks, as usual, to Dan Allen for going above and beyond to patch this upstream. ¹ https://github.com/ruby/rdoc/pull/586 https://github.com/ruby/rdoc/commit/a1631aa --- ...block-in-manify-method-in-manpage-co.patch | 25 ++++++ ...t-in-chained-method-call-to-be-compa.patch | 85 +++++++++++++++++++ rubygem-asciidoctor.spec | 11 ++- 3 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 0001-use-single-line-block-in-manify-method-in-manpage-co.patch create mode 100644 0002-change-dot-layout-in-chained-method-call-to-be-compa.patch diff --git a/0001-use-single-line-block-in-manify-method-in-manpage-co.patch b/0001-use-single-line-block-in-manify-method-in-manpage-co.patch new file mode 100644 index 0000000..2db9cdb --- /dev/null +++ b/0001-use-single-line-block-in-manify-method-in-manpage-co.patch @@ -0,0 +1,25 @@ +From cc9a8d3cd12f2c15e43bd263b8b8a9b32d097831 Mon Sep 17 00:00:00 2001 +From: Dan Allen +Date: Thu, 25 May 2023 18:39:56 -0600 +Subject: [PATCH] use single-line block in manify method in manpage converter + to make it easier to patch + +--- + lib/asciidoctor/converter/manpage.rb | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/lib/asciidoctor/converter/manpage.rb b/lib/asciidoctor/converter/manpage.rb +index bcf2b784..a7aba996 100644 +--- a/lib/asciidoctor/converter/manpage.rb ++++ b/lib/asciidoctor/converter/manpage.rb +@@ -716,9 +716,7 @@ def manify str, opts = {} + .gsub(LiteralBackslashRx) { $1 ? $& : '\\(rs' } # literal backslash (not a troff escape sequence) + .gsub(EllipsisCharRefRx, '...') # horizontal ellipsis + .gsub(LeadingPeriodRx, '\\\&.') # leading . is used in troff for macro call or other formatting; replace with \&. +- .gsub(EscapedMacroRx) do # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line +- (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) +- end ++ .gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) } # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line + .gsub('-', '\-') + .gsub('<', '<') + .gsub('>', '>') diff --git a/0002-change-dot-layout-in-chained-method-call-to-be-compa.patch b/0002-change-dot-layout-in-chained-method-call-to-be-compa.patch new file mode 100644 index 0000000..351d5cc --- /dev/null +++ b/0002-change-dot-layout-in-chained-method-call-to-be-compa.patch @@ -0,0 +1,85 @@ +From b7c03964cfc96af9ced5db3c1a6c7a7663de5cb2 Mon Sep 17 00:00:00 2001 +From: Dan Allen +Date: Fri, 26 May 2023 01:44:09 -0600 +Subject: [PATCH] change dot layout in chained method call to be compatible + with rdoc generator from Ruby 2.5 + +--- + lib/asciidoctor/converter/manpage.rb | 64 ++++++++++++++-------------- + 1 file changed, 32 insertions(+), 32 deletions(-) + +diff --git a/lib/asciidoctor/converter/manpage.rb b/lib/asciidoctor/converter/manpage.rb +index a7aba996..be52e9be 100644 +--- a/lib/asciidoctor/converter/manpage.rb ++++ b/lib/asciidoctor/converter/manpage.rb +@@ -712,38 +712,38 @@ def manify str, opts = {} + else + str = str.tr_s WHITESPACE, ' ' + end +- str = str +- .gsub(LiteralBackslashRx) { $1 ? $& : '\\(rs' } # literal backslash (not a troff escape sequence) +- .gsub(EllipsisCharRefRx, '...') # horizontal ellipsis +- .gsub(LeadingPeriodRx, '\\\&.') # leading . is used in troff for macro call or other formatting; replace with \&. +- .gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) } # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line +- .gsub('-', '\-') +- .gsub('<', '<') +- .gsub('>', '>') +- .gsub('+', '+') # plus sign; alternately could use \c(pl +- .gsub(' ', '\~') # non-breaking space +- .gsub('©', '\(co') # copyright sign +- .gsub('®', '\(rg') # registered sign +- .gsub('™', '\(tm') # trademark sign +- .gsub('°', '\(de') # degree sign +- .gsub(' ', ' ') # thin space +- .gsub('–', '\(en') # en dash +- .gsub(EmDashCharRefRx, '\(em') # em dash +- .gsub('‘', '\(oq') # left single quotation mark +- .gsub('’', '\(cq') # right single quotation mark +- .gsub('“', '\(lq') # left double quotation mark +- .gsub('”', '\(rq') # right double quotation mark +- .gsub('←', '\(<-') # leftwards arrow +- .gsub('→', '\(->') # rightwards arrow +- .gsub('⇐', '\(lA') # leftwards double arrow +- .gsub('⇒', '\(rA') # rightwards double arrow +- .gsub('​', '\:') # zero width space +- .gsub('&', '&') # literal ampersand (NOTE must take place after any other replacement that includes &) +- .gsub('\'', '\*(Aq') # apostrophe / neutral single quote +- .gsub(MockMacroRx, '\1') # mock boundary +- .gsub(ESC_BS, '\\') # unescape troff backslash (NOTE update if more escapes are added) +- .gsub(ESC_FS, '.') # unescape full stop in troff commands (NOTE must take place after gsub(LeadingPeriodRx)) +- .rstrip # strip trailing space ++ str = str. ++ gsub(LiteralBackslashRx) { $1 ? $& : '\\(rs' }. # literal backslash (not a troff escape sequence) ++ gsub(EllipsisCharRefRx, '...'). # horizontal ellipsis ++ gsub(LeadingPeriodRx, '\\\&.'). # leading . is used in troff for macro call or other formatting; replace with \&. ++ gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) }. # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line ++ gsub('-', '\-'). ++ gsub('<', '<'). ++ gsub('>', '>'). ++ gsub('+', '+'). # plus sign; alternately could use \c(pl ++ gsub(' ', '\~'). # non-breaking space ++ gsub('©', '\(co'). # copyright sign ++ gsub('®', '\(rg'). # registered sign ++ gsub('™', '\(tm'). # trademark sign ++ gsub('°', '\(de'). # degree sign ++ gsub(' ', ' '). # thin space ++ gsub('–', '\(en'). # en dash ++ gsub(EmDashCharRefRx, '\(em'). # em dash ++ gsub('‘', '\(oq'). # left single quotation mark ++ gsub('’', '\(cq'). # right single quotation mark ++ gsub('“', '\(lq'). # left double quotation mark ++ gsub('”', '\(rq'). # right double quotation mark ++ gsub('←', '\(<-'). # leftwards arrow ++ gsub('→', '\(->'). # rightwards arrow ++ gsub('⇐', '\(lA'). # leftwards double arrow ++ gsub('⇒', '\(rA'). # rightwards double arrow ++ gsub('​', '\:'). # zero width space ++ gsub('&', '&'). # literal ampersand (NOTE must take place after any other replacement that includes &) ++ gsub('\'', '\*(Aq'). # apostrophe / neutral single quote ++ gsub(MockMacroRx, '\1'). # mock boundary ++ gsub(ESC_BS, '\\'). # unescape troff backslash (NOTE update if more escapes are added) ++ gsub(ESC_FS, '.'). # unescape full stop in troff commands (NOTE must take place after gsub(LeadingPeriodRx)) ++ rstrip # strip trailing space + opts[:append_newline] ? %(#{str}#{LF}) : str + end + diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 899d317..95a3ef1 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,10 +7,16 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz +# improve ruby-2.5 compatibility +# https://github.com/asciidoctor/asciidoctor/issues/4462 +# https://github.com/asciidoctor/asciidoctor/commit/cc9a8d3c +Patch0: 0001-use-single-line-block-in-manify-method-in-manpage-co.patch +# https://github.com/asciidoctor/asciidoctor/commit/b7c03964 +Patch1: 0002-change-dot-layout-in-chained-method-call-to-be-compa.patch %if 0%{?el7} Requires: ruby(release) BuildRequires: ruby(release) @@ -121,6 +127,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Thu May 25 2023 Todd Zullinger - 2.0.20-2 +- improve ruby-2.5 compatibility (epel8) + * Thu May 18 2023 Todd Zullinger - 2.0.20-1 - update to asciidoctor 2.0.20 (rhbz#2208089) From 91ff5bc8e010666d55ac5e3e140c1ca9eba11d08 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 17:20:40 +0000 Subject: [PATCH 10/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 95a3ef1..5f43a8b 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -127,6 +127,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.20-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu May 25 2023 Todd Zullinger - 2.0.20-2 - improve ruby-2.5 compatibility (epel8) From 4e8fb62bfb150fffea44f03ebc022e27f7e72448 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 29 Sep 2023 15:23:35 +0900 Subject: [PATCH 11/19] Apply the upstream PR to support ruby 3.3 Logger --- 0003-support-ruby33-Logger.patch | 39 ++++++++++++++++++++++++++++++++ rubygem-asciidoctor.spec | 7 +++++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 0003-support-ruby33-Logger.patch diff --git a/0003-support-ruby33-Logger.patch b/0003-support-ruby33-Logger.patch new file mode 100644 index 0000000..eadf945 --- /dev/null +++ b/0003-support-ruby33-Logger.patch @@ -0,0 +1,39 @@ +From 4c93df1eeff84463c6fc299b62b78c20c3163a09 Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA +Date: Fri, 29 Sep 2023 15:00:12 +0900 +Subject: [PATCH] Support ruby3.3 Logger by properly initialize super class + +Upcoming ruby3.3 will have enhanced Logger class: +https://github.com/ruby/ruby/commit/194520f80e1cdb71faa055d731450855a1ddb8d1 +which initializes newly added instance variables. +Without initializing such variables (in super class), now using +subclass of Logger will cause exception. + +To avoid this, first call super, then execute additional subclass +initialization. + +Closes #4493 . +--- + lib/asciidoctor/logging.rb | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/asciidoctor/logging.rb b/lib/asciidoctor/logging.rb +index 7664c7e75d..1f846c4fba 100644 +--- a/lib/asciidoctor/logging.rb ++++ b/lib/asciidoctor/logging.rb +@@ -42,6 +42,7 @@ class MemoryLogger < ::Logger + attr_reader :messages + + def initialize ++ super nil + self.level = WARN + @messages = [] + end +@@ -69,6 +70,7 @@ class NullLogger < ::Logger + attr_reader :max_severity + + def initialize ++ super nil + self.level = WARN + end + diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 5f43a8b..e596361 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -17,6 +17,8 @@ Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name Patch0: 0001-use-single-line-block-in-manify-method-in-manpage-co.patch # https://github.com/asciidoctor/asciidoctor/commit/b7c03964 Patch1: 0002-change-dot-layout-in-chained-method-call-to-be-compa.patch +# https://github.com/asciidoctor/asciidoctor/pull/4494 +Patch2: 0003-support-ruby33-Logger.patch %if 0%{?el7} Requires: ruby(release) BuildRequires: ruby(release) @@ -127,6 +129,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Fri Sep 29 2023 Mamoru TASAKA - 2.0.20-4 +- Apply the upstream PR to support ruby 3.3 Logger + * Fri Jul 21 2023 Fedora Release Engineering - 2.0.20-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 334f9c42aae4061486805795ffd7a93b1a422960 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 12:28:57 +0000 Subject: [PATCH 12/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index e596361..c2ccaf6 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -129,6 +129,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.20-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Sep 29 2023 Mamoru TASAKA - 2.0.20-4 - Apply the upstream PR to support ruby 3.3 Logger From 7300f0454da98da5e5cb28d7431c88c8ecb8d96a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 16:34:50 +0000 Subject: [PATCH 13/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index c2ccaf6..291b5ea 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 5%{?dist} +Release: 6%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -129,6 +129,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 2.0.20-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 2.0.20-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 468fa4fa10524daa3b282c3c03af325c39c925c7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 19:03:32 +0000 Subject: [PATCH 14/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 291b5ea..80db961 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 6%{?dist} +Release: 7%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -129,6 +129,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 2.0.20-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jan 26 2024 Fedora Release Engineering - 2.0.20-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 1b5b583b1ab017dd88405199c07da24a9263e562 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 14 Nov 2024 16:33:39 +0900 Subject: [PATCH 15/19] Backport upstream PR to remove base64 dependency Backport upstream fix for ruby34 formatting change --- 0004-remove-base64-dependency.patch | 63 +++++++++++++++++++++++++++++ 0005-normalize-inspect-output.patch | 42 +++++++++++++++++++ rubygem-asciidoctor.spec | 10 ++++- 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 0004-remove-base64-dependency.patch create mode 100644 0005-normalize-inspect-output.patch diff --git a/0004-remove-base64-dependency.patch b/0004-remove-base64-dependency.patch new file mode 100644 index 0000000..74f1c57 --- /dev/null +++ b/0004-remove-base64-dependency.patch @@ -0,0 +1,63 @@ +From fb4d1d6295153f1722711ee0b232f980b0793b1c Mon Sep 17 00:00:00 2001 +From: Dan Allen +Date: Thu, 7 Mar 2024 16:35:09 -0700 +Subject: [PATCH] resolves #4561 remove use of base64 library to prevent + warning in Ruby >= 3.3 + +--- + CHANGELOG.adoc | 1 + + Gemfile | 1 + + asciidoctor.gemspec | 2 +- + lib/asciidoctor.rb | 1 - + lib/asciidoctor/abstract_node.rb | 12 ++++++------ + 5 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb +index 18b6743bfc..08a5db02c0 100644 +--- a/lib/asciidoctor.rb ++++ b/lib/asciidoctor.rb +@@ -7,7 +7,6 @@ + # this require is satisfied by the Asciidoctor.js build; it augments the Ruby environment for Asciidoctor.js + require 'asciidoctor/js' + else +- autoload :Base64, 'base64' + require 'cgi/util' + autoload :OpenURI, 'open-uri' + autoload :Pathname, 'pathname' +diff --git a/lib/asciidoctor/abstract_node.rb b/lib/asciidoctor/abstract_node.rb +index a60ab7956c..07ad0291d1 100644 +--- a/lib/asciidoctor/abstract_node.rb ++++ b/lib/asciidoctor/abstract_node.rb +@@ -355,8 +355,8 @@ def media_uri target, asset_dir_key = 'imagesdir' + # + # First, and foremost, the target image path is cleaned if the document safe mode level + # is set to at least SafeMode::SAFE (a condition which is true by default) to prevent access +- # to ancestor paths in the filesystem. The image data is then read and converted to +- # Base64. Finally, a data URI is built which can be used in an image tag. ++ # to ancestor paths in the filesystem. The image data is then read and converted to base64. ++ # Finally, a data URI is built which can be used in an image tag. + # + # target_image - A String path to the target image + # asset_dir_key - The String attribute key used to lookup the directory where +@@ -377,8 +377,8 @@ def generate_data_uri target_image, asset_dir_key = nil + end + + if ::File.readable? image_path +- # NOTE base64 is autoloaded by reference to ::Base64 +- %(data:#{mimetype};base64,#{::Base64.strict_encode64 ::File.binread image_path}) ++ # NOTE pack 'm0' is equivalent to Base64.strict_encode64 ++ %(data:#{mimetype};base64,#{[(::File.binread image_path)].pack 'm0'}) + else + logger.warn %(image to embed not found or not readable: #{image_path}) + %(data:#{mimetype};base64,) +@@ -411,8 +411,8 @@ def generate_data_uri_from_uri image_uri, cache_uri = false + + begin + mimetype, bindata = ::OpenURI.open_uri(image_uri, URI_READ_MODE) {|f| [f.content_type, f.read] } +- # NOTE base64 is autoloaded by reference to ::Base64 +- %(data:#{mimetype};base64,#{::Base64.strict_encode64 bindata}) ++ # NOTE pack 'm0' is equivalent to Base64.strict_encode64 ++ %(data:#{mimetype};base64,#{[bindata].pack 'm0'}) + rescue + logger.warn %(could not retrieve image data from URI: #{image_uri}) + image_uri diff --git a/0005-normalize-inspect-output.patch b/0005-normalize-inspect-output.patch new file mode 100644 index 0000000..ae17d99 --- /dev/null +++ b/0005-normalize-inspect-output.patch @@ -0,0 +1,42 @@ +From e5442fc2848680eada862841b0e92dc9265e1a29 Mon Sep 17 00:00:00 2001 +From: Dan Allen +Date: Thu, 31 Oct 2024 04:20:33 -0600 +Subject: [PATCH] resolves #4634 normalize output from inspect when comparing + to fixture + +--- + test/extensions_test.rb | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/test/extensions_test.rb b/test/extensions_test.rb +index 93c475a070..20df46cb34 100644 +--- a/test/extensions_test.rb ++++ b/test/extensions_test.rb +@@ -1468,17 +1468,17 @@ def process parent, reader, attributes + ++++ + EOS + expected = <<~'EOS'.chop +- target="", attributes={} +- target="value,key=val", attributes={1=>"value", "key"=>"val", "name"=>"value"} +- target="", attributes={"text"=>""} +- target="[text]", attributes={"text"=>"[text]"} +- target="target", attributes={} +- target="target", attributes={1=>"value", "key"=>"val", "name"=>"value"} +- target="target", attributes={"text"=>""} +- target="target", attributes={"text"=>"[text]"} +- target="target", attributes={} ++ target="",attributes={} ++ target="value,key=val",attributes={1=>"value","key"=>"val","name"=>"value"} ++ target="",attributes={"text"=>""} ++ target="[text]",attributes={"text"=>"[text]"} ++ target="target",attributes={} ++ target="target",attributes={1=>"value","key"=>"val","name"=>"value"} ++ target="target",attributes={"text"=>""} ++ target="target",attributes={"text"=>"[text]"} ++ target="target",attributes={} + EOS +- output = convert_string_to_embedded input ++ output = ((convert_string_to_embedded input).gsub ' => ', '=>').gsub ', ', ',' + assert_equal expected, output + ensure + Asciidoctor::Extensions.unregister_all diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 80db961..9583175 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 7%{?dist} +Release: 8%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -19,6 +19,10 @@ Patch0: 0001-use-single-line-block-in-manify-method-in-manpage-co.patch Patch1: 0002-change-dot-layout-in-chained-method-call-to-be-compa.patch # https://github.com/asciidoctor/asciidoctor/pull/4494 Patch2: 0003-support-ruby33-Logger.patch +# https://github.com/asciidoctor/asciidoctor/pull/4562/ +Patch3: 0004-remove-base64-dependency.patch +# https://github.com/asciidoctor/asciidoctor/commit/e5442fc2 +Patch4: 0005-normalize-inspect-output.patch %if 0%{?el7} Requires: ruby(release) BuildRequires: ruby(release) @@ -129,6 +133,10 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Thu Nov 14 2024 Mamoru TASAKA - 2.0.20-8 +- Backport upstream PR to remove base64 dependency +- Backport upstream fix for ruby34 formatting change + * Fri Jul 19 2024 Fedora Release Engineering - 2.0.20-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From fd4e80e38fe732e4adb6cdfcbc33f37abfd57289 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 22:58:59 +0000 Subject: [PATCH 16/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 9583175..4a4a67f 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 8%{?dist} +Release: 9%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -133,6 +133,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 2.0.20-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Nov 14 2024 Mamoru TASAKA - 2.0.20-8 - Backport upstream PR to remove base64 dependency - Backport upstream fix for ruby34 formatting change From 75de982163f9561955e1914cdf2a33a2f6e15dbf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 12:16:36 +0000 Subject: [PATCH 17/19] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- rubygem-asciidoctor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 4a4a67f..2b49f3a 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 9%{?dist} +Release: 10%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -133,6 +133,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 2.0.20-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sat Jan 18 2025 Fedora Release Engineering - 2.0.20-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 3d7bae2b69eec067c59ec5909177e896b2a03a32 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 5 Nov 2025 23:11:47 +0900 Subject: [PATCH 18/19] Add logger dep for ruby3_5 --- rubygem-asciidoctor.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 2b49f3a..4ece2a2 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -7,7 +7,7 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} Version: 2.0.20 -Release: 10%{?dist} +Release: 11%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz @@ -35,6 +35,7 @@ BuildRequires: rubygem(coderay) BuildRequires: rubygem(concurrent-ruby) BuildRequires: rubygem(erubi) BuildRequires: rubygem(haml) +BuildRequires: rubygem(logger) BuildRequires: rubygem(minitest) BuildRequires: rubygem(nokogiri) BuildRequires: rubygem(rouge) @@ -48,7 +49,7 @@ Provides: rubygem(%{gem_name}) = %{version} %endif %if %{?pre:1} -%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}%{pre} +%global gem_instdir() %{gem_dir}/gems/%{gem_name}-%{version}%{pre} %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}%{pre}.gem %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}%{pre}.gemspec %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}%{pre} @@ -78,6 +79,11 @@ sed -i -e 's/#\(s\.test_files\)/\1/' %{gem_name}.gemspec # Fix shebang (avoid Requires: /usr/bin/env) sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' bin/%{gem_name} +# ref: https://github.com/asciidoctor/asciidoctor/issues/4684 +# the upstream plans to remove logger dep, but for now +# add logger dep explicitly for ruby3_5 +%gemspec_add_dep -g logger -s ./%{gem_name}.gemspec + %build gem build %{gem_name}.gemspec %gem_install -n %{gem_name}-%{version}%{pre}.gem @@ -133,6 +139,9 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Wed Nov 05 2025 Mamoru TASAKA - 2.0.20-11 +- Add logger dep for ruby3_5 + * Fri Jul 25 2025 Fedora Release Engineering - 2.0.20-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 838fb1a9ee4eea381ee1239c1eca4b4f29594aac Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Mon, 15 Dec 2025 10:34:06 +0100 Subject: [PATCH 19/19] updated to 2.0.26 (resolves rhbz#2265214) - droped upstreamed patches --- ...block-in-manify-method-in-manpage-co.patch | 25 ------ ...t-in-chained-method-call-to-be-compa.patch | 85 ------------------- 0003-support-ruby33-Logger.patch | 39 --------- 0004-remove-base64-dependency.patch | 63 -------------- 0005-normalize-inspect-output.patch | 42 --------- rubygem-asciidoctor.spec | 20 ++--- sources | 2 +- 7 files changed, 7 insertions(+), 269 deletions(-) delete mode 100644 0001-use-single-line-block-in-manify-method-in-manpage-co.patch delete mode 100644 0002-change-dot-layout-in-chained-method-call-to-be-compa.patch delete mode 100644 0003-support-ruby33-Logger.patch delete mode 100644 0004-remove-base64-dependency.patch delete mode 100644 0005-normalize-inspect-output.patch diff --git a/0001-use-single-line-block-in-manify-method-in-manpage-co.patch b/0001-use-single-line-block-in-manify-method-in-manpage-co.patch deleted file mode 100644 index 2db9cdb..0000000 --- a/0001-use-single-line-block-in-manify-method-in-manpage-co.patch +++ /dev/null @@ -1,25 +0,0 @@ -From cc9a8d3cd12f2c15e43bd263b8b8a9b32d097831 Mon Sep 17 00:00:00 2001 -From: Dan Allen -Date: Thu, 25 May 2023 18:39:56 -0600 -Subject: [PATCH] use single-line block in manify method in manpage converter - to make it easier to patch - ---- - lib/asciidoctor/converter/manpage.rb | 4 +--- - 1 file changed, 1 insertion(+), 3 deletions(-) - -diff --git a/lib/asciidoctor/converter/manpage.rb b/lib/asciidoctor/converter/manpage.rb -index bcf2b784..a7aba996 100644 ---- a/lib/asciidoctor/converter/manpage.rb -+++ b/lib/asciidoctor/converter/manpage.rb -@@ -716,9 +716,7 @@ def manify str, opts = {} - .gsub(LiteralBackslashRx) { $1 ? $& : '\\(rs' } # literal backslash (not a troff escape sequence) - .gsub(EllipsisCharRefRx, '...') # horizontal ellipsis - .gsub(LeadingPeriodRx, '\\\&.') # leading . is used in troff for macro call or other formatting; replace with \&. -- .gsub(EscapedMacroRx) do # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line -- (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) -- end -+ .gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) } # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line - .gsub('-', '\-') - .gsub('<', '<') - .gsub('>', '>') diff --git a/0002-change-dot-layout-in-chained-method-call-to-be-compa.patch b/0002-change-dot-layout-in-chained-method-call-to-be-compa.patch deleted file mode 100644 index 351d5cc..0000000 --- a/0002-change-dot-layout-in-chained-method-call-to-be-compa.patch +++ /dev/null @@ -1,85 +0,0 @@ -From b7c03964cfc96af9ced5db3c1a6c7a7663de5cb2 Mon Sep 17 00:00:00 2001 -From: Dan Allen -Date: Fri, 26 May 2023 01:44:09 -0600 -Subject: [PATCH] change dot layout in chained method call to be compatible - with rdoc generator from Ruby 2.5 - ---- - lib/asciidoctor/converter/manpage.rb | 64 ++++++++++++++-------------- - 1 file changed, 32 insertions(+), 32 deletions(-) - -diff --git a/lib/asciidoctor/converter/manpage.rb b/lib/asciidoctor/converter/manpage.rb -index a7aba996..be52e9be 100644 ---- a/lib/asciidoctor/converter/manpage.rb -+++ b/lib/asciidoctor/converter/manpage.rb -@@ -712,38 +712,38 @@ def manify str, opts = {} - else - str = str.tr_s WHITESPACE, ' ' - end -- str = str -- .gsub(LiteralBackslashRx) { $1 ? $& : '\\(rs' } # literal backslash (not a troff escape sequence) -- .gsub(EllipsisCharRefRx, '...') # horizontal ellipsis -- .gsub(LeadingPeriodRx, '\\\&.') # leading . is used in troff for macro call or other formatting; replace with \&. -- .gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) } # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line -- .gsub('-', '\-') -- .gsub('<', '<') -- .gsub('>', '>') -- .gsub('+', '+') # plus sign; alternately could use \c(pl -- .gsub(' ', '\~') # non-breaking space -- .gsub('©', '\(co') # copyright sign -- .gsub('®', '\(rg') # registered sign -- .gsub('™', '\(tm') # trademark sign -- .gsub('°', '\(de') # degree sign -- .gsub(' ', ' ') # thin space -- .gsub('–', '\(en') # en dash -- .gsub(EmDashCharRefRx, '\(em') # em dash -- .gsub('‘', '\(oq') # left single quotation mark -- .gsub('’', '\(cq') # right single quotation mark -- .gsub('“', '\(lq') # left double quotation mark -- .gsub('”', '\(rq') # right double quotation mark -- .gsub('←', '\(<-') # leftwards arrow -- .gsub('→', '\(->') # rightwards arrow -- .gsub('⇐', '\(lA') # leftwards double arrow -- .gsub('⇒', '\(rA') # rightwards double arrow -- .gsub('​', '\:') # zero width space -- .gsub('&', '&') # literal ampersand (NOTE must take place after any other replacement that includes &) -- .gsub('\'', '\*(Aq') # apostrophe / neutral single quote -- .gsub(MockMacroRx, '\1') # mock boundary -- .gsub(ESC_BS, '\\') # unescape troff backslash (NOTE update if more escapes are added) -- .gsub(ESC_FS, '.') # unescape full stop in troff commands (NOTE must take place after gsub(LeadingPeriodRx)) -- .rstrip # strip trailing space -+ str = str. -+ gsub(LiteralBackslashRx) { $1 ? $& : '\\(rs' }. # literal backslash (not a troff escape sequence) -+ gsub(EllipsisCharRefRx, '...'). # horizontal ellipsis -+ gsub(LeadingPeriodRx, '\\\&.'). # leading . is used in troff for macro call or other formatting; replace with \&. -+ gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) }. # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line -+ gsub('-', '\-'). -+ gsub('<', '<'). -+ gsub('>', '>'). -+ gsub('+', '+'). # plus sign; alternately could use \c(pl -+ gsub(' ', '\~'). # non-breaking space -+ gsub('©', '\(co'). # copyright sign -+ gsub('®', '\(rg'). # registered sign -+ gsub('™', '\(tm'). # trademark sign -+ gsub('°', '\(de'). # degree sign -+ gsub(' ', ' '). # thin space -+ gsub('–', '\(en'). # en dash -+ gsub(EmDashCharRefRx, '\(em'). # em dash -+ gsub('‘', '\(oq'). # left single quotation mark -+ gsub('’', '\(cq'). # right single quotation mark -+ gsub('“', '\(lq'). # left double quotation mark -+ gsub('”', '\(rq'). # right double quotation mark -+ gsub('←', '\(<-'). # leftwards arrow -+ gsub('→', '\(->'). # rightwards arrow -+ gsub('⇐', '\(lA'). # leftwards double arrow -+ gsub('⇒', '\(rA'). # rightwards double arrow -+ gsub('​', '\:'). # zero width space -+ gsub('&', '&'). # literal ampersand (NOTE must take place after any other replacement that includes &) -+ gsub('\'', '\*(Aq'). # apostrophe / neutral single quote -+ gsub(MockMacroRx, '\1'). # mock boundary -+ gsub(ESC_BS, '\\'). # unescape troff backslash (NOTE update if more escapes are added) -+ gsub(ESC_FS, '.'). # unescape full stop in troff commands (NOTE must take place after gsub(LeadingPeriodRx)) -+ rstrip # strip trailing space - opts[:append_newline] ? %(#{str}#{LF}) : str - end - diff --git a/0003-support-ruby33-Logger.patch b/0003-support-ruby33-Logger.patch deleted file mode 100644 index eadf945..0000000 --- a/0003-support-ruby33-Logger.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 4c93df1eeff84463c6fc299b62b78c20c3163a09 Mon Sep 17 00:00:00 2001 -From: Mamoru TASAKA -Date: Fri, 29 Sep 2023 15:00:12 +0900 -Subject: [PATCH] Support ruby3.3 Logger by properly initialize super class - -Upcoming ruby3.3 will have enhanced Logger class: -https://github.com/ruby/ruby/commit/194520f80e1cdb71faa055d731450855a1ddb8d1 -which initializes newly added instance variables. -Without initializing such variables (in super class), now using -subclass of Logger will cause exception. - -To avoid this, first call super, then execute additional subclass -initialization. - -Closes #4493 . ---- - lib/asciidoctor/logging.rb | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/lib/asciidoctor/logging.rb b/lib/asciidoctor/logging.rb -index 7664c7e75d..1f846c4fba 100644 ---- a/lib/asciidoctor/logging.rb -+++ b/lib/asciidoctor/logging.rb -@@ -42,6 +42,7 @@ class MemoryLogger < ::Logger - attr_reader :messages - - def initialize -+ super nil - self.level = WARN - @messages = [] - end -@@ -69,6 +70,7 @@ class NullLogger < ::Logger - attr_reader :max_severity - - def initialize -+ super nil - self.level = WARN - end - diff --git a/0004-remove-base64-dependency.patch b/0004-remove-base64-dependency.patch deleted file mode 100644 index 74f1c57..0000000 --- a/0004-remove-base64-dependency.patch +++ /dev/null @@ -1,63 +0,0 @@ -From fb4d1d6295153f1722711ee0b232f980b0793b1c Mon Sep 17 00:00:00 2001 -From: Dan Allen -Date: Thu, 7 Mar 2024 16:35:09 -0700 -Subject: [PATCH] resolves #4561 remove use of base64 library to prevent - warning in Ruby >= 3.3 - ---- - CHANGELOG.adoc | 1 + - Gemfile | 1 + - asciidoctor.gemspec | 2 +- - lib/asciidoctor.rb | 1 - - lib/asciidoctor/abstract_node.rb | 12 ++++++------ - 5 files changed, 9 insertions(+), 8 deletions(-) - -diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb -index 18b6743bfc..08a5db02c0 100644 ---- a/lib/asciidoctor.rb -+++ b/lib/asciidoctor.rb -@@ -7,7 +7,6 @@ - # this require is satisfied by the Asciidoctor.js build; it augments the Ruby environment for Asciidoctor.js - require 'asciidoctor/js' - else -- autoload :Base64, 'base64' - require 'cgi/util' - autoload :OpenURI, 'open-uri' - autoload :Pathname, 'pathname' -diff --git a/lib/asciidoctor/abstract_node.rb b/lib/asciidoctor/abstract_node.rb -index a60ab7956c..07ad0291d1 100644 ---- a/lib/asciidoctor/abstract_node.rb -+++ b/lib/asciidoctor/abstract_node.rb -@@ -355,8 +355,8 @@ def media_uri target, asset_dir_key = 'imagesdir' - # - # First, and foremost, the target image path is cleaned if the document safe mode level - # is set to at least SafeMode::SAFE (a condition which is true by default) to prevent access -- # to ancestor paths in the filesystem. The image data is then read and converted to -- # Base64. Finally, a data URI is built which can be used in an image tag. -+ # to ancestor paths in the filesystem. The image data is then read and converted to base64. -+ # Finally, a data URI is built which can be used in an image tag. - # - # target_image - A String path to the target image - # asset_dir_key - The String attribute key used to lookup the directory where -@@ -377,8 +377,8 @@ def generate_data_uri target_image, asset_dir_key = nil - end - - if ::File.readable? image_path -- # NOTE base64 is autoloaded by reference to ::Base64 -- %(data:#{mimetype};base64,#{::Base64.strict_encode64 ::File.binread image_path}) -+ # NOTE pack 'm0' is equivalent to Base64.strict_encode64 -+ %(data:#{mimetype};base64,#{[(::File.binread image_path)].pack 'm0'}) - else - logger.warn %(image to embed not found or not readable: #{image_path}) - %(data:#{mimetype};base64,) -@@ -411,8 +411,8 @@ def generate_data_uri_from_uri image_uri, cache_uri = false - - begin - mimetype, bindata = ::OpenURI.open_uri(image_uri, URI_READ_MODE) {|f| [f.content_type, f.read] } -- # NOTE base64 is autoloaded by reference to ::Base64 -- %(data:#{mimetype};base64,#{::Base64.strict_encode64 bindata}) -+ # NOTE pack 'm0' is equivalent to Base64.strict_encode64 -+ %(data:#{mimetype};base64,#{[bindata].pack 'm0'}) - rescue - logger.warn %(could not retrieve image data from URI: #{image_uri}) - image_uri diff --git a/0005-normalize-inspect-output.patch b/0005-normalize-inspect-output.patch deleted file mode 100644 index ae17d99..0000000 --- a/0005-normalize-inspect-output.patch +++ /dev/null @@ -1,42 +0,0 @@ -From e5442fc2848680eada862841b0e92dc9265e1a29 Mon Sep 17 00:00:00 2001 -From: Dan Allen -Date: Thu, 31 Oct 2024 04:20:33 -0600 -Subject: [PATCH] resolves #4634 normalize output from inspect when comparing - to fixture - ---- - test/extensions_test.rb | 20 ++++++++++---------- - 1 file changed, 10 insertions(+), 10 deletions(-) - -diff --git a/test/extensions_test.rb b/test/extensions_test.rb -index 93c475a070..20df46cb34 100644 ---- a/test/extensions_test.rb -+++ b/test/extensions_test.rb -@@ -1468,17 +1468,17 @@ def process parent, reader, attributes - ++++ - EOS - expected = <<~'EOS'.chop -- target="", attributes={} -- target="value,key=val", attributes={1=>"value", "key"=>"val", "name"=>"value"} -- target="", attributes={"text"=>""} -- target="[text]", attributes={"text"=>"[text]"} -- target="target", attributes={} -- target="target", attributes={1=>"value", "key"=>"val", "name"=>"value"} -- target="target", attributes={"text"=>""} -- target="target", attributes={"text"=>"[text]"} -- target="target", attributes={} -+ target="",attributes={} -+ target="value,key=val",attributes={1=>"value","key"=>"val","name"=>"value"} -+ target="",attributes={"text"=>""} -+ target="[text]",attributes={"text"=>"[text]"} -+ target="target",attributes={} -+ target="target",attributes={1=>"value","key"=>"val","name"=>"value"} -+ target="target",attributes={"text"=>""} -+ target="target",attributes={"text"=>"[text]"} -+ target="target",attributes={} - EOS -- output = convert_string_to_embedded input -+ output = ((convert_string_to_embedded input).gsub ' => ', '=>').gsub ', ', ',' - assert_equal expected, output - ensure - Asciidoctor::Extensions.unregister_all diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 4ece2a2..7cff70d 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -6,23 +6,11 @@ Summary: A fast, open source AsciiDoc implementation in Ruby Name: rubygem-%{gem_name} -Version: 2.0.20 -Release: 11%{?dist} +Version: 2.0.26 +Release: 1%{?dist} License: MIT URL: https://asciidoctor.org Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz -# improve ruby-2.5 compatibility -# https://github.com/asciidoctor/asciidoctor/issues/4462 -# https://github.com/asciidoctor/asciidoctor/commit/cc9a8d3c -Patch0: 0001-use-single-line-block-in-manify-method-in-manpage-co.patch -# https://github.com/asciidoctor/asciidoctor/commit/b7c03964 -Patch1: 0002-change-dot-layout-in-chained-method-call-to-be-compa.patch -# https://github.com/asciidoctor/asciidoctor/pull/4494 -Patch2: 0003-support-ruby33-Logger.patch -# https://github.com/asciidoctor/asciidoctor/pull/4562/ -Patch3: 0004-remove-base64-dependency.patch -# https://github.com/asciidoctor/asciidoctor/commit/e5442fc2 -Patch4: 0005-normalize-inspect-output.patch %if 0%{?el7} Requires: ruby(release) BuildRequires: ruby(release) @@ -139,6 +127,10 @@ cp -a .%{gem_instdir}/man/*.1 \ %doc %{gem_docdir} %changelog +* Mon Dec 15 2025 Dominik Mierzejewski - 2.0.26-1 +- updated to 2.0.26 (resolves rhbz#2265214) +- droped upstreamed patches + * Wed Nov 05 2025 Mamoru TASAKA - 2.0.20-11 - Add logger dep for ruby3_5 diff --git a/sources b/sources index 4d8a0c4..7fdf3a8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (asciidoctor-2.0.20.tar.gz) = b6b730de8f83e36630dc6146b4c0e07a26b502b695e78e50fc87790391126d52ef0b6b02b82ecb225adff680c94305b4e31403cc067bdbf1740e2d759417f440 +SHA512 (asciidoctor-2.0.26.tar.gz) = 5e42079374fb1767dd0fd6767fd1e718d2c1c673e131ef1ae401c7b17e5b413168de3b25889eda35d2021ded55855b83b78f6110729e1a7765f757b37bbf5858