|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
%global gem_name kramdown
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 1.16.2
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 2.3.1
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Fast, pure-Ruby Markdown-superset converter
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -11,9 +11,10 @@ URL: http://kramdown.rubyforge.org
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: rubygem(coderay)
|
|
|
|
|
BuildRequires: rubygem(minitest) >= 5
|
|
|
|
|
BuildRequires: rubygem(rake)
|
|
|
|
|
BuildRequires: rubygem(rexml)
|
|
|
|
|
BuildRequires: rubygem(rouge) >= 3.26.0
|
|
|
|
|
BuildRequires: rubygem(test-unit)
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -33,12 +34,11 @@ BuildArch: noarch
|
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
|
mv ../%{gem_name}-%{version}.gemspec .
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
|
gem build %{gem_name}-%{version}.gemspec
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
@ -60,37 +60,31 @@ mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 \
|
|
|
|
|
# Cleanup
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
|
rm -rf \
|
|
|
|
|
setup.rb Rakefile \
|
|
|
|
|
benchmark/ \
|
|
|
|
|
test/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
LANG=en_US.utf8
|
|
|
|
|
LANG=C.UTF-8
|
|
|
|
|
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
|
|
# Do not test Pdf conversion, so we can drop Prawn dependency.
|
|
|
|
|
sed -i '/Kramdown::Converter.constants/ s/:SyntaxHighlighter\]/:SyntaxHighlighter, :Pdf]/' test/test_files.rb
|
|
|
|
|
sed -i test/testcases/block/04_header/with_auto_ids.options \
|
|
|
|
|
-e '\@transliterated_header_ids@s|true|false|'
|
|
|
|
|
sed -i \
|
|
|
|
|
test/testcases/block/04_header/with_auto_ids.* \
|
|
|
|
|
-e '\@[Tr]ransliterated@d'
|
|
|
|
|
|
|
|
|
|
# We don't have stringex in Fedora.
|
|
|
|
|
rm test/testcases/block/04_header/with_auto_ids.text
|
|
|
|
|
export RUBYLIB=$(pwd)/lib
|
|
|
|
|
ruby -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
|
|
|
|
|
|
|
|
|
# We don't have any math conversion libraries (ritex, itextomml, sskatex,
|
|
|
|
|
# katex) in Fedora.
|
|
|
|
|
rm -rf test/testcases/block/15_math/*.text
|
|
|
|
|
rm -rf test/testcases/span/math/*.text
|
|
|
|
|
|
|
|
|
|
# Remove Rouge test cases to avoid the dependency.
|
|
|
|
|
rm -rf test/testcases/span/03_codespan/rouge
|
|
|
|
|
rm -rf test/testcases/block/06_codeblock/rouge
|
|
|
|
|
|
|
|
|
|
# Some tests seem to be failing, need investigating
|
|
|
|
|
rake test || true
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%doc %{gem_instdir}/[A-Z]*
|
|
|
|
|
%license %{gem_instdir}/COPYING
|
|
|
|
|
%doc %{gem_instdir}/AUTHORS
|
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTERS
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
%doc %{gem_instdir}/VERSION
|
|
|
|
|
|
|
|
|
|
%{_bindir}/kramdown
|
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
@ -104,14 +98,89 @@ popd
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/doc/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jun 26 2018 Vít Ondruch <vondruch@redhat.com> - 1.16.2-3
|
|
|
|
|
- Drop BR rubygem(prawn) and rubygem(prawn-table).
|
|
|
|
|
- Drop BuildRequires: rubygem(rouge).
|
|
|
|
|
- Add BuildRequires: rubygem(coderay) to fix several test cases.
|
|
|
|
|
- Make test suite pass.
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.1-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Tue May 25 2021 Vít Ondruch <vondruch@redhat.com> - 2.3.1-4
|
|
|
|
|
- Drop `tidy` dependency.
|
|
|
|
|
Related: rhbz#1951246
|
|
|
|
|
|
|
|
|
|
* Thu May 13 2021 Vít Ondruch <vondruch@redhat.com> - 2.3.1-3
|
|
|
|
|
- Drop Latex test cases and disable stringex dependency.
|
|
|
|
|
Resolves: rhbz#1951246
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.1-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.0-1
|
|
|
|
|
- 2.3.1
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.0-3
|
|
|
|
|
- Apply upstream fix for CVE-2021-28834 (rouge formatter namespace restriction)
|
|
|
|
|
|
|
|
|
|
* Tue Feb 16 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.0-2
|
|
|
|
|
- Use recent packaging style
|
|
|
|
|
|
|
|
|
|
* Mon Feb 1 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.3.0-1
|
|
|
|
|
- 2.3.0
|
|
|
|
|
- Speficy rouge version dependency for test suite
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 23 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-8
|
|
|
|
|
- Wrap rexml depedency with fedora release
|
|
|
|
|
- Add upstream patch for rouge change
|
|
|
|
|
- Add upstream patch to silence warnings from minitest
|
|
|
|
|
|
|
|
|
|
* Wed Jan 13 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.2.1-7
|
|
|
|
|
- Re-add rexml dependency
|
|
|
|
|
|
|
|
|
|
* Fri Oct 2 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-6
|
|
|
|
|
- Test suite now failing, rescuing now
|
|
|
|
|
|
|
|
|
|
* Tue Aug 11 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-5
|
|
|
|
|
- Release bump
|
|
|
|
|
|
|
|
|
|
* Mon Aug 10 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-4
|
|
|
|
|
- Backport upstream patch for CVE-2020-14001 (bug 1858395)
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 21 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-2
|
|
|
|
|
- Remove explicit rexml runtime dependency (bug 1838185)
|
|
|
|
|
|
|
|
|
|
* Fri May 8 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-1
|
|
|
|
|
- 2.2.1
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Sep 11 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.1.0-1
|
|
|
|
|
- Update to 2.1.0
|
|
|
|
|
|
|
|
|
|
* Wed Sep 11 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.0-6
|
|
|
|
|
- Enable more tests
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.17.0-3
|
|
|
|
|
- Use C.UTF-8 locale
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 4 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.0-1
|
|
|
|
|
- 1.17.0
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|