Compare commits
10 Commits
7e7e23998e
...
236823c28b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
236823c28b | ||
|
|
98dc7c4ec0 | ||
|
|
dde7fb9003 | ||
|
|
c8bf6ba147 | ||
|
|
fc172f3ba9 | ||
|
|
a2cb7914a0 | ||
|
|
3a12e8416d | ||
|
|
22bd318804 | ||
|
|
21d5c9905e | ||
|
|
f4f46318d4 |
Binary file not shown.
BIN
kramdown-2.4.0.gem
Normal file
BIN
kramdown-2.4.0.gem
Normal file
Binary file not shown.
@ -1,34 +1,34 @@
|
|||||||
%global gem_name kramdown
|
%global gem_name kramdown
|
||||||
Name: rubygem-kramdown
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.17.0
|
Version: 2.4.0
|
||||||
Release: 3
|
Release: 1
|
||||||
Summary: A fast pure Ruby yet-another-markdown-parser
|
Summary: A fast pure Ruby yet-another-markdown-parser
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://kramdown.rubyforge.org
|
URL: http://kramdown.gettalong.org
|
||||||
Source0: https://rubygems.org/gems/kramdown-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) >= 5 rubygem(prawn)
|
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) >= 5 rubygem(rouge)
|
||||||
BuildRequires: rubygem(prawn-table) rubygem(rake) rubygem(rouge)
|
BuildRequires: rubygem(test-unit) tidy tex tex(acronym.sty) tex(amssymb.sty) rubygem(rexml)
|
||||||
Requires: ruby(release) ruby(rubygems)
|
BuildRequires: tex(amsmath.sty) tex(amsthm.sty) tex(amsfonts.sty) tex(utf8x.def) tex-ec
|
||||||
BuildArch: noarch
|
Requires: ruby(release) ruby(rubygems)
|
||||||
Provides: rubygem(kramdown) = %{version}-%{release}
|
BuildArch: noarch
|
||||||
|
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
||||||
%description
|
%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.
|
using a strict syntax definition and supporting several common extensions.
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Documentation for rubygem-kramdown
|
Summary: Documentation for %{name}
|
||||||
Requires: rubygem-kramdown = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Provides: rubygem-kramdown-doc = %{version}-%{release}
|
Provides: %{name}-doc = %{version}-%{release}
|
||||||
Obsoletes: rubygem-kramdown-doc < %{version}-%{release}
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description help
|
%description help
|
||||||
Documentation for rubygem-kramdown.
|
Documentation for %{name}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gem unpack %{SOURCE0}
|
gem unpack %{SOURCE0}
|
||||||
%autosetup -D -T -n kramdown-%{version}
|
%autosetup -D -T -n kramdown-%{version} -p1
|
||||||
gem spec %{SOURCE0} -l --ruby > kramdown.gemspec
|
gem spec %{SOURCE0} -l --ruby > kramdown.gemspec
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -36,43 +36,61 @@ gem build kramdown.gemspec
|
|||||||
%gem_install
|
%gem_install
|
||||||
|
|
||||||
%install
|
%install
|
||||||
for i in %{gem_dir} %{_bindir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
do
|
cp -pa .%{gem_dir}/* \
|
||||||
install -d %{buildroot}$i
|
%{buildroot}%{gem_dir}/
|
||||||
cp -pa .$i/* %{buildroot}$i/
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
done
|
cp -pa .%{_bindir}/* \
|
||||||
|
%{buildroot}%{_bindir}/
|
||||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 \
|
||||||
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 %{buildroot}%{_mandir}/man1
|
%{buildroot}%{_mandir}/man1
|
||||||
cd %{buildroot}%{gem_instdir}
|
pushd %{buildroot}%{gem_instdir}
|
||||||
|
rm -rf \
|
||||||
|
test/
|
||||||
|
|
||||||
%check
|
%check
|
||||||
LANG=en_US.utf8
|
LANG=C.UTF-8
|
||||||
cd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
rake test || true
|
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' \
|
||||||
cd -
|
|| echo "Needs investigating"
|
||||||
|
popd
|
||||||
|
|
||||||
%files
|
%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
|
%{_bindir}/kramdown
|
||||||
%{gem_instdir}/bin
|
%{gem_instdir}/bin
|
||||||
|
%{_mandir}/man1/kramdown.1*
|
||||||
%{gem_libdir}/
|
%{gem_libdir}/
|
||||||
%{gem_instdir}/data/
|
%{gem_instdir}/data/
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%exclude %{gem_instdir}/test
|
|
||||||
%exclude %{gem_instdir}/benchmark
|
|
||||||
%exclude %{gem_instdir}/setup.rb
|
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%dir %{gem_instdir}
|
%doc %{gem_docdir}
|
||||||
%doc %{gem_docdir}
|
|
||||||
%doc %{gem_instdir}/doc/
|
|
||||||
%doc %{gem_instdir}/[A-Z]*
|
|
||||||
%{_mandir}/man1/kramdown.1*
|
|
||||||
%exclude %{gem_instdir}/Rakefile
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Mar 12 2020 zhujunhao <zhujunhao5@huawei.com> - 1.17.0-3
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user