update to 2.1.0
This commit is contained in:
parent
7e7e23998e
commit
f4f46318d4
Binary file not shown.
BIN
kramdown-2.1.0.gem
Normal file
BIN
kramdown-2.1.0.gem
Normal file
Binary file not shown.
@ -1,34 +1,34 @@
|
||||
%global gem_name kramdown
|
||||
Name: rubygem-kramdown
|
||||
Version: 1.17.0
|
||||
Release: 3
|
||||
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)
|
||||
Requires: ruby(release) ruby(rubygems)
|
||||
BuildArch: noarch
|
||||
Provides: rubygem(kramdown) = %{version}-%{release}
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.1.0
|
||||
Release: 1
|
||||
Summary: A fast pure Ruby yet-another-markdown-parser
|
||||
License: MIT
|
||||
URL: http://kramdown.rubyforge.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)
|
||||
BuildRequires: tex(amsmath.sty) tex(amsthm.sty) tex(amsfonts.sty) tex(utf8x.def) tex-ec
|
||||
Requires: ruby(release) ruby(rubygems)
|
||||
BuildArch: noarch
|
||||
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}
|
||||
BuildArch: noarch
|
||||
%package help
|
||||
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.
|
||||
%description help
|
||||
Documentation for %{name}
|
||||
|
||||
%prep
|
||||
gem unpack %{SOURCE0}
|
||||
%autosetup -D -T -n kramdown-%{version}
|
||||
%autosetup -D -T -n kramdown-%{version}
|
||||
gem spec %{SOURCE0} -l --ruby > kramdown.gemspec
|
||||
|
||||
%build
|
||||
@ -36,43 +36,56 @@ 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}
|
||||
STRINGEX_STATUS="$(ruby -e "begin ; require 'stringex' ; puts 1 ; rescue LoadError ; puts 0 ; end")"
|
||||
if [ $STRINGEX_STATUS == 0 ] ; then
|
||||
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'
|
||||
fi
|
||||
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
||||
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
|
||||
%exclude %{gem_cache}
|
||||
%{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
|
||||
%doc %{gem_docdir}
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user