2020-12-18 18:01:05 +08:00
|
|
|
%global gem_name kramdown-parser-gfm
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Summary: Kramdown parser for GitHub-flavored markdown
|
|
|
|
|
Version: 1.1.0
|
2022-02-23 17:26:19 +08:00
|
|
|
Release: 2
|
2020-12-18 18:01:05 +08:00
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/kramdown/parser-gfm
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2022-02-23 17:26:19 +08:00
|
|
|
Patch0: ad48572.patch
|
2020-12-18 18:01:05 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: ruby(release) rubygems-devel ruby >= 2.3
|
|
|
|
|
BuildRequires: rubygem(kramdown) >= 2.0.0 rubygem(minitest) rubygem(rouge)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
kramdown-parser-gfm provides a kramdown parser for the GFM dialect of
|
|
|
|
|
Markdown.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
2022-02-23 17:26:19 +08:00
|
|
|
%patch0 -p1
|
2020-12-18 18:01:05 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
mv test/testcases/codeblock_fenced.text test/testcases/codeblock_fenced.disabled
|
|
|
|
|
ruby -I'lib' -e 'Dir.glob "./test/**test_*.rb", &method(:require)'
|
|
|
|
|
mv test/testcases/codeblock_fenced.disabled test/testcases/codeblock_fenced.text
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license %{gem_instdir}/COPYING
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
%exclude %{gem_instdir}/VERSION
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTERS
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-02-23 17:26:19 +08:00
|
|
|
* Wed Feb 23 2022 liwu <liwu13@huawei.com> - 1.1.0-2
|
|
|
|
|
- Fix build error
|
|
|
|
|
|
2020-12-18 18:01:05 +08:00
|
|
|
* Tue Dec 15 2020 chengzihan <chengzihan2@huawei.com> - 1.1.0-1
|
|
|
|
|
- Package init
|