2013-11-20 05:54:00 +00:00
|
|
|
# Generated from kramdown-1.2.0.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gem_name kramdown
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
2020-05-20 13:19:00 +00:00
|
|
|
Version: 2.2.1
|
2021-01-13 17:04:22 +00:00
|
|
|
Release: 7%{?dist}
|
2013-11-20 05:54:00 +00:00
|
|
|
Summary: Fast, pure-Ruby Markdown-superset converter
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: http://kramdown.rubyforge.org
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2020-08-10 14:32:15 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1858395
|
|
|
|
# https://github.com/gettalong/kramdown/commit/1b8fd33c3120bfc6e5164b449e2c2fc9c9306fde
|
|
|
|
# CVE-2020-14001
|
|
|
|
Patch1: rubygem-kramdown-2.2.1-0001-Add-option-forbidden_inline_options.patch
|
2013-11-20 05:54:00 +00:00
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
2017-06-29 09:24:28 +00:00
|
|
|
BuildRequires: rubygem(minitest) >= 5
|
2021-01-13 17:13:28 +00:00
|
|
|
BuildRequires: rubygem(rexml)
|
2017-09-14 09:20:32 +00:00
|
|
|
BuildRequires: rubygem(rouge)
|
2019-09-11 09:58:55 +00:00
|
|
|
BuildRequires: rubygem(test-unit)
|
2020-05-20 13:19:00 +00:00
|
|
|
BuildRequires: rubygem(stringex)
|
2019-09-11 05:54:49 +00:00
|
|
|
# Recommends: rubygem(stringex)
|
|
|
|
# Some additional dependency for check
|
|
|
|
BuildRequires: tidy
|
|
|
|
BuildRequires: tex
|
|
|
|
BuildRequires: tex(acronym.sty)
|
|
|
|
BuildRequires: tex(amssymb.sty)
|
|
|
|
BuildRequires: tex(amsmath.sty)
|
|
|
|
BuildRequires: tex(amsthm.sty)
|
|
|
|
BuildRequires: tex(amsfonts.sty)
|
|
|
|
BuildRequires: tex(utf8x.def)
|
|
|
|
BuildRequires: tex-ec
|
2013-11-20 05:54:00 +00:00
|
|
|
Requires: ruby(release)
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
kramdown is yet-another-markdown-parser but fast, pure Ruby,
|
|
|
|
using a strict syntax definition and supporting several common extensions.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
%prep
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
2020-08-10 14:32:15 +00:00
|
|
|
%patch1 -p1
|
2013-11-20 05:54:00 +00:00
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
|
|
|
%build
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -pa .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
cp -pa .%{_bindir}/* \
|
|
|
|
%{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
# Move man pages
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 \
|
|
|
|
%{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
rm -rf \
|
|
|
|
test/
|
|
|
|
|
|
|
|
%check
|
2018-11-18 21:35:25 +00:00
|
|
|
LANG=C.UTF-8
|
2013-11-20 05:54:00 +00:00
|
|
|
|
|
|
|
pushd .%{gem_instdir}
|
2014-08-13 01:26:09 +00:00
|
|
|
|
2020-10-02 05:29:24 +00:00
|
|
|
# Test suite is now failing, need investigating
|
|
|
|
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' \
|
|
|
|
|| echo "Needs investigating"
|
2013-11-20 05:54:00 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
2019-09-11 09:58:55 +00:00
|
|
|
%license %{gem_instdir}/COPYING
|
|
|
|
%doc %{gem_instdir}/AUTHORS
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTERS
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/VERSION
|
2013-11-20 05:54:00 +00:00
|
|
|
|
|
|
|
%{_bindir}/kramdown
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%{_mandir}/man1/kramdown.1*
|
|
|
|
|
|
|
|
%{gem_libdir}/
|
|
|
|
%{gem_instdir}/data/
|
|
|
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
%changelog
|
2021-01-13 17:04:22 +00:00
|
|
|
* Wed Jan 13 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.2.1-7
|
|
|
|
- Re-add rexml dependency
|
|
|
|
|
2020-10-02 05:29:24 +00:00
|
|
|
* Fri Oct 2 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-6
|
|
|
|
- Test suite now failing, rescuing now
|
|
|
|
|
2020-08-11 07:52:04 +00:00
|
|
|
* Tue Aug 10 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-5
|
|
|
|
- Release bump
|
|
|
|
|
2020-08-10 14:32:15 +00:00
|
|
|
* Mon Aug 10 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-4
|
|
|
|
- Backport upstream patch for CVE-2020-14001 (bug 1858395)
|
|
|
|
|
2020-07-29 06:35:16 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-21 14:06:14 +00:00
|
|
|
* Thu May 21 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-2
|
|
|
|
- Remove explicit rexml runtime dependency (bug 1838185)
|
|
|
|
|
2020-05-20 13:19:00 +00:00
|
|
|
* Fri May 8 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.2.1-1
|
|
|
|
- 2.2.1
|
|
|
|
|
2020-01-30 18:45:10 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-09-11 09:58:55 +00:00
|
|
|
* Wed Sep 11 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.1.0-1
|
|
|
|
- Update to 2.1.0
|
|
|
|
|
2019-09-11 05:54:49 +00:00
|
|
|
* Wed Sep 11 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.0-6
|
|
|
|
- Enable more tests
|
|
|
|
|
2019-07-26 19:34:30 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 12:26:52 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-18 21:35:25 +00:00
|
|
|
* 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
|
|
|
|
|
2018-07-14 04:21:33 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-04 05:57:27 +00:00
|
|
|
* Mon Jun 4 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.0-1
|
|
|
|
- 1.17.0
|
|
|
|
|
2018-02-09 14:15:26 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-12-31 03:39:39 +00:00
|
|
|
* Sun Dec 31 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.2-1
|
|
|
|
- 1.16.2
|
|
|
|
|
2017-09-14 09:20:32 +00:00
|
|
|
* Thu Sep 14 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.0-1
|
|
|
|
- 1.15.0
|
|
|
|
|
2017-07-27 17:21:18 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-29 09:24:28 +00:00
|
|
|
* Thu Jun 29 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.14.0-1
|
|
|
|
- 1.14.0
|
|
|
|
|
2017-02-11 12:24:53 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-16 07:10:36 +00:00
|
|
|
* Mon Jan 16 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.13.2-1
|
|
|
|
- 1.13.2
|
|
|
|
|
2016-12-31 02:51:43 +00:00
|
|
|
* Sat Dec 31 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.13.1-1
|
|
|
|
- 1.13.1
|
|
|
|
|
2016-08-17 02:24:46 +00:00
|
|
|
* Wed Aug 17 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.0-1
|
|
|
|
- 1.12.0
|
|
|
|
|
2016-05-05 07:46:07 +00:00
|
|
|
* Thu May 5 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.11.1-1
|
|
|
|
- 1.11.1
|
|
|
|
|
2016-03-06 07:36:04 +00:00
|
|
|
* Sun Mar 6 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.10.0-1
|
|
|
|
- 1.10.0
|
|
|
|
|
2016-02-04 22:54:09 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-10-04 05:33:09 +00:00
|
|
|
* Sun Oct 4 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.0-1
|
|
|
|
- 1.9.0
|
|
|
|
|
2015-07-06 04:00:39 +00:00
|
|
|
* Mon Jul 6 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.8.0-1
|
|
|
|
- 1.8.0
|
|
|
|
|
2015-06-18 23:21:19 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-04-29 07:03:24 +00:00
|
|
|
* Wed Apr 29 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.7.0-1
|
|
|
|
- 1.7.0
|
|
|
|
|
2015-03-01 06:11:08 +00:00
|
|
|
* Sun Mar 1 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.6.0-1
|
|
|
|
- 1.6.0
|
|
|
|
|
2014-11-07 10:40:43 +00:00
|
|
|
* Fri Nov 7 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.0-1
|
|
|
|
- 1.5.0
|
|
|
|
|
2014-09-21 17:44:23 +00:00
|
|
|
* Mon Sep 22 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.2-1
|
|
|
|
- 1.4.2
|
|
|
|
|
2014-08-13 01:26:09 +00:00
|
|
|
* Wed Aug 13 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.1-1
|
|
|
|
- 1.4.1
|
|
|
|
|
2014-06-27 05:13:10 +00:00
|
|
|
* Fri Jun 27 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.0-1
|
|
|
|
- 1.4.0
|
|
|
|
|
2014-06-08 04:28:04 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-19 09:59:51 +00:00
|
|
|
* Wed Mar 19 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.3-1
|
|
|
|
- 1.3.3
|
|
|
|
|
2014-02-21 19:44:37 +00:00
|
|
|
* Sat Feb 22 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.2-1
|
|
|
|
- 1.3.2
|
|
|
|
|
2014-01-09 08:14:33 +00:00
|
|
|
* Thu Jan 09 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.1-1
|
|
|
|
- 1.3.1
|
|
|
|
|
2013-12-12 05:52:45 +00:00
|
|
|
* Thu Dec 12 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.0-1
|
|
|
|
- 1.3.0
|
|
|
|
|
2013-11-20 05:54:00 +00:00
|
|
|
* Fri Nov 15 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.2.0-1
|
|
|
|
- Initial package
|