diff --git a/README.md b/README.md index 07c209d..035bd15 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # ruby-kramdown-parser-gfm +kramdown-parser-gfm provides a kramdown parser for the GFM dialect of Markdown. diff --git a/kramdown-parser-gfm-1.1.0.gem b/kramdown-parser-gfm-1.1.0.gem new file mode 100644 index 0000000..f087be5 Binary files /dev/null and b/kramdown-parser-gfm-1.1.0.gem differ diff --git a/ruby-kramdown-parser-gfm-1.1.0-ruby-kramdown-2.4.0.patch b/ruby-kramdown-parser-gfm-1.1.0-ruby-kramdown-2.4.0.patch new file mode 100644 index 0000000..5122139 --- /dev/null +++ b/ruby-kramdown-parser-gfm-1.1.0-ruby-kramdown-2.4.0.patch @@ -0,0 +1,24 @@ +From ad48572d75299355563fc20ba1dd90cbec35ba81 Mon Sep 17 00:00:00 2001 +From: Ashwin Maroli +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 @@

With “smart” quotes

+ +

with — « typographic » … symbols

+ +-

with

++

with \(m=5\)

diff --git a/ruby-kramdown-parser-gfm.spec b/ruby-kramdown-parser-gfm.spec new file mode 100644 index 0000000..1257ee2 --- /dev/null +++ b/ruby-kramdown-parser-gfm.spec @@ -0,0 +1,56 @@ +Name: ruby-kramdown-parser-gfm +Version: 1.1.0 +Release: 1mamba +Summary: A kramdown parser for the GFM dialect of Markdown +Group: System/Libraries/Ruby +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/kramdown/parser-gfm +Source: https://rubygems.org/gems/kramdown-parser-gfm-%{version}.gem +Patch0: ruby-kramdown-parser-gfm-1.1.0-ruby-kramdown-2.4.0.patch +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: ruby-devel +Requires: ruby +Requires: ruby-kramdown + +%description +kramdown-parser-gfm provides a kramdown parser for the GFM dialect of Markdown. + +#% debug_package + +%prep +%setup -q -c +cd kramdown-parser-gfm-%{version} +%patch 0 -p1 -b .ruby-kramdown-2.4.0 + +%build +cd kramdown-parser-gfm-%{version} +gem build ../kramdown-parser-gfm-%{version}.gemspec + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd kramdown-parser-gfm-%{version} + +gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" + +gem install --no-user-install --ignore-dependencies -i "%{buildroot}$gemdir" -n "%{buildroot}/usr/bin" %{SOURCE0} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/ruby/gems/*/cache/kramdown-parser-gfm-1.1.0.gem +%dir %{_libdir}/ruby/gems/*/gems/kramdown-parser-gfm-%{version} +%{_libdir}/ruby/gems/*/gems/kramdown-parser-gfm-%{version}/* +%dir %{_libdir}/ruby/gems/*/doc/kramdown-parser-gfm-%{version} +%{_libdir}/ruby/gems/*/doc/kramdown-parser-gfm-%{version}/* +%{_libdir}/ruby/gems/*/specifications/kramdown-parser-gfm-1.1.0.gemspec +%doc kramdown-parser-gfm-%{version}/COPYING + +%changelog +* Fri Jun 07 2024 Silvan Calarco 1.1.0-1mamba +- package created using the webbuild interface