Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
236823c28b
!19 Update to 2.4.0
From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-04-20 06:44:23 +00:00
lyn1001
98dc7c4ec0 Update to 2.4.0 2023-04-20 14:11:38 +08:00
openeuler-ci-bot
dde7fb9003
!18 upgrade 2.3.1
From: @lyn1001 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-03-31 01:32:06 +00:00
lyn1001
c8bf6ba147 upgrade 2.3.1 2022-03-29 11:02:09 +08:00
openeuler-ci-bot
fc172f3ba9 !9 fix CVE-2020-14001
From: @starlet-dx
Reviewed-by: @houyingchao,@small_leek
Signed-off-by: @small_leek
2021-07-23 03:05:03 +00:00
starlet_dx
a2cb7914a0 fix CVE-2020-14001 2021-07-23 10:35:43 +08:00
openeuler-ci-bot
3a12e8416d !4 fix CVE-2021-28834
From: @wang_yue111
Reviewed-by: @zhanghua1831,@small_leek
Signed-off-by: @small_leek
2021-03-30 09:39:46 +08:00
wang_yue111
22bd318804 CVE-2021-28834 2021-03-29 17:09:12 +08:00
openeuler-ci-bot
21d5c9905e !3 Update to 2.1
From: @chengzihan2
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-12-18 20:46:35 +08:00
chengzihan2
f4f46318d4 update to 2.1.0 2020-12-18 18:05:55 +08:00
3 changed files with 65 additions and 47 deletions

Binary file not shown.

BIN
kramdown-2.4.0.gem Normal file

Binary file not shown.

View File

@ -1,34 +1,34 @@
%global gem_name kramdown
Name: rubygem-kramdown
Version: 1.17.0
Release: 3
Name: rubygem-%{gem_name}
Version: 2.4.0
Release: 1
Summary: A fast pure Ruby yet-another-markdown-parser
License: MIT
URL: http://kramdown.rubyforge.org
Source0: https://rubygems.org/gems/kramdown-%{version}.gem
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) >= 5 rubygem(prawn)
BuildRequires: rubygem(prawn-table) rubygem(rake) rubygem(rouge)
URL: http://kramdown.gettalong.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) >= 5 rubygem(rouge)
BuildRequires: rubygem(test-unit) tidy tex tex(acronym.sty) tex(amssymb.sty) rubygem(rexml)
BuildRequires: tex(amsmath.sty) tex(amsthm.sty) tex(amsfonts.sty) tex(utf8x.def) tex-ec
Requires: ruby(release) ruby(rubygems)
BuildArch: noarch
Provides: rubygem(kramdown) = %{version}-%{release}
Provides: rubygem(%{gem_name}) = %{version}-%{release}
%description
The package is fast yet-another-markdown-parser , pure Ruby,
kramdown is yet-another-markdown-parser but fast, pure Ruby,
using a strict syntax definition and supporting several common extensions.
%package help
Summary: Documentation for rubygem-kramdown
Requires: rubygem-kramdown = %{version}-%{release}
Provides: rubygem-kramdown-doc = %{version}-%{release}
Obsoletes: rubygem-kramdown-doc < %{version}-%{release}
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
BuildArch: noarch
%description help
Documentation for rubygem-kramdown.
Documentation for %{name}
%prep
gem unpack %{SOURCE0}
%autosetup -D -T -n kramdown-%{version}
%autosetup -D -T -n kramdown-%{version} -p1
gem spec %{SOURCE0} -l --ruby > kramdown.gemspec
%build
@ -36,43 +36,61 @@ gem build kramdown.gemspec
%gem_install
%install
for i in %{gem_dir} %{_bindir}
do
install -d %{buildroot}$i
cp -pa .$i/* %{buildroot}$i/
done
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
install -d %{buildroot}%{_mandir}/man1
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 %{buildroot}%{_mandir}/man1
cd %{buildroot}%{gem_instdir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 \
%{buildroot}%{_mandir}/man1
pushd %{buildroot}%{gem_instdir}
rm -rf \
test/
%check
LANG=en_US.utf8
cd .%{gem_instdir}
rake test || true
cd -
LANG=C.UTF-8
pushd .%{gem_instdir}
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' \
|| echo "Needs investigating"
popd
%files
%dir %{gem_instdir}
%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
%{_mandir}/man1/kramdown.1*
%{gem_libdir}/
%{gem_instdir}/data/
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/benchmark
%exclude %{gem_instdir}/setup.rb
%{gem_spec}
%files help
%dir %{gem_instdir}
%doc %{gem_docdir}
%doc %{gem_instdir}/doc/
%doc %{gem_instdir}/[A-Z]*
%{_mandir}/man1/kramdown.1*
%exclude %{gem_instdir}/Rakefile
%changelog
* Thu Apr 20 2023 liyanan <thistleslyn@163.com> - 2.4.0-1
- upgrade 2.4.0
* Tue Mar 29 2022 liyanan <liyanan32@huawei.com> - 2.3.1-1
- upgrade 2.3.1
* Fri Jul 23 2021 yaoxin <yaoxin30@huawei.com> - 2.1.0-3
- fix CVE-2020-14001
* Mon Mar 29 2021 wangyue <wangyue92@huawei.com> - 2.1.0-2
- fix CVE-2021-28834
* Tue Dec 15 2020 chengzihan <chengzihan2@huawei.com> - 2.1.0-1
- update to 2.1.0
* Thu Mar 12 2020 zhujunhao <zhujunhao5@huawei.com> - 1.17.0-3
- Package init